Getting Started
Hello Tool
home top contents previous up next

% credit http://www.cyclismo.org/tutorial/matlab/vector.html
%fails:
%for x=1:2000,
%    g=x./1000;
%    y=sin(g);
%end

%y=[1:10];
%x=[1:10];
sum=0;
for i=1:10
    x(i)=i/10.;
    sum=sum+x(i)*step;
    y(i)=sum; 
end
plot(x,x,'b');
hold on
plot(x,y,'r');
hold on
plot(x,y,'rx');
hold on
plot(x,(.01)./y,'g');
y
%print -dpng myplot.png;


Copyright (C) 2009 Konstantin Kirillov