Welcome To Home of Information

Plot the following MATLAB functions: y = 3x+2 with x = 0, 0.25, 0.5, ...., 7.75, 8

Posted in
No comments
Monday, August 11, 2014 By Anonymous



Plot the following MATLAB functions:
             y = 3x+2 with x = 0, 0.25, 0.5, ...., 7.75, 8

Solution:

function Question11A()
   noFigure = 1;       figure(noFigure);
   X = 0 : .25 : 8;    Y = 3 * X + 2;                        %as per given
    plot(X, Y)                      %plotting graph
end


Related posts

0 comments:

About the Author

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque volutpat volutpat nibh nec posuere. Donec auctor arcut pretium consequat.

Proudly Powered by Blogger.