Этот коммит содержится в:
2026-02-12 01:50:56 +03:00
родитель 941974a6b3
Коммит 56c65d5dd2
6 изменённых файлов: 420 добавлений и 0 удалений

Просмотреть файл

@@ -0,0 +1,415 @@
A =
6.3711e-01 7.8432e-01 1.8025e-01 3.5787e-01 6.8852e-01 5.1192e-01
3.1581e-02 1.6664e-01 7.5393e-01 8.1534e-01 4.7666e-01 7.6663e-01
9.6584e-01 1.1820e-02 9.7399e-04 3.8644e-01 5.9332e-01 5.3177e-01
2.7445e-01 3.2268e-01 9.2290e-01 2.3156e-01 7.1104e-01 9.2437e-01
>> B=rand(4,7)
warning: load_path: C:\Users\u202-16\Desktop\chpok_i_gotovoo\ТЕМА2: No such file or directory
warning: load_path: C:\Users\u202-16\Desktop\chpok_i_gotovoo\ТЕМА1: No such file or directory
B =
0.079781 0.055839 0.746626 0.948944 0.065842 0.750814 0.852608
0.455608 0.987677 0.460268 0.265391 0.114100 0.444009 0.580352
0.410006 0.762842 0.306572 0.292280 0.359641 0.948953 0.884154
0.868862 0.463408 0.703305 0.750799 0.551636 0.202557 0.828586
>> С=4:27
warning: load_path: C:\Users\u202-16\Desktop\chpok_i_gotovoo\ТЕМА2: No such file or directory
warning: load_path: C:\Users\u202-16\Desktop\chpok_i_gotovoo\ТЕМА1: No such file or directory
error: parse error:
invalid character '' (ASCII 208)
>>> С=4:27
^
>> H='This is a symbols vector'
warning: load_path: C:\Users\u202-16\Desktop\chpok_i_gotovoo\ТЕМА2: No such file or directory
warning: load_path: C:\Users\u202-16\Desktop\chpok_i_gotovoo\ТЕМА1: No such file or directory
H = This is a symbols vector
>> warning('off','all')
warning: load_path: C:\Users\u202-16\Desktop\chpok_i_gotovoo\ТЕМА2: No such file or directory
warning: load_path: C:\Users\u202-16\Desktop\chpok_i_gotovoo\ТЕМА1: No such file or directory
>> L=[-2+23.1j, 3-5.6j]
L =
-2.0000 + 23.1000i 3.0000 - 5.6000i
>> D=reshape(C,[],6)
error: 'C' undefined near line 1, column 11
>> С=4:27
error: parse error:
invalid character '' (ASCII 208)
>>> С=4:27
^
>> C=4:27
error: parse error:
invalid character '' (ASCII 208)
>>> C=4:27
^
>>C = 4:27
C =
Columns 1 through 23:
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Column 24:
27
>> D=reshape(C,[],6)
D =
4 8 12 16 20 24
5 9 13 17 21 25
6 10 14 18 22 26
7 11 15 19 23 27
>> E=B'*A
E =
0.6997 0.4237 1.1601 0.7597 1.1332 1.4113
0.9307 0.3669 1.1831 1.2274 1.2913 1.6198
0.9793 0.8929 1.1310 0.9238 1.4154 1.5482
1.1013 1.0342 1.0643 0.8428 1.4871 1.5387
0.5443 0.2529 0.6073 0.3833 0.7053 0.8223
1.4645 0.7394 0.6580 1.0443 1.4357 1.4166
1.6429 1.0432 1.3568 1.3118 1.9774 2.1175
>> F=[A,B]
F =
Columns 1 through 9:
6.3711e-01 7.8432e-01 1.8025e-01 3.5787e-01 6.8852e-01 5.1192e-01 7.9781e-02 5.5839e-02 7.4663e-01
3.1581e-02 1.6664e-01 7.5393e-01 8.1534e-01 4.7666e-01 7.6663e-01 4.5561e-01 9.8768e-01 4.6027e-01
9.6584e-01 1.1820e-02 9.7399e-04 3.8644e-01 5.9332e-01 5.3177e-01 4.1001e-01 7.6284e-01 3.0657e-01
2.7445e-01 3.2268e-01 9.2290e-01 2.3156e-01 7.1104e-01 9.2437e-01 8.6886e-01 4.6341e-01 7.0330e-01
Columns 10 through 13:
9.4894e-01 6.5842e-02 7.5081e-01 8.5261e-01
2.6539e-01 1.1410e-01 4.4401e-01 5.8035e-01
2.9228e-01 3.5964e-01 9.4895e-01 8.8415e-01
7.5080e-01 5.5164e-01 2.0256e-01 8.2859e-01
>> G=A.*D\
G =
2.5484e+00 6.2745e+00 2.1630e+00 5.7259e+00 1.3770e+01 1.2286e+01
1.5791e-01 1.4997e+00 9.8011e+00 1.3861e+01 1.0010e+01 1.9166e+01
5.7950e+00 1.1820e-01 1.3636e-02 6.9558e+00 1.3053e+01 1.3826e+01
1.9212e+00 3.5495e+00 1.3843e+01 4.3996e+00 1.6354e+01 2.4958e+01
>> M=G./4.5
M =
5.6632e-01 1.3943e+00 4.8068e-01 1.2724e+00 3.0601e+00 2.7302e+00
3.5090e-02 3.3327e-01 2.1780e+00 3.0802e+00 2.2244e+00 4.2591e+00
1.2878e+00 2.6267e-02 3.0302e-03 1.5457e+00 2.9007e+00 3.0725e+00
4.2692e-01 7.8878e-01 3.0763e+00 9.7769e-01 3.6342e+00 5.5462e+00
>> DDD=D.^3
DDD =
64 512 1728 4096 8000 13824
125 729 2197 4913 9261 15625
216 1000 2744 5832 10648 17576
343 1331 3375 6859 12167 19683
>> DL=D>=20
DL =
0 0 0 0 1 1
0 0 0 0 1 1
0 0 0 0 1 1
0 0 0 0 1 1
>> Dstolb=D(:)
Dstolb =
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
>> B1=sqrt(B)
B1 =
0.2825 0.2363 0.8641 0.9741 0.2566 0.8665 0.9234
0.6750 0.9938 0.6784 0.5152 0.3378 0.6663 0.7618
0.6403 0.8734 0.5537 0.5406 0.5997 0.9741 0.9403
0.9321 0.6807 0.8386 0.8665 0.7427 0.4501 0.9103
>> B2=log(B)
B2 =
-2.528476 -2.885283 -0.292191 -0.052406 -2.720500 -0.286597 -0.159455
-0.786122 -0.012399 -0.775947 -1.326552 -2.170677 -0.811909 -0.544121
-0.891583 -0.270705 -1.182302 -1.230042 -1.022648 -0.052396 -0.123124
-0.140571 -0.769148 -0.351965 -0.286617 -0.594866 -1.596733 -0.188035
>> B3=sin(B)
B3 =
0.079696 0.055810 0.679166 0.812801 0.065794 0.682234 0.752999
0.440009 0.834749 0.444188 0.262286 0.113853 0.429564 0.548318
0.398615 0.690978 0.301792 0.288137 0.351938 0.812806 0.773379
0.763595 0.446999 0.646742 0.682223 0.524082 0.201175 0.736976
>> k=length(B1)
k = 7
>> nm=size(B1)
nm =
4 7
>> elem=numel(B1)
elem = 28
>> NN=linspace(11.5,34.1,20)
NN =
Columns 1 through 13:
11.500 12.689 13.879 15.068 16.258 17.447 18.637 19.826 21.016 22.205 23.395 24.584 25.774
Columns 14 through 20:
26.963 28.153 29.342 30.532 31.721 32.911 34.100
>> FF=ones(2,4)
FF =
1 1 1 1
1 1 1 1
>> GG=zeros(5)
GG =
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
>> B1D=diag(B1)
B1D =
0.2825
0.9938
0.5537
0.8665
>> DB=diag(B1D)
DB =
Diagonal Matrix
0.2825 0 0 0
0 0.9938 0 0
0 0 0.5537 0
0 0 0 0.8665
>> BS1=sort(B)
BS1 =
0.079781 0.055839 0.306572 0.265391 0.065842 0.202557 0.580352
0.410006 0.463408 0.460268 0.292280 0.114100 0.444009 0.828586
0.455608 0.762842 0.703305 0.750799 0.359641 0.750814 0.852608
0.868862 0.987677 0.746626 0.948944 0.551636 0.948953 0.884154
>> BS2=sortrows(B,2)
BS2 =
0.079781 0.055839 0.746626 0.948944 0.065842 0.750814 0.852608
0.868862 0.463408 0.703305 0.750799 0.551636 0.202557 0.828586
0.410006 0.762842 0.306572 0.292280 0.359641 0.948953 0.884154
0.455608 0.987677 0.460268 0.265391 0.114100 0.444009 0.580352
>> DS1=sum(D)
DS1 =
22 38 54 70 86 102
>> DS2=sum(D,2)
DS2 =
84
90
96
102
>> DP1=prod(D)
DP1 =
840 7920 32760 93024 212520 421200
>> dt=det(A*A')
dt = 0.5612
>> dinv=inv(A*A')
dinv =
2.065633 0.179331 -1.155947 -0.930132
0.179331 2.239819 -0.101288 -1.894903
-1.155947 -0.101288 1.595099 0.027661
-0.930132 -1.894903 0.027661 2.564475
>> D1=D(3,5)
D1 = 22
>> D2=D(3,4:end)
D2 =
18 22 26
>> D3=D(2:3,3:5)
D3 =
13 17 21
14 18 22
>> D4=D(16:20)
D4 =
19 20 21 22 23
>> D5=D(3:4,[1,3,6])
D5 =
6 14 26
7 15 27
>> Dsum=0
Dsum = 0
>> for i=1:6
Dsum=Dsum+sqrt(D(2,i))
endfor
Dsum = 2.2361
Dsum = 5.2361
Dsum = 8.8416
Dsum = 12.965
Dsum = 17.547
Dsum = 22.547
>> Dsum2=0;i=1
i = 1
>> while (D(i)<22)
Dsum2=Dsum2+sin(D(i))
i=i+1
endwhile
Dsum2 = -0.7568
i = 2
Dsum2 = -1.7157
i = 3
Dsum2 = -1.9951
i = 4
Dsum2 = -1.3382
i = 5
Dsum2 = -0.3488
i = 6
Dsum2 = 0.063321
i = 7
Dsum2 = -0.4807
i = 8
Dsum2 = -1.4807
i = 9
Dsum2 = -2.0173
i = 10
Dsum2 = -1.5971
i = 11
Dsum2 = -0.6065
i = 12
Dsum2 = 0.043799
i = 13
Dsum2 = -0.2441
i = 14
Dsum2 = -1.2055
i = 15
Dsum2 = -1.9565
i = 16
Dsum2 = -1.8066
i = 17
Dsum2 = -0.8937
i = 18
Dsum2 = -0.057011
i = 19
>> if (D(3,5)>=20)
printf('D(3,5)>=20')
else
printf('D(3,5)<20')
endif
D(3,5)>=20>>
>> plot(D(1,:),B([2,4],1:6))
>> D
D =
4 8 12 16 20 24
5 9 13 17 21 25
6 10 14 18 22 26
7 11 15 19 23 27
>> B
B =
0.079781 0.055839 0.746626 0.948944 0.065842 0.750814 0.852608
0.455608 0.987677 0.460268 0.265391 0.114100 0.444009 0.580352
0.410006 0.762842 0.306572 0.292280 0.359641 0.948953 0.884154
0.868862 0.463408 0.703305 0.750799 0.551636 0.202557 0.828586
>> plot(D(1,:),B([2,4],1:6))
>> hist(A(:),6)
>> plot(D(1,:),B([2,4],1:6))
>> hist(A(:),6)
>> plot (D(1,:),B([2,4],1:6))
>> plot(D(1,:), B([2,4], 1:6))
>> plot(D(1,:),B([2,4],[1:6]))
>> plot(D(1,:),B([2,4]),1:6)
error: __plt2vv__: vector lengths must match
error: called from
__plt__>__plt2vv__ at line 489 column 5
__plt__>__plt2__ at line 248 column 14
__plt__ at line 135 column 14
plot at line 235 column 10
>> plot(D(1,:),B([2,4], 1:6))
>> graphics_toolkit('gnuplot')
>> plot(D(1,:),B([2,4],1:6))
>> hist(A(:),6)
>> plot(D(1,:),B([2,4],1:6))
>>
>> hist(A(:),6)
>>
>> hist(A(:),6)
>>
>> hist(A(:),6
hist(A(:),6)
error: parse error:
syntax error
>>> hist(A(:),6)
^
>> hist(A(:),6)