%-- 06.03.09 17:45 --%
%-- 10.03.09 10:29 --%
format short
7/3.5
7/-3.
9-3/3
16/2/0.4e2
0.4*10^2
(1e3-1e2)*(15-50e-1)
3^4/2
3^(4/2)
(2-3)^(3.7-2)
3*2^2*2^3
(3*4)/(3-4)*7-5.3
(((2.3e1*3)/2)-4.5)^2
((7-3)^3)^(1/3)
(7-3)^3^(1/3)
(7-3)^(3^(1/3))
4*2/(6-4^2)
45.3-47.7-15
45.3-(47.7-15)
4^3^2
4^9
4^3^2
(4^3)^2
format long
script
help script
x=-1:0.1:1
sqrt(x)
xoc(x)
cos(x)
sin(x)
plot(x,sin(x.^3))
x.^2
x.^3
%-- 10.03.09 10:55 --%
help plot
x.^3
x = -1:0.1:1
x = -1:0.1:1;
x^3
x.^3
%-- 10.03.09 10:59 --%
rand
x=1:1:10
x=1:10
z=rand(4)
z=rand(10)
y=[z;x]
y=[z x]
c=rand(4)
e=[c eye(size(c));eye(size(c)) ones(size(c))]
d=sqrt(c)
t1=d*d
t1=t.*d
t1=d.*d
t1=d*d
t2=d.*d
rand
a=-1:.2:1
b=2:17
b(2:2:17)=-2:-2:-16
c=[1:8 10 13:20]
d=1:23
d(3:3:23)=[]
b=2:2:16
b=[b; -b]
b(:)
b(:)'
rand
eps
1+eps
format long
1+eps
1+eps/2
eye(5)
v=eye(5)
v(5,5)=0.3
syms a
syms b
a*b
rand
rand(10)
A = ans
inv(A)
sum(A, 1)
sum(A, 2)
sum(A)
rand
d=1:19
d([5 10 15])=[]
d=reshape(d,4,4)
d'
b=1:19
s=2:2:19
b(s)=-b(s)
b([5 10 15])=[]
b=reshape(b,4,4)'
rand
A=zeros(100)
for i=1:100
A(i,i)=1/i.^2;
end
A
[1:100]
ans.^-1
ans.^2
diag(ans)
y=[]; for j=1:18
x=[];
for i=1:18
x=[x sqrt(j)^(i-1)];
end
y=[y; x];
end
y
y=zeros(18)
for i=1:18
for j=1:18
y(j,i)=sqrt(j)^(i-1);
end
end
y
help vander
x=1:3
x=1:3'
x=x'
x(:,ones(3,1))
x=1:3'
x(ones(1,3),:)
x=1:18
x=sqrt(1:18)'
a=ones(18)
for i=2:18, a(:,i)=a(:,i).*(x.^(i-1)),end
x=sqrt(1:18)
x=sqrt(1:18)'
A=x(:,ones(1,18))
y=0:17
y=y(ones(18,1),:)
A.^y
A=vander(x)
A=fliplr(A)
A=A(:,end:-1:1)
A=rand(3)
A(1:end/2)
A(:,1:end/2)
A=vander(x)
A=fliplr(A)
det(A)
A(1:9,1:9)
v = [];
for i=1:25
v(i)=1/i
end
A=vander(v)
A=fliplr(A)
k =rank(A)
[V,D]=eig(A)
V
D
diag(D)
k=charpoly(A)
k=poly(A)
%-- 11.03.09 16:28 --%
a = [2 3 4; 5 6 7]
save a
load a
a
clear a
load a
clear a
load a
a
diary
sgf
%-- 11.03.09 16:32 --%
blub
omf
a = 1:1:10
a(2) = 0
a([3 5]) = 0
b = 1:2:10
b = 2:2:10
a = 1:1:10
a(b)=0
2^2
%-- 11.03.09 17:00 --%
a = 2:2:16
b = -a
A = [a;b]
A(:)
displ A
displ(A)
display(A)
display(A(:))
display A
display(A)
c = A(:)'
A
A(:)
b
b(4)
ans
c
%-- 13.03.09 15:59 --%
doc subplot
x = 0:0.1:pi
plot(x,sin(x))
x = 0:0.1:pi
figure2
figure(2)
plot(x, cos(x))
%-- 17.03.09 10:37 --%
A=[1:4;6:9;11:14;16:19]
x=1:1:20;
x(2:2:20)=-2:-2:-20;
x
x(5:5:20)=[]
B=reshape(x,4,4)
B'
b=[]
for i= [1:100]
end
for i=1:100
b=[b,1/(1^2)];
end
A=diag(b)
diag(A)
for i=1:100, b=[b,1/(i^2)]; end
A=diag(b)
b=1:100
b=b.*b
b=1./b
x=1:18
sqrt(x)
vander(x)
x1:18
x=1:18
x=sqrt(x)
vander(x)
a=vander(x);
fliplr(a)
diag(a)
a=fliplr(a)
diag(a)
triu(a)
det(a)
a(1:9,1:9)
x=1./1:18
x=1:25
x=1./x
A=flipr(vander(x))
A=fliplr(vander(x))
format long
A
A(25,25)
poly(A)
rank(A)
[V,D]=eig(A)
diag(D)
V
rand
A=randn(100)
a=min(A,[],1)
b=min(A,[],2)
[C, I]=min(a)
[C, I]=min(b)
c=max(A,[],1)
d=max(A,[],2)
[C, I]=min(c)
[C, I]=min(d)
[C, I]=max(c)
[C, I]=max(d)
[v,i]=max(A(:))
x=max(max(A))
ind=find(A==x)
rand
a=[2,1,5;2,2,3;1,3,3]
b=[5,7,6]
x=b/a
a\b'
a(1,:)=0
a\b'
x = pinv(a)*b
x = pinv(a)*b'
rand
M=4*rand(100)-2*ones(100);
M=4*rand(100)-2;
MM=max(0,-M)
MP=max(0,M);
MP(1:10,:)
K=MP-MM;
K-M
max(max(K-M))
max(max(abd(K-M)))
max(max(abs(K-M)))
rand
A=rand(150);
A=A.*4-2;
A((A>1) | (A<-1)) = 0;
B=rand(150);
B=B.*4-2;
B=-abs(B);
B((B>-1))=NaN;
C=B;
C(isnan(C)) = -1;
help srand
help srandom
help rand
A=rand(150);
A=A.*4-2;
A((A>1) | (A<-1)) = 0;
B=rand(150);
B=B.*4-2;
B((B>-1))=NaN;
C=B;
C(isnan(C)) = -1;
E=zeros(size(A))
E=zeros(size(A));
ind = (A>1) | (A<-1);
E(~ind)=A(~ind);
