Write a MATLAB program for draw 2-D simple plot graph


Code:

clear;
clc;
t=0:pi/100:2*pi;
y=sin(t);
plot(t,y);
gridon;


Output:


No comments

Powered by Blogger.