Question: MATLAB If you have the following information, create a function that computes three straight lines (y = mx+b): Inputs: * M = [-6; 3; 10];%The

MATLAB

If you have the following information, create a function that computes three straight lines (y = mx+b): Inputs: * M = [-6; 3; 10];%The M array represents each line's slope. * B = [10; -6; 21];%the y-intercept of each line is represented by the B array. * X = [-5 21; 7 18; 28 49] % The time array that will be applied to the "x" position is the x array. * Consider that you require at least 1,000 data points. It's up to you how you handle this.

Outputs:

y_ array = [y1; y2; y3]% creates an array from the three output variables.

x_array= x{lower_bound} : x{upper bound};

The lower bound should be established by COLUMN 1 of X's minimum.

The upper bound should be set by the highest value in COLUMN 2 of X.

Y stats = [mean(y1, min(y1, max(y1), mean(y2, min(y2, max(y2), mean(y3, max(y3)]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!