Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %-- >/<
- %M(M<0)=-1
- %M(M>0)=1
- %--parzyste
- %M(mod(M,2)==1)=1
- %M(mod(M,2)==0)=0
- %--naturalne
- %M(M==round(M) & M>0) = 1
- %M(M~=round(M) | M<0) = 0
- %-- całkowite
- %max(M(M==round(M)))
- %min(M(M==round(M)))
- %--nieparzyste
- %max(M(mod(M,2)==1))
- %min(M(mod(M,2)==1))
- %--row most >100
- %a = M>100;
- %[x,y]=max(sum(a,2));
- %y
- %--Max 1/ost kol
- %A=M(:,1)
- %B=M(:,end)
- %aa=max(A)
- %bb=max(B)
- %w=max(aa,bb)
- %--max na przekot
- %A=diag(M)
- %B=rot90(M)
- %C=diag(B)
- %aa=max(A)
- %cc=max(C)
- %w=max(aa,cc)
- %n=6
- %a=1
- %b=2
- %Z=ones(2*n)
- %M=triu(Z*b).*rot90(tril(Z))+tril(Z*a).*rot90(triu(Z))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement