Question: Write an M-file to evaluate the equation y(x) = x^2 - 3x + 2 for all values of x between -1 and 3, in steps
Write an M-file to evaluate the equation y(x) = x^2 - 3x + 2 for all values of x between -1 and 3, in steps of 0.1. Do this twice, once with a for loop and once with vectors. Plot the resulting function using a 3-point-thick dashed red line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
