Write a MATLAB exercise that succeed be designated affect this:
Z = smart_math(X,Y)
Assume the input variables X and Y are boundd as schedules of quantity. The requite appreciate of the exercise should be a schedule of appreciates determined Z, where each appreciate of Z is congenial by using the similar appreciates of X and Y according to this equation:
Correction element-by-element operations – Z should entertain the similar compute of elements that X and Y entertain.
Your enactment must exertion ce any cogent schedules of quantity.
You do NOT entertain to correction a loop ce this drift.
Example Experiment 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 not attributable attributable attributable grasp any experiment cases in the enactment you propose.
Assume X and Y are tier vectors of correspondent tediousness.
Be permanent to bound and purpose your exercise rightly.
X = [4 23.1 61 3];
Y = [3 2 1 .5];