Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.32 KB | None | 0 0
  1. x = linspace(1,2,11);
  2.  
  3. y(1,:) = x.^3 + 3.*x.^2 + 1
  4. y(2,:) = sin(x.^2)
  5. y(3,:) = (sin(x)).^2
  6. y(4,:) = sin(2.*x) + x.*cos(4.*x)
  7. y(5,:) = x ./ (x.^2 + 1)
  8. y(6,:) = cos(x) ./ (1 + sin(x))
  9. y(7,:) =  1./x + x.^3 / (x.^4 + 5.*x.*sin(x))
  10.  
  11. for i = 1 : 7
  12.     subplot(4,2,i), plot(y(i,:), x), grid
  13.     xlabel('x'), ylabel('y')
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement