Plot the following MATLAB functions: y = 3x+2 with x = 0, 0.25, 0.5, ...., 7.75, 8
Posted in matlab
No comments
Monday, August 11, 2014 By Anonymous
Plot
the following MATLAB functions:
y = 3x+2 with x = 0, 0.25, 0.5, ...., 7.75, 8
Solution:
function Question11A()
noFigure = 1; figure(noFigure);
X = 0 : .25 : 8; Y = 3 * X + 2; %as per given
plot(X, Y) %plotting graph
end
Related posts
- Plot the following MATLAB functions y = ln(exp(x^-1)) with x = 1, 1.5, 2, ..., 4
- Plot the following MATLAB functions: y = exp(-x^2) with x = 0, 0.1, 0.2, ..., 2
- Plot the following MATLAB functions: y = 3x+2 with x = 0, 0.25, 0.5, ...., 7.75, 8
- MATLAB function that takes a matrix as argument and then ask from the user
- MATLAB program which computes the mean and standard deviation of the data. Use FOR LOOPs.
Share this post
0 comments: