Question: i cant use loops to solve this. Problem Write an m-file that evaluates the function y(x) = 4.22 -8.x +6 for 1000 values of x
i cant use loops to solve this. Problem Write an m-file that evaluates the function y(x) = 4.22 -8.x +6 for 1000 values of x between 4 and +4, and stores the result in variable y1. Remember to use element by element math if necessary. Create variable y2 by adding random values between 0 and 10 to each element of y1. What is the maximum value of y2? Plot both variables: plotx,y1,x,y2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
