Files
it-labs/ТЕМА1/zadaca1.md

1.5 KiB

пункт 1

>> MM = 10+8*randn(5, 7)
MM =

 Columns 1 through 6:

   1.5004e+01  -1.0272e+00   1.1281e+01   2.8744e+00  -8.6846e+00   1.7823e+01
   1.7862e+01   2.0515e+01   2.1456e+01  -2.0221e+00   3.2374e+00   1.2947e+01
   1.5801e+01   2.7871e+00   1.6788e+01  -1.3551e-01   9.3571e+00   1.0505e+01
   5.6497e+00   4.1868e+00   9.5864e+00   7.3264e+00   7.5227e-01   9.7968e+00
   8.2894e+00   3.7595e+00   7.8255e+00   3.1490e+01  -7.1647e+00   3.4503e-02

 Column 7:

   2.2093e+00
   1.1331e+01
   6.8181e+00
   2.2822e+01
   1.4439e+01

пункт 2

>> SR = mean(MM(:))
SR = 8.7292

пункт 3

>> lower_bound = SR-8
lower_bound = 0.7292
>> upper_bound = SR+8
upper_bound = 16.729
>> MM(MM<lower_bound) = lower_bound
MM =

   15.0040    0.7292   11.2805    2.8744    0.7292   17.8226    2.2093
   17.8623   20.5147   21.4563    0.7292    3.2374   12.9473   11.3309
   15.8013    2.7871   16.7882    0.7292    9.3571   10.5052    6.8181
    5.6497    4.1868    9.5864    7.3264    0.7523    9.7968   22.8218
    8.2894    3.7595    7.8255   31.4901    0.7292    0.7292   14.4392


>> MM(MM>upper_bound) = upper_bound
MM =

   15.0040    0.7292   11.2805    2.8744    0.7292   16.7292    2.2093
   16.7292   16.7292   16.7292    0.7292    3.2374   12.9473   11.3309
   15.8013    2.7871   16.7292    0.7292    9.3571   10.5052    6.8181
    5.6497    4.1868    9.5864    7.3264    0.7523    9.7968   16.7292
    8.2894    3.7595    7.8255   16.7292    0.7292    0.7292   14.4392

пункт 4