Advertisement
Nikitka_36

sfsdf

Feb 26th, 2015
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. k = 1/6;
  2. x = 0:k:1
  3. y = x.*sin(x) + (x.^3.*exp(x)./(x+1)
  4. a = 0:100
  5. a(end:-1:1)
  6. m = [0:20]';
  7. [m m.^2 2.^m]
  8. round((rand(1,10).*9))
  9. A=[1 3 2 5; 11 13 12 15; 8 14 6 9; 15 14 13 12]
  10. sum(A)
  11. sum(A')
  12. sum(diag(fliplr(A)))
  13. prod(A(2,1:3))
  14. sum(A(1:4, end))
  15. A = A(:,[1 3 2 4])
  16. A(:,1)=[]
  17. A= ones(3,4).*2
  18.  
  19. clear
  20. A(2:3,1:5)=2
  21. A=zeros(5)
  22. A(1 2], 2:2:end) = A([2 1], 2:2:end)
  23. A = ones(1,4)
  24. A= linspace(2, 2, 10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement