diff --git a/ТЕМА1/assets/ph1.png b/ТЕМА1/assets/ph1.png new file mode 100644 index 0000000..557d681 Binary files /dev/null and b/ТЕМА1/assets/ph1.png differ diff --git a/ТЕМА1/assets/ph2.png b/ТЕМА1/assets/ph2.png new file mode 100644 index 0000000..4307ddf Binary files /dev/null and b/ТЕМА1/assets/ph2.png differ diff --git a/ТЕМА1/assets/ph3.png b/ТЕМА1/assets/ph3.png new file mode 100644 index 0000000..9b40095 Binary files /dev/null and b/ТЕМА1/assets/ph3.png differ diff --git a/ТЕМА1/assets/ph4.png b/ТЕМА1/assets/ph4.png new file mode 100644 index 0000000..d5787ad Binary files /dev/null and b/ТЕМА1/assets/ph4.png differ diff --git a/ТЕМА1/assets/ph5.png b/ТЕМА1/assets/ph5.png new file mode 100644 index 0000000..14205c9 Binary files /dev/null and b/ТЕМА1/assets/ph5.png differ diff --git a/ТЕМА1/assets/Снимок экрана 2026-02-11 184311.png b/ТЕМА1/assets/Снимок экрана 2026-02-11 184311.png new file mode 100644 index 0000000..4c903b7 Binary files /dev/null and b/ТЕМА1/assets/Снимок экрана 2026-02-11 184311.png differ diff --git a/ТЕМА1/assets/Снимок экрана 2026-02-11 203614.png b/ТЕМА1/assets/Снимок экрана 2026-02-11 203614.png new file mode 100644 index 0000000..c1dc3f9 Binary files /dev/null and b/ТЕМА1/assets/Снимок экрана 2026-02-11 203614.png differ diff --git a/ТЕМА1/автоматизация.txt b/ТЕМА1/автоматизация.txt new file mode 100644 index 0000000..2089e3d --- /dev/null +++ b/ТЕМА1/автоматизация.txt @@ -0,0 +1,264 @@ +## 7 Рассматриваем базовые операции с матрицами. + +Формирование матрицы из вектора C. Количество строк – результат деления длины вектора на заданное количество столбцов матрицы. + +```matlab +>> 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.488550 0.011549 1.000897 2.699564 -0.504726 1.819611 + -0.151361 0.254209 0.624697 1.512441 0.183915 0.725667 + 0.072425 0.313477 1.110223 2.959277 0.309335 1.753866 + 0.333663 0.135882 1.735861 4.354475 -0.273429 1.707147 + 0.038203 0.340325 1.835803 4.116933 -1.331504 2.154751 + -0.258805 0.328323 0.793725 1.274550 -1.792678 1.396500 + -0.015348 0.371355 1.553848 3.350191 -1.666793 2.328455 + +>> F=[A,B] +F = + + Columns 1 through 8: + + 1.148943 -0.660449 0.505361 2.144800 0.874353 -0.061676 0.831759 0.168296 + 0.073393 -0.083308 1.300502 1.839412 -3.915271 0.771531 0.413143 0.094149 + -0.439376 0.422486 0.877189 2.021633 0.628780 0.429597 0.288750 0.547413 + -0.485810 0.620539 -0.275356 -0.561242 0.267499 1.872348 0.762738 0.228719 + + Columns 9 through 13: + + 0.632518 0.858376 0.634046 0.031583 0.540918 + 0.232844 0.454478 0.678126 0.535694 0.709084 + 0.770984 0.976534 0.934923 0.240303 0.664854 + 0.684711 0.528709 0.677770 0.471018 0.816684 + +>> G=A.*D +G = + + 4.5958 -5.2836 6.0643 34.3168 17.4871 -1.4802 + 0.3670 -0.7498 16.9065 31.2700 -82.2207 19.2883 + -2.6363 4.2249 12.2806 36.3894 13.8332 11.1695 + -3.4007 6.8259 -4.1303 -10.6636 6.1525 50.5534 + +M=G./4.5 +M = + + 1.0213e+00 -1.1741e+00 1.3476e+00 7.6260e+00 3.8860e+00 -3.2894e-01 + 8.1547e-02 -1.6662e-01 3.7570e+00 6.9489e+00 -1.8271e+01 4.2863e+00 + -5.8583e-01 9.3886e-01 2.7290e+00 8.0865e+00 3.0740e+00 2.4821e+00 + -7.5570e-01 1.5169e+00 -9.1785e-01 -2.3697e+00 1.3672e+00 1.1234e+01 +>> M=G./4.5 +M = + + 1.0213e+00 -1.1741e+00 1.3476e+00 7.6260e+00 3.8860e+00 -3.2894e-01 + 8.1547e-02 -1.6662e-01 3.7570e+00 6.9489e+00 -1.8271e+01 4.2863e+00 + -5.8583e-01 9.3886e-01 2.7290e+00 8.0865e+00 3.0740e+00 2.4821e+00 + -7.5570e-01 1.5169e+00 -9.1785e-01 -2.3697e+00 1.3672e+00 1.1234e+01 + +>> 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 + +NOMER 8 + +>> B1=sqrt(B) +B1 = + + Columns 1 through 5: + + 0.9120 0.4102 0.7953 0.9265 0.7963 + 0.6428 0.3068 0.4825 0.6742 0.8235 + 0.5374 0.7399 0.8781 0.9882 0.9669 + 0.8733 0.4782 0.8275 0.7271 0.8233 + + Columns 6 and 7: + + 0.1777 0.7355 + 0.7319 0.8421 + 0.4902 0.8154 + 0.6863 0.9037 + +>> B2=log(B) +B2 = + + Columns 1 through 4: + + -0.184212 -1.782031 -0.458047 -0.152714 + -0.883960 -2.362875 -1.457387 -0.788605 + -1.242194 -0.602552 -0.260088 -0.023746 + -0.270841 -1.475262 -0.378758 -0.637316 + + Columns 5 through 7: + + -0.455633 -3.455126 -0.614488 + -0.388422 -0.624192 -0.343782 + -0.067292 -1.425857 -0.408188 + -0.388948 -0.752859 -0.202503 + +>> B3=sin(B) +B3 = + + Columns 1 through 4: + + 0.739117 0.167503 0.591177 0.756782 + 0.401490 0.094010 0.230746 0.438994 + 0.284754 0.520480 0.696841 0.828562 + 0.690903 0.226730 0.632450 0.504419 + + Columns 5 through 7: + + 0.592410 0.031578 0.514923 + 0.627335 0.510438 0.651139 + 0.804553 0.237996 0.616944 + 0.627057 0.453794 0.728880 + +--------------------------------------- + +>> 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 8: + + 11.500 12.689 13.879 15.068 16.258 17.447 18.637 19.826 + + Columns 9 through 16: + + 21.016 22.205 23.395 24.584 25.774 26.963 28.153 29.342 + + Columns 17 through 20: + + 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.9120 + 0.3068 + 0.8781 + 0.7271 + +>> DB=diag(B1D) +DB = + +Diagonal Matrix + + 0.9120 0 0 0 + 0 0.3068 0 0 + 0 0 0.8781 0 + 0 0 0 0.7271 + +>> BS1=sort(B) +BS1 = + + 0.288750 0.094149 0.232844 0.454478 0.634046 0.031583 0.540918 + 0.413143 0.168296 0.632518 0.528709 0.677770 0.240303 0.664854 + 0.762738 0.228719 0.684711 0.858376 0.678126 0.471018 0.709084 + 0.831759 0.547413 0.770984 0.976534 0.934923 0.535694 0.816684 + +>> BS2=sortrows(B,2) +BS2 = + + 0.413143 0.094149 0.232844 0.454478 0.678126 0.535694 0.709084 + 0.831759 0.168296 0.632518 0.858376 0.634046 0.031583 0.540918 + 0.762738 0.228719 0.684711 0.528709 0.677770 0.471018 0.816684 + 0.288750 0.547413 0.770984 0.976534 0.934923 0.240303 0.664854 + +>> 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 = 1388.8 +>> dinv=inv(A*A') +dinv = + + 0.374568 0.025819 -0.305610 0.189828 + 0.025819 0.053005 -0.044695 0.025517 + -0.305610 -0.044695 0.432459 -0.163317 + 0.189828 0.025517 -0.163317 0.317169