Question: use matlab or octave to code 5. (Random Line) A line in the by-plane is uniquely determined by two points (I1, y.) and (12,42). So

 use matlab or octave to code 5. (Random Line) A line

use matlab or octave to code

5. (Random Line) A line in the by-plane is uniquely determined by two points (I1, y.) and (12,42). So long as the line is not vertical, we often express the line as the solution set of the equation y=mc+b, where m is the slope, and b is the (y-)intercept of the line. rand_line.m Script: Input variables: . none. Output variables: xl and yn hold a random point in the plane such that both ordinates are in the interval (-1,1] x2 and y2 hold a second random point in the plane such that both ordi- nates are in the interval (2,10) m and b hold the slope and intercept of the line between the above points . A sample case is: >> rand line x1 = 0.86242 y1 = -0.30713 x2 = 8.3589 y2 = 7.3277 1.0185 b = -1.1855

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!