- Plot the following equation for 5 different values of n (1, 2, 3, 4, 5) with x in the range 0 to 5. Plot on five separate subplots. Use a for loop for full credit.
y (x) = xn
- Modify the previous problem (indicate which code you would change) so that if n is even you use the following equation instead:
y (x) =n xn
This question belongs to MATLAB software and discusses about to plot the given equations for five different values within the given range.
Answer is in MATLAB format
Download Full Solution