Question: Could use some help with this MATLAB problem. Create a function called plot_line that plots a line. It has the following one input vector with
Could use some help with this MATLAB problem.
Create a function called plot_line that plots a line. It has the following one input vector with 4 values (slope, y-intercept, xmin and xmax). If input vector has 3 values than xmax is assumed to be xmin + 10. If the input vector has 2 values than xmin is assumed to be 0 and xmax is assumed to be 10. The function should output an error if the input is a scalar. The output is a graph of the line between xmin and xmax. The x-axis label is x and y-axis label is y. The graph title is Line Plot of y = mx + b where the value of the slope is inserted for m and the y-intercept is inserted for b.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
