您在這裡

Solution to Exercise 3.2

9 十月, 2015 - 11:52
  1.    
    a=6; b=.8; x=[0:.01:5]; y=a+x.^b;
    plot(x,y),title('Graph of y=a+x^b'),xlabel('x'),ylabel('y'),grid

    media/image17.png
  2.    
        a=6; b=.8; x=[0:.01:5]; y=a*x.^b;
    plot(x,y),title('Graph of y=ax^b'),xlabel('x'),ylabel('y'),grid
    media/image18.png

  3.   
     a=6; x=[0:.01:5]; y=a*sin(x);
    plot(x,y),title('Graph of y=a*sin(x)'),xlabel('x'),ylabel('y'),grid
    media/image19.png