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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started