Tuesday, 27 August 2013

evaluating simple mathametical equation in matlab

x=0:50;
y=10*pi*exp(-5.*x).*cos(x);  %  '.'  represents element wise operations
plot(x,y);

No comments:

Post a Comment