x=[1 2 1/2 -3 -1]
y=[2 0 -3 1/3 2]
x.*y
A=[-1 3.5 2;0 1 -1.3;1.1 2 1.9]
B=[1 0 -1;-1.5 1.5 -3;1 1 1]
A*B
a=[-1 3.5 2;0 1 -1.3;1.1 2 1.9]
d=[0 -3.5 -2; 0 0 1.3;-1.1 -2 0]
c=a+d
d=[3 3;1 2]
dinv=[0.667 -1;-0.333 1]
b=[1;1]
d\b
dinv*b
d/b
d*dinv
M=[1 1 1;1 0 1; -1 0 0]
A=[1 1 1;1 2 1; 1 1 1]
c=M\A
Minv=c/a
A=[-1 3.5 2;0 1 -1.3;1.1 2 1.9]
B=[1 0 -1;-1.5 1.5 -3;1 1 1]
A|B
c=xor(A, B)
~A
~B
x=[1 -3 3 14 -10 12]
y=[12 6 0 -1 -10 2]
D=x<=y
F=x>=y
K=x==y
G=x~=y
C=[1 2 3 4 10;-22 1 11 -12 4;8 1 6 -11 5;18 1 11 6 4]
compvector=10*ones(4,5)
comp=C==10
D=[7 2 3 10;-2 -3 11 3;8 1 6 5;18 1 11 4]
comp=D==7|D==-3|D==6|D==4
result=D(comp)
t=(0:0.1:10)
in(7*3.142*5*t).*cos(2*3.142*3*t)+exp(-0.1*t)
sin(2*3.142*5.3*t).*sin(2*3.142*5.3*t)
r=[j j+1 j-7 j+1 -3]
r=[j;j+1;j-7;j+1;-3]
k=20*sin(5.3*3.142*2*t)
round(k)
t=(0:0.1:0.5)
k=20*sin(5.3*3.142*2*t)
round(k)
x =
1.0000 2.0000 0.5000 -3.0000 -1.0000
y =
2.0000 0 -3.0000 0.3333 2.0000
ans =
2.0000 0 -1.5000 -1.0000 -2.0000
A =
-1.0000 3.5000 2.0000
0 1.0000 -1.3000
1.1000 2.0000 1.9000
B =
1.0000 0 -1.0000
-1.5000 1.5000 -3.0000
1.0000 1.0000 1.0000
ans =
-4.2500 7.2500 -7.5000
-2.8000 0.2000 -4.3000
0 4.9000 -5.2000
a =
-1.0000 3.5000 2.0000
0 1.0000 -1.3000
1.1000 2.0000 1.9000
d =
0 -3.5000 -2.0000
0 0 1.3000
-1.1000 -2.0000 0
c =
-1.0000 0 0
0 1.0000 0
0 0 1.9000
d =
3 3
1 2
dinv =
0.6670 -1.0000
-0.3330 1.0000
b =
1
1
ans =
-0.3333
0.6667
ans =
-0.3330
0.6670
ans =
1.0020 0
0.0010 1.0000
M =
1 1 1
1 0 1
-1 0 0
A =
1 1 1
1 2 1
1 1 1
c =
-1 -1 -1
0 -1 0
2 3 2
Minv =
0.1683 -0.0769 -0.7561
-0.1222 -0.3503 -0.1111
-0.2144 0.5041 1.6232
A =
-1.0000 3.5000 2.0000
0 1.0000 -1.3000
1.1000 2.0000 1.9000
B =
1.0000 0 -1.0000
-1.5000 1.5000 -3.0000
1.0000 1.0000 1.0000
ans =
1 1 1
1 1 1
1 1 1
c =
0 1 0
1 0 0
0 0 0
ans =
0 0 0
1 0 0
0 0 0
ans =
0 1 0
0 0 0
0 0 0
x =
1 -3 3 14 -10 12
y =
12 6 0 -1 -10 2
D =
1 1 0 0 1 0
F =
0 0 1 1 1 1
K =
0 0 0 0 1 0
G =
1 1 1 1 0 1
C =
1 2 3 4 10
-22 1 11 -12 4
8 1 6 -11 5
18 1 11 6 4
compvector =
10 10 10 10 10
10 10 10 10 10
10 10 10 10 10
10 10 10 10 10
comp =
0 0 0 0 1
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
D =
7 2 3 10
-2 -3 11 3
8 1 6 5
18 1 11 4
comp =
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
result =
7
-3
6
4
t =
Columns 1 through 9
0 0.1000 0.2000 0.3000 0.4000 0.5000 0.6000 0.7000 0.8000
Columns 10 through 18
0.9000 1.0000 1.1000 1.2000 1.3000 1.4000 1.5000 1.6000 1.7000
Columns 19 through 27
1.8000 1.9000 2.0000 2.1000 2.2000 2.3000 2.4000 2.5000 2.6000
Columns 28 through 36
2.7000 2.8000 2.9000 3.0000 3.1000 3.2000 3.3000 3.4000 3.5000
Columns 37 through 45
3.6000 3.7000 3.8000 3.9000 4.0000 4.1000 4.2000 4.3000 4.4000
Columns 46 through 54
4.5000 4.6000 4.7000 4.8000 4.9000 5.0000 5.1000 5.2000 5.3000
Columns 55 through 63
5.4000 5.5000 5.6000 5.7000 5.8000 5.9000 6.0000 6.1000 6.2000
Columns 64 through 72
6.3000 6.4000 6.5000 6.6000 6.7000 6.8000 6.9000 7.0000 7.1000
Columns 73 through 81
7.2000 7.3000 7.4000 7.5000 7.6000 7.7000 7.8000 7.9000 8.0000
Columns 82 through 90
8.1000 8.2000 8.3000 8.4000 8.5000 8.6000 8.7000 8.8000 8.9000
Columns 91 through 99
9.0000 9.1000 9.2000 9.3000 9.4000 9.5000 9.6000 9.7000 9.8000
Columns 100 through 101
9.9000 10.0000
ans =
Columns 1 through 9
0 0.0353 0.1361 0.2883 0.4703 0.6566 0.8207 0.9396 0.9965
Columns 10 through 18
0.9833 0.9020 0.7639 0.5886 0.4008 0.2270 0.0917 0.0140 0.0049
Columns 19 through 27
0.0656 0.1877 0.3537 0.5404 0.7214 0.8712 0.9686 0.9999 0.9606
Columns 28 through 36
0.8564 0.7019 0.5189 0.3332 0.1711 0.0554 0.0024 0.0196 0.1046
Columns 37 through 45
0.2453 0.4220 0.6098 0.7820 0.9144 0.9884 0.9935 0.9289 0.8038
Columns 46 through 54
0.6359 0.4488 0.2689 0.1216 0.0277 0.0005 0.0437 0.1512 0.3080
Columns 55 through 63
0.4919 0.6769 0.8370 0.9495 0.9986 0.9773 0.8887 0.7453 0.5673
Columns 64 through 72
0.3797 0.2092 0.0796 0.0094 0.0084 0.0767 0.2048 0.3745 0.5619
Columns 73 through 81
0.7406 0.8853 0.9757 0.9990 0.9518 0.8409 0.6820 0.4973 0.3130
Columns 82 through 90
0.1551 0.0459 0.0007 0.0260 0.1181 0.2641 0.4434 0.6307 0.7995
Columns 91 through 99
0.9261 0.9926 0.9895 0.9174 0.7864 0.6150 0.4274 0.2500 0.1079
Columns 100 through 101
0.0211 0.0019
r =
0 + 1.0000i 1.0000 + 1.0000i -7.0000 + 1.0000i 1.0000 + 1.0000i -3.0000
r =
0 + 1.0000i
1.0000 + 1.0000i
-7.0000 + 1.0000i
1.0000 + 1.0000i
-3.0000
k =
Columns 1 through 9
0 -3.7561 7.3785 -10.7384 13.7161 -16.2057 18.1185 -19.3866 19.9648
Columns 10 through 18
-19.8324 18.9943 -17.4802 15.3440 -12.6618 9.5290 -6.0570 2.3695 1.4023
Columns 19 through 27
-5.1242 8.6638 -11.8950 14.7029 -16.9876 18.6677 -19.6835 19.9988 -19.6024
Columns 28 through 36
18.5084 -16.7558 14.4068 -11.5451 8.2726 -4.7057 0.9713 2.7977 -6.4671
Columns 37 through 45
9.9063 -12.9930 15.6174 -17.6859 19.1250 -19.8836 19.9345 -19.2760 17.9315
Columns 46 through 54
-15.9489 13.3987 -10.3717 6.9755 -3.3312 -0.4318 4.1793 -7.7781 11.1001
Columns 55 through 63
-14.0271 16.4549 -18.2971 19.4882 -19.9857 19.7720 -18.8546 17.2663 -15.0635
Columns 64 through 72
12.3246 -9.1471 5.6441 -1.9403 -1.8327 5.5404 -9.0509 12.2393 -14.9922
Columns 73 through 81
17.2115 -18.8183 19.7554 -19.9895 19.5122 -18.3405 16.5161 -14.1040 11.1899
Columns 82 through 90
-7.8776 4.2849 -0.5398 -3.2245 6.8741 -10.2791 13.3182 -15.8834 17.8834
Columns 91 through 99
-19.2469 19.9254 -19.8949 19.1564 -17.7361 15.6846 -13.0750 10.0001 -6.5693
Columns 100 through 101
2.9047 0.8633
ans =
Columns 1 through 16
0 -4 7 -11 14 -16 18 -19 20 -20 19 -17 15 -13 10 -6
Columns 17 through 32
2 1 -5 9 -12 15 -17 19 -20 20 -20 19 -17 14 -12 8
Columns 33 through 48
-5 1 3 -6 10 -13 16 -18 19 -20 20 -19 18 -16 13 -10
Columns 49 through 64
7 -3 0 4 -8 11 -14 16 -18 19 -20 20 -19 17 -15 12
Columns 65 through 80
-9 6 -2 -2 6 -9 12 -15 17 -19 20 -20 20 -18 17 -14
Columns 81 through 96
11 -8 4 -1 -3 7 -10 13 -16 18 -19 20 -20 19 -18 16
Columns 97 through 101
-13 10 -7 3 1
t =
0 0.1000 0.2000 0.3000 0.4000 0.5000
k =
0 -3.7561 7.3785 -10.7384 13.7161 -16.2057
ans =
0 -4 7 -11 14 -16
No comments:
Post a Comment