Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB If you have the following information, create a function that computes three straight lines y = mx+b: Inputs: * M = [-5; 4; 12];%The

MATLAB

If you have the following information, create a function that computes three straight lines y = mx+b: Inputs: * M = [-5; 4; 12];%The M array represents each line's slope. * B = [10; -8; 24];%the y-intercept of each line is represented by the B array. * X = [-5 20; 15 25; 30 55] % 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions