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

%x = [1 2 3 4 5 6 7 8 9 10];
%y1 = [.16 .08 .04 .02 .013 .007 .004 .002 .001 .0008 ];
%y2 = [.16 .07 .03 .01 .008 .003 .0008 .0003 .00007 .00002 ];

%semilogy(x,y1,'-bo;y1;',x,y2,'-kx;y2;');
%title('Plot title');
%xlabel('X Axis');
%ylabel('Y Axis');

%print -dpng figure.png

  function demo(in)
  x = linspace(1, in, 1000);
  
  y = linspace(1:1000);
  
  figure
  plot(x,y)
  
  

Advertisements
Loading...

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