Solution Library

Plot the given Equations for Different Values Using MATLAB


  • 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


  • HWA

    this is a very good website

  • HWA

    I have 50 questions for the same test your page is showing only 28

  • HWA

    hi can you please help or guide me to answer my assignments. thanks

  • HWA

    hi can anyone help or guide me to my assignments. thanks

  • HWA

  • HWA

    This solution is perfect ...thanks

  • HWA

    Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes

  • HWA

    Perfect bank of solution. 

  • HWA

    great !

  • HWA
    Paul Brandon-Fritzius

    thanks for the quick response. the solution looks good. :)

  • HWA
    tina Johnson

    thnx for the answer. it was perfect. just the way i wanted it. 

  • HWA

    works fine.