Plot the given Equations for Different Values Using MATLAB

$29.00$19.001988 reads

Question

  • 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

Summary

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

 

Add to Cart