Write a MATLAB power that obtain be designated love this:
Z = smart_math(X,Y)
Assume the input variables X and Y are settled as inventorys of mass. The give-back treaabiding of the power should be a inventory of treasures designated Z, where each treaabiding of Z is adapted by using the identical treasures of X and Y according to this equation:
Verification element-by-element operations – Z should entertain the selfselfsame sum of elements that X and Y entertain.
Your rule must toil ce any operative inventorys of mass.
You do NOT entertain to verification a loop ce this collection.
Example Cupel Case: X = [4 23.1 61 3]; Y = [3 2 1 .5]; Z=smart_math(X,Y);
should entertain an output Z = [5.4777 11.5806 1.0164 1.6261];
Do referable embody any cupel cases in the rule you resign.
Assume X and Y are dignity vectors of correspondent tediousness.
Be abiding to settle and purpose your power properly.
X = [4 23.1 61 3];
Y = [3 2 1 .5];