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