Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = linspace(1,2,11);
- y(1,:) = x.^3 + 3.*x.^2 + 1
- y(2,:) = sin(x.^2)
- y(3,:) = (sin(x)).^2
- y(4,:) = sin(2.*x) + x.*cos(4.*x)
- y(5,:) = x ./ (x.^2 + 1)
- y(6,:) = cos(x) ./ (1 + sin(x))
- y(7,:) = 1./x + x.^3 / (x.^4 + 5.*x.*sin(x))
- for i = 1 : 7
- subplot(4,2,i), plot(y(i,:), x), grid
- xlabel('x'), ylabel('y')
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement