Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- k = 1/6;
- x = 0:k:1
- y = x.*sin(x) + (x.^3.*exp(x)./(x+1)
- a = 0:100
- a(end:-1:1)
- m = [0:20]';
- [m m.^2 2.^m]
- round((rand(1,10).*9))
- A=[1 3 2 5; 11 13 12 15; 8 14 6 9; 15 14 13 12]
- sum(A)
- sum(A')
- sum(diag(fliplr(A)))
- prod(A(2,1:3))
- sum(A(1:4, end))
- A = A(:,[1 3 2 4])
- A(:,1)=[]
- A= ones(3,4).*2
- clear
- A(2:3,1:5)=2
- A=zeros(5)
- A(1 2], 2:2:end) = A([2 1], 2:2:end)
- A = ones(1,4)
- A= linspace(2, 2, 10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement