Plot the following MATLAB functions: y = exp(-x^2) with x = 0, 0.1, 0.2, ..., 2
Posted in matlab
No comments
Monday, August 11, 2014 By Anonymous
Plot the following MATLAB functions:
y = exp(-x^2) with x = 0, 0.1, 0.2,
..., 2
Solution:
function Question11B()
noFigure = 1;
figure(noFigure);
X = 0 : .1 : 2;
Y = exp(-X .^ 2); %as per given
plot(X, Y); %plotting
graph
end
Related posts
Share this post
0 comments: