Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute MATLAB/Octave Online

t=0:0.01:4*pi;
y=2/pi;
for n=2:1:100;
y= y-((2/pi)*(1+ cos(n*pi))*cos(n*t)/(n^2-1));
end
plot(t,y);
title('Plot title');
xlabel('X Axis');
ylabel('Y Axis');

print -dpng figure.png

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.