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 = [-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

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

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

LO1 Understand risk management and identify its components.

Answered: 1 week ago