SlideShare a Scribd company logo
1 of 15
Download to read offline
Please show your input and output screenshot of matlab. Show all work!
5. Fill a MATLAB vector array with 1000 Gaussianly distributed numbers (ie, randn and
another with 1000 uniformly distributed numbers (ie, rand. Find the mean and standard deviation
of both sets of numbers. Modify the array of numbers to have a mean value of zero. Confirm it
has a mean of zero and recalculate the standard deviation.
Solution
r = randn(1,1000,'single')
r =
Columns 1 through 13
0.5377 1.8339 -2.2588 0.8622 0.3188 -1.3077 -0.4336 0.3426 3.5784 2.7694 -
1.3499 3.0349 0.7254
Columns 14 through 26
-0.0631 0.7147 -0.2050 -0.1241 1.4897 1.4090 1.4172 0.6715 -1.2075 0.7172
1.6302 0.4889 1.0347
Columns 27 through 39
0.7269 -0.3034 0.2939 -0.7873 0.8884 -1.1471 -1.0689 -0.8095 -2.9443 1.4384
0.3252 -0.7549 1.3703
Columns 40 through 52
-1.7115 -0.1022 -0.2414 0.3192 0.3129 -0.8649 -0.0301 -0.1649 0.6277 1.0933
1.1093 -0.8637 0.0774
Columns 53 through 65
-1.2141 -1.1135 -0.0068 1.5326 -0.7697 0.3714 -0.2256 1.1174 -1.0891 0.0326
0.5525 1.1006 1.5442
Columns 66 through 78
0.0859 -1.4916 -0.7423 -1.0616 2.3505 -0.6156 0.7481 -0.1924 0.8886 -0.7648
-1.4023 -1.4224 0.4882
Columns 79 through 91
-0.1774 -0.1961 1.4193 0.2916 0.1978 1.5877 -0.8045 0.6966 0.8351 -0.2437
0.2157 -1.1658 -1.1480
Columns 92 through 104
0.1049 0.7223 2.5855 -0.6669 0.1873 -0.0825 -1.9330 -0.4390 -1.7947 0.8404 -
0.8880 0.1001 -0.5445
Columns 105 through 117
0.3035 -0.6003 0.4900 0.7394 1.7119 -0.1941 -2.1384 -0.8396 1.3546 -1.0722
0.9610 0.1240 1.4367
Columns 118 through 130
-1.9609 -0.1977 -1.2078 2.9080 0.8252 1.3790 -1.0582 -0.4686 -0.2725 1.0984
-0.2779 0.7015 -2.0518
Columns 131 through 143
-0.3539 -0.8236 -1.5771 0.5080 0.2820 0.0335 -1.3337 1.1275 0.3502 -0.2991
0.0229 -0.2620 -1.7502
Columns 144 through 156
-0.2857 -0.8314 -0.9792 -1.1564 -0.5336 -2.0026 0.9642 0.5201 -0.0200 -0.0348
-0.7982 1.0187 -0.1332
Columns 157 through 169
-0.7145 1.3514 -0.2248 -0.5890 -0.2938 -0.8479 -1.1201 2.5260 1.6555 0.3075
-1.2571 -0.8655 -0.1765
Columns 170 through 182
0.7914 -1.3320 -2.3299 -1.4491 0.3335 0.3914 0.4517 -0.1303 0.1837 -0.4762
0.8620 -1.3617 0.4550
Columns 183 through 195
-0.8487 -0.3349 0.5528 1.0391 -1.1176 1.2607 0.6601 -0.0679 -0.1952 -0.2176
-0.3031 0.0230 0.0513
Columns 196 through 208
0.8261 1.5270 0.4669 -0.2097 0.6252 0.1832 -1.0298 0.9492 0.3071 0.1352
0.5152 0.2614 -0.9415
Columns 209 through 221
-0.1623 -0.1461 -0.5320 1.6821 -0.8757 -0.4838 -0.7120 -1.1742 -0.1922 -0.2741
1.5301 -0.2490 -1.0642
Columns 222 through 234
1.6035 1.2347 -0.2296 -1.5062 -0.4446 -0.1559 0.2761 -0.2612 0.4434 0.3919 -
1.2507 -0.9480 -0.7411
Columns 235 through 247
-0.5078 -0.3206 0.0125 -3.0292 -0.4570 1.2424 -1.0667 0.9337 0.3503 -0.0290
0.1825 -1.5651 -0.0845
Columns 248 through 260
1.6039 0.0983 0.0414 -0.7342 -0.0308 0.2323 0.4264 -0.3728 -0.2365 2.0237 -
2.2584 2.2294 0.3376
Columns 261 through 273
1.0001 -1.6642 -0.5900 -0.2781 0.4227 -1.6702 0.4716 -1.2128 0.0662 0.6524
0.3271 1.0826 1.0061
Columns 274 through 286
-0.6509 0.2571 -0.9444 -1.3218 0.9248 0.0000 -0.0549 0.9111 0.5946 0.3502
1.2503 0.9298 0.2398
Columns 287 through 299
-0.6904 -0.6516 1.1921 -1.6118 -0.0245 -1.9488 1.0205 0.8617 0.0012 -0.0708
-2.4863 0.5812 -2.1924
Columns 300 through 312
-2.3193 0.0799 -0.9485 0.4115 0.6770 0.8577 -0.6912 0.4494 0.1006 0.8261
0.5362 0.8979 -0.1319
Columns 313 through 325
-0.1472 1.0078 -2.1237 -0.5046 -1.2706 -0.3826 0.6487 0.8257 -1.0149 -0.4711
0.1370 -0.2919 0.3018
Columns 326 through 338
0.3999 -0.9300 -0.1768 -2.1321 1.1454 -0.6291 -1.2039 -0.2539 -1.4286 -0.0209
-0.5607 2.1778 1.1385
Columns 339 through 351
-2.4969 0.4413 -1.3981 -0.2551 0.1644 0.7477 -0.2730 1.5763 -0.4809 0.3275
0.6647 0.0852 0.8810
Columns 352 through 364
0.3232 -0.7841 -1.8054 1.8586 -0.6045 0.1034 0.5632 0.1136 -0.9047 -0.4677 -
0.1249 1.4790 -0.8608
Columns 365 through 377
0.7847 0.3086 -0.2339 -1.0570 -0.2841 -0.0867 -1.4694 0.1922 -0.8223 -0.0942
0.3362 -0.9047 -0.2883
Columns 378 through 390
0.3501 -1.8359 1.0360 2.4245 0.9594 -0.3158 0.4286 -1.0360 1.8779 0.9407
0.7873 -0.8759 0.3199
Columns 391 through 403
-0.5583 -0.3114 -0.5700 -1.0257 -0.9087 -0.2099 -1.6989 0.6076 -0.1178 0.6992
0.2696 0.4943 -1.4831
Columns 404 through 416
-1.0203 -0.4470 0.1097 1.1287 -0.2900 1.2616 0.4754 1.1741 0.1269 -0.6568 -
1.4814 0.1555 0.8186
Columns 417 through 429
-0.2926 -0.5408 -0.3086 -1.0966 -0.4930 -0.1807 0.0458 -0.0638 0.6113 0.1093
1.8140 0.3120 1.8045
Columns 430 through 442
-0.7231 0.5265 -0.2603 0.6001 0.5939 -2.1860 -1.3270 -1.4410 0.4018 1.4702 -
0.3268 0.8123 0.5455
Columns 443 through 455
-1.0516 0.3975 -0.7519 1.5163 -0.0326 1.6360 -0.4251 0.5894 -0.0628 -2.0220
-0.9821 0.6125 -0.0549
Columns 456 through 468
-1.1187 -0.6264 0.2495 -0.9930 0.9750 -0.6407 1.8089 -1.0799 0.1992 -1.5210
-0.7236 -0.5933 0.4013
Columns 469 through 481
0.9421 0.3005 -0.3731 0.8155 0.7989 0.1202 0.5712 0.4128 -0.9870 0.7596 -
0.6572 -0.6039 0.1769
Columns 482 through 494
-0.3075 -0.1318 0.5954 1.0468 -0.1980 0.3277 -0.2383 0.2296 0.4400 -0.6169
0.2748 0.6011 0.0923
Columns 495 through 507
1.7298 -0.6086 -0.7371 -1.7499 0.9105 0.8671 -0.0799 0.8985 0.1837 0.2908
0.1129 0.4400 0.1017
Columns 508 through 520
2.7873 -1.1667 -1.8543 -1.1407 -1.0933 -0.4336 -0.1685 -0.2185 0.5413 0.3893
0.7512 1.7783 1.2231
Columns 521 through 533
-1.2833 -2.3290 0.9019 -1.8356 0.0668 0.0355 2.2272 -0.0692 -0.5073 0.2358
0.2458 0.0700 -0.6086
Columns 534 through 546
-1.2226 0.3165 -1.3429 -1.0322 1.3312 -0.4189 -0.1403 0.8998 -0.3001 1.0294
-0.3451 1.0128 0.6293
Columns 547 through 559
-0.2130 -0.8657 -1.0431 -0.2701 -0.4381 -0.4087 0.9835 -0.2977 1.1437 -0.5316
0.9726 -0.5223 0.1766
Columns 560 through 572
0.9707 -0.4140 -0.4383 2.0034 0.9510 -0.4320 0.6489 -0.3601 0.7059 1.4158 -
1.6045 1.0289 1.4580
Columns 573 through 585
0.0475 1.7463 0.1554 -1.2371 -2.1935 -0.3334 0.7135 0.3174 0.4136 -0.5771
0.1440 -1.6387 -0.7601
Columns 586 through 598
-0.8188 0.5197 -0.0142 -1.1555 -0.0095 -0.6898 -0.6667 0.8641 0.1134 0.3984
0.8840 0.1803 0.5509
Columns 599 through 611
0.6830 1.1706 0.4759 1.4122 0.0226 -0.0479 1.7013 -0.5097 -0.0029 0.9199
0.1498 1.4049 1.0341
Columns 612 through 624
0.2916 -0.7777 0.5667 -1.3826 0.2445 0.8084 0.2130 0.8797 2.0389 0.9239
0.2669 0.6417 0.4255
Columns 625 through 637
-1.3147 -0.4164 1.2247 -0.0436 0.5824 -1.0065 0.0645 0.6003 -1.3615 0.3476 -
0.1818 -0.9395 -0.0375
Columns 638 through 650
-1.8963 -2.1280 -1.1769 -0.9905 -1.1730 -1.7254 0.2882 -1.5942 0.1102 0.7871
-0.0022 0.0931 -0.3782
Columns 651 through 663
-1.4827 -0.0438 0.9608 1.7382 -0.4302 -1.6273 0.1663 0.3763 -0.2270 -1.1489
2.0243 -2.3595 -0.5100
Columns 664 through 676
-1.3216 -0.6361 0.3179 0.1380 -0.7107 0.7770 0.6224 0.6474 -0.4256 1.0486
0.6607 2.5088 1.0635
Columns 677 through 689
1.1569 0.0530 -1.2884 -0.3712 -0.7578 -0.5640 0.5551 -0.5568 -0.8951 -0.4093
-0.1609 0.4093 -0.9526
Columns 690 through 702
0.3173 0.0780 1.3244 -0.2132 -0.1345 -1.1714 -1.3853 0.3105 -0.2495 0.5037 -
0.8927 1.9085 0.1222
Columns 703 through 715
1.0470 -0.2269 -0.1625 0.6901 0.5558 -1.1203 -1.5327 -1.0979 -1.4158 0.0596
-0.4113 -0.3680 -1.3610
Columns 716 through 728
0.7796 0.4394 -0.0896 1.0212 -0.8740 0.4147 0.3484 0.3493 -0.7292 0.3268 -
0.5149 -0.8964 -1.2033
Columns 729 through 741
1.0378 -0.8459 -0.1729 -1.2087 -0.2971 -3.2320 -1.0870 -1.4264 -1.0145 -0.2133
-0.3253 1.9444 -0.5718
Columns 742 through 754
-0.2500 -1.5693 -0.4774 -1.3380 0.0303 0.8531 0.4043 -0.7006 -1.6305 1.4600
2.0500 0.1205 -0.9899
Columns 755 through 767
1.1978 -0.5927 -0.4698 0.8864 -1.3852 -1.9568 0.4207 0.4007 0.0951 0.4967
1.0822 0.9704 -0.5686
Columns 768 through 780
0.8100 0.1732 -0.5055 -1.1933 0.6470 -0.3536 0.0464 -0.7929 -1.5505 0.1716 -
0.0621 1.1990 0.8017
Columns 781 through 793
1.0533 -0.7489 -0.9363 -1.2691 0.4980 2.7891 0.7276 -0.7731 0.8366 -1.1283 -
1.4245 0.7174 -0.7779
Columns 794 through 806
0.3160 1.4065 0.4011 0.9297 -1.6058 0.6615 2.1385 0.5411 -1.5409 -0.2031 -
0.5000 0.3830 0.4120
Columns 807 through 819
0.4055 -0.3638 -0.5993 -0.5896 0.8535 -1.8530 -0.2073 0.2704 -0.6528 0.4772
-0.0713 -0.9383 0.1614
Columns 820 through 832
-0.2682 -0.4099 -0.7113 0.0614 -1.8461 -0.3983 -0.5435 -0.9119 0.6527 -0.7343
0.5406 0.9758 -0.1569
Columns 833 through 845
0.2778 0.6395 -0.0810 0.5409 -1.2626 1.1104 -0.9896 -1.8288 1.3845 -0.0627
0.4489 -0.3633 -1.0206
Columns 846 through 858
-3.0730 0.6263 -0.2867 -0.1973 0.4056 -1.4193 -0.7294 1.1473 0.5979 -1.2813
-2.2033 -0.5712 0.2140
Columns 859 through 871
0.9424 0.0937 -1.1223 0.3062 -1.1723 -0.9610 -0.6537 -1.2294 -0.2710 -0.9000
-0.2857 -0.4624 -0.4098
Columns 872 through 884
-0.5035 1.2333 0.6103 0.0591 -1.4669 -1.6258 -1.9648 2.6052 0.9724 0.2570 -
0.9742 -1.1464 0.5476
Columns 885 through 897
1.5651 -1.6933 -0.4494 -0.0843 -1.9920 0.8412 -0.4147 1.9122 -0.3909 0.4092
-1.1424 -0.6249 -1.1687
Columns 898 through 910
0.3926 1.3018 -0.5936 0.4364 -0.5044 0.1021 1.1963 0.1203 -1.0368 -0.8571 -
0.1699 -0.1917 -0.8658
Columns 911 through 923
0.1807 1.2665 -0.2512 -0.2046 -2.2015 -0.7745 -1.3933 -0.3862 0.5256 1.5233
1.7985 -0.1169 -0.3202
Columns 924 through 936
0.8175 0.4902 0.7653 0.7783 -1.4803 0.5404 -0.0915 -0.7603 -0.6936 1.2815 -
0.8097 -1.2368 0.2147
Columns 937 through 949
2.0108 0.0256 0.3083 -0.9382 1.6742 0.1250 0.5301 -0.9521 0.8540 0.3891 -
1.1560 0.0397 -0.4506
Columns 950 through 962
0.1092 -0.2506 -0.1899 -1.0329 -0.3233 0.7665 1.7447 -1.1605 2.3774 1.5261
0.1685 -0.3012 -0.6987
Columns 963 through 975
0.8328 -0.6946 -0.4619 0.8836 0.4359 0.8967 0.5047 -0.4009 -0.5138 0.7964 -
0.6712 1.1867 0.7907
Columns 976 through 988
0.2877 0.0032 0.3656 3.5267 -0.1124 -1.5566 1.9151 0.6098 -0.6479 2.6173
0.5510 0.2942 -0.7778
Columns 989 through 1000
-1.0649 -1.7684 -0.4229 -1.0531 0.6478 -0.3176 1.7690 1.5106 0.1640 -0.2828
1.1522 -1.1465
============================
mean of row vector r:
M = mean(r)
M =
-0.0326
===========
u = rand(1,1000,'single')
u =
Columns 1 through 13
0.9246 0.2238 0.3736 0.0875 0.6401 0.1806 0.0451 0.7232 0.3474 0.6606
0.3839 0.6273 0.0216
Columns 14 through 26
0.9106 0.8006 0.7458 0.8131 0.3833 0.6173 0.5755 0.5301 0.2751 0.2486
0.4516 0.2277 0.8044
Columns 27 through 39
0.9861 0.0300 0.5357 0.0871 0.8021 0.9891 0.0669 0.9394 0.0182 0.6838
0.7837 0.5341 0.8854
Columns 40 through 52
0.8990 0.6259 0.1379 0.2178 0.1821 0.0418 0.1069 0.6164 0.9397 0.3545
0.4106 0.9843 0.9456
Columns 53 through 65
0.6766 0.9883 0.7668 0.3367 0.6624 0.2442 0.2955 0.6802 0.5278 0.4116
0.6026 0.7505 0.5835
Columns 66 through 78
0.5518 0.5836 0.5118 0.0826 0.7196 0.9962 0.3545 0.9713 0.3464 0.8865
0.4547 0.4134 0.2177
Columns 79 through 91
0.1257 0.3089 0.7261 0.7829 0.6938 0.0098 0.8432 0.9223 0.7710 0.0427
0.3782 0.7043 0.7295
Columns 92 through 104
0.2243 0.2691 0.6730 0.4775 0.6237 0.2364 0.1771 0.8296 0.7669 0.9345
0.1079 0.1822 0.0991
Columns 105 through 117
0.4898 0.1932 0.8959 0.0991 0.0442 0.5573 0.7725 0.3119 0.1790 0.3390
0.2101 0.5102 0.9064
Columns 118 through 130
0.6289 0.1015 0.3909 0.0546 0.5013 0.4317 0.9976 0.8116 0.4857 0.8944
0.1375 0.3900 0.9274
Columns 131 through 143
0.9175 0.7136 0.6183 0.3433 0.9360 0.1248 0.7306 0.6465 0.8332 0.3983
0.7498 0.8352 0.3225
Columns 144 through 156
0.5523 0.9791 0.5493 0.3304 0.6195 0.3606 0.7565 0.4139 0.4923 0.6947
0.9727 0.3278 0.8378
Columns 157 through 169
0.7391 0.9542 0.0319 0.3569 0.6627 0.2815 0.2304 0.7111 0.6246 0.5906
0.6604 0.0476 0.3488
Columns 170 through 182
0.4513 0.2409 0.7150 0.8562 0.2815 0.7311 0.1378 0.8367 0.1386 0.5882
0.3662 0.8068 0.5038
Columns 183 through 195
0.4896 0.8770 0.3531 0.4494 0.9635 0.0423 0.9730 0.1892 0.6671 0.5864
0.6751 0.3610 0.6203
Columns 196 through 208
0.8112 0.0193 0.0839 0.9748 0.6513 0.2312 0.4035 0.1220 0.2684 0.2578
0.3317 0.1522 0.3480
Columns 209 through 221
0.1217 0.8842 0.0943 0.9300 0.3990 0.0474 0.3424 0.7360 0.7947 0.5449
0.6862 0.8936 0.0548
Columns 222 through 234
0.3037 0.0462 0.1955 0.7202 0.7218 0.8778 0.5824 0.0707 0.9227 0.8004
0.2859 0.5437 0.9848
Columns 235 through 247
0.7157 0.8390 0.4333 0.4706 0.5607 0.2691 0.7490 0.5039 0.6468 0.3077
0.1387 0.4756 0.3625
Columns 248 through 260
0.7881 0.7803 0.6685 0.1335 0.0216 0.5598 0.3008 0.9394 0.9809 0.2866
0.8008 0.8961 0.5975
Columns 261 through 273
0.8840 0.9437 0.5492 0.7284 0.5768 0.0259 0.4465 0.6463 0.5212 0.3723
0.9371 0.8295 0.8491
Columns 274 through 286
0.3725 0.5932 0.8726 0.9335 0.6685 0.2068 0.6539 0.0721 0.4067 0.6669
0.9337 0.8110 0.4845
Columns 287 through 299
0.7567 0.4170 0.9718 0.9880 0.8641 0.3889 0.4547 0.2467 0.7844 0.8828
0.9137 0.5583 0.5989
Columns 300 through 312
0.1489 0.8997 0.4504 0.2057 0.8997 0.7626 0.8825 0.2850 0.6732 0.6643
0.1228 0.4073 0.2753
Columns 313 through 325
0.7167 0.2834 0.8962 0.8266 0.3900 0.4979 0.6948 0.8344 0.6096 0.5747
0.3260 0.4564 0.7138
Columns 326 through 338
0.8844 0.7209 0.0186 0.6748 0.4385 0.4378 0.1170 0.8147 0.3249 0.2462
0.3427 0.3757 0.5466
Columns 339 through 351
0.5619 0.3958 0.3981 0.5154 0.6575 0.9509 0.7223 0.4001 0.8319 0.1343
0.0605 0.0842 0.1639
Columns 352 through 364
0.3242 0.3017 0.0117 0.5399 0.0954 0.1465 0.6311 0.8593 0.9742 0.5708
0.9969 0.5535 0.5155
Columns 365 through 377
0.3307 0.4300 0.4918 0.0710 0.8877 0.0646 0.4362 0.8266 0.3945 0.6135
0.8186 0.8862 0.9311
Columns 378 through 390
0.1908 0.2586 0.8979 0.5934 0.5038 0.6128 0.8194 0.5319 0.2021 0.4539
0.4279 0.9661 0.6201
Columns 391 through 403
0.6954 0.7202 0.3469 0.5170 0.5567 0.1565 0.5621 0.6948 0.4265 0.8363
0.7314 0.3600 0.4542
Columns 404 through 416
0.3864 0.7756 0.7343 0.4303 0.6938 0.9452 0.7842 0.7056 0.1093 0.3899
0.5909 0.4594 0.0503
Columns 417 through 429
0.2287 0.8342 0.0156 0.8637 0.0781 0.6690 0.5002 0.2180 0.5716 0.1222
0.6712 0.5996 0.0560
Columns 430 through 442
0.0563 0.1525 0.0196 0.4352 0.8322 0.6174 0.5201 0.8639 0.0977 0.9081
0.1080 0.5170 0.1432
Columns 443 through 455
0.5594 0.0046 0.7667 0.8487 0.9168 0.9870 0.5051 0.2714 0.1008 0.5078
0.5856 0.7629 0.0830
Columns 456 through 468
0.6616 0.5170 0.1710 0.9386 0.5905 0.4406 0.9419 0.6559 0.4519 0.8397
0.5326 0.5539 0.6801
Columns 469 through 481
0.3672 0.2393 0.5789 0.8669 0.4068 0.1126 0.4438 0.3002 0.4014 0.8334
0.4036 0.3902 0.3604
Columns 482 through 494
0.1403 0.2601 0.0868 0.4294 0.2573 0.2976 0.4249 0.1192 0.4951 0.7064
0.2436 0.7851 0.0741
Columns 495 through 507
0.3939 0.0034 0.2207 0.0013 0.1892 0.1425 0.2681 0.1749 0.1386 0.5989
0.9011 0.9394 0.2212
Columns 508 through 520
0.4827 0.3760 0.5238 0.2649 0.0684 0.4363 0.1739 0.0261 0.9547 0.4306
0.9616 0.7624 0.0073
Columns 521 through 533
0.6800 0.7060 0.6451 0.5523 0.2181 0.7724 0.2280 0.3709 0.8909 0.8564
0.4024 0.3180 0.6086
Columns 534 through 546
0.9102 0.9091 0.5916 0.3326 0.8531 0.4424 0.9044 0.0332 0.5324 0.7165
0.1793 0.3365 0.1877
Columns 547 through 559
0.3219 0.4039 0.5486 0.0487 0.5527 0.2748 0.2415 0.2431 0.1542 0.9564
0.9357 0.8187 0.7283
Columns 560 through 572
0.1758 0.3604 0.1888 0.0012 0.3164 0.6996 0.6253 0.5431 0.4390 0.2874
0.5017 0.7615 0.7624
Columns 573 through 585
0.5761 0.7477 0.6455 0.1232 0.5044 0.3473 0.0921 0.1478 0.1982 0.6723
0.4315 0.6944 0.2568
Columns 586 through 598
0.0098 0.5323 0.2794 0.9462 0.9064 0.3927 0.0249 0.6714 0.8372 0.9715
0.0569 0.4503 0.5825
Columns 599 through 611
0.6866 0.7194 0.6500 0.7269 0.3738 0.5816 0.1161 0.0577 0.9798 0.2848
0.5950 0.9622 0.1858
Columns 612 through 624
0.1930 0.3416 0.9329 0.3907 0.2732 0.1519 0.3971 0.3747 0.1311 0.4350
0.0915 0.6146 0.0110
Columns 625 through 637
0.5733 0.7897 0.2354 0.4480 0.5694 0.0614 0.4963 0.6423 0.2213 0.8371
0.9711 0.8464 0.5060
Columns 638 through 650
0.2789 0.7466 0.2369 0.9573 0.6203 0.6003 0.1726 0.0903 0.2553 0.8586
0.9111 0.6996 0.7252
Columns 651 through 663
0.2299 0.5761 0.8106 0.4038 0.9884 0.0900 0.3209 0.5114 0.0606 0.7257
0.5566 0.5294 0.8300
Columns 664 through 676
0.8588 0.7890 0.3178 0.4522 0.7522 0.1099 0.1097 0.2699 0.5246 0.9727
0.7104 0.3119 0.2915
Columns 677 through 689
0.8504 0.9116 0.6393 0.2554 0.0887 0.8383 0.5847 0.9481 0.0610 0.5846
0.2851 0.8277 0.1910
Columns 690 through 702
0.4425 0.3934 0.8266 0.6769 0.2076 0.3181 0.1338 0.6715 0.5710 0.1698
0.1477 0.4761 0.9081
Columns 703 through 715
0.5522 0.0329 0.0539 0.8051 0.4514 0.3826 0.7896 0.3643 0.5323 0.7117
0.8715 0.3287 0.6501
Columns 716 through 728
0.9748 0.0760 0.5870 0.4139 0.3091 0.2638 0.7588 0.9952 0.1866 0.7811
0.1958 0.9924 0.8023
Columns 729 through 741
0.4242 0.7289 0.4984 0.8090 0.3565 0.0732 0.5910 0.9102 0.1938 0.4324
0.7492 0.0392 0.9463
Columns 742 through 754
0.7637 0.5588 0.1838 0.4979 0.5178 0.9942 0.8549 0.9624 0.6789 0.4035
0.9350 0.4795 0.2318
Columns 755 through 767
0.3963 0.7051 0.5586 0.7566 0.9955 0.9624 0.5351 0.9639 0.1156 0.0514
0.3043 0.5802 0.5310
Columns 768 through 780
0.9012 0.5406 0.4320 0.5427 0.7124 0.0167 0.8009 0.1425 0.4785 0.2568
0.3691 0.6618 0.1696
Columns 781 through 793
0.2788 0.1982 0.1951 0.3268 0.8803 0.4711 0.4040 0.1792 0.9689 0.4075
0.8445 0.6153 0.3766
Columns 794 through 806
0.8772 0.7849 0.4650 0.8140 0.8984 0.4292 0.3343 0.5966 0.9020 0.7021
0.3775 0.7350 0.9541
Columns 807 through 819
0.5428 0.5401 0.3111 0.0712 0.1820 0.0930 0.4635 0.0093 0.9150 0.6427
0.0014 0.0304 0.2085
Columns 820 through 832
0.4550 0.1273 0.0086 0.7271 0.3541 0.7804 0.4367 0.4366 0.0492 0.0496
0.0911 0.5940 0.2411
Columns 833 through 845
0.8414 0.8572 0.9636 0.4889 0.2203 0.2262 0.5368 0.7621 0.3476 0.4612
0.6393 0.9173 0.1616
Columns 846 through 858
0.7156 0.5777 0.4333 0.8842 0.3931 0.1790 0.6333 0.6240 0.3279 0.8030
0.9995 0.9810 0.1270
Columns 859 through 871
0.2322 0.0236 0.6074 0.1108 0.4075 0.8841 0.5481 0.3690 0.2083 0.4409
0.9562 0.1240 0.4708
Columns 872 through 884
0.8569 0.0434 0.6916 0.9790 0.2833 0.1338 0.6853 0.9095 0.6109 0.9000
0.1934 0.7544 0.3463
Columns 885 through 897
0.4186 0.1557 0.8190 0.6249 0.7386 0.8051 0.0672 0.9508 0.4976 0.7551
0.7424 0.8311 0.1565
Columns 898 through 910
0.4573 0.6181 0.9322 0.8351 0.8954 0.5825 0.5827 0.8549 0.0349 0.8854
0.4077 0.0364 0.7461
Columns 911 through 923
0.1548 0.1439 0.6060 0.2545 0.3242 0.4018 0.4064 0.3862 0.6098 0.1669
0.1881 0.0946 0.3232
Columns 924 through 936
0.7696 0.2341 0.7404 0.6928 0.8241 0.8280 0.2934 0.3094 0.5230 0.3253
0.8318 0.8103 0.5570
Columns 937 through 949
0.2630 0.6806 0.2337 0.4564 0.3846 0.5386 0.9917 0.7552 0.9805 0.2348
0.5286 0.0514 0.7569
Columns 950 through 962
0.6020 0.8572 0.9883 0.9295 0.4095 0.0003 0.5409 0.2077 0.2193 0.3258
0.0959 0.7475 0.7485
Columns 963 through 975
0.5433 0.3381 0.8323 0.5526 0.9575 0.8928 0.3565 0.5464 0.3467 0.6228
0.7966 0.7459 0.1255
Columns 976 through 988
0.8224 0.0252 0.4144 0.7314 0.7814 0.3673 0.7449 0.8923 0.2426 0.1296
0.2251 0.3500 0.2871
Columns 989 through 1000
0.9275 0.0513 0.5927 0.1629 0.8384 0.1676 0.5022 0.9993 0.3554 0.0471
0.2137 0.3978
============
mean of u:
M_u = mean(u)
M_u =
0.5089
===========================
standard deviation of both r and u
S_r = std(r)
S_r =
0.9990
>> S_u = std(u)
S_u =
0.2860
====
form a new random vector;
Y= (U-E[x])/std(U)
for i=1:1000
Y(i)=(u(i)-M_u)/S_u;
end
>> M_Y=mean(Y)
M_Y =
6.3282e-07
>> S_Y = std(Y)
S_Y =
1.0000

More Related Content

More from fathimafancyjeweller

True or false Income statement profit and loss statement shows com.pdf
True or false Income statement profit and loss statement shows com.pdfTrue or false Income statement profit and loss statement shows com.pdf
True or false Income statement profit and loss statement shows com.pdffathimafancyjeweller
 
Thomas Rinks and Joseph Shields developed Psycho Chihuahua, a carica.pdf
Thomas Rinks and Joseph Shields developed Psycho Chihuahua, a carica.pdfThomas Rinks and Joseph Shields developed Psycho Chihuahua, a carica.pdf
Thomas Rinks and Joseph Shields developed Psycho Chihuahua, a carica.pdffathimafancyjeweller
 
The government uses part of payroll taxes to pay for Social Security..pdf
The government uses part of payroll taxes to pay for Social Security..pdfThe government uses part of payroll taxes to pay for Social Security..pdf
The government uses part of payroll taxes to pay for Social Security..pdffathimafancyjeweller
 
The financial statements are prepared from the unadjusted trial balan.pdf
The financial statements are prepared from the unadjusted trial balan.pdfThe financial statements are prepared from the unadjusted trial balan.pdf
The financial statements are prepared from the unadjusted trial balan.pdffathimafancyjeweller
 
Should the US conform to international standardsSolutionYes, .pdf
Should the US conform to international standardsSolutionYes, .pdfShould the US conform to international standardsSolutionYes, .pdf
Should the US conform to international standardsSolutionYes, .pdffathimafancyjeweller
 
Research and describe a tool that can be used to test for web server.pdf
Research and describe a tool that can be used to test for web server.pdfResearch and describe a tool that can be used to test for web server.pdf
Research and describe a tool that can be used to test for web server.pdffathimafancyjeweller
 
Question 11 of 24 In E. coli, three structural Deand enzymes A. D, an.pdf
Question 11 of 24 In E. coli, three structural Deand enzymes A. D, an.pdfQuestion 11 of 24 In E. coli, three structural Deand enzymes A. D, an.pdf
Question 11 of 24 In E. coli, three structural Deand enzymes A. D, an.pdffathimafancyjeweller
 
Question 1. Dscribe the change you observed when you added 1 mL of 0.pdf
Question 1. Dscribe the change you observed when you added 1 mL of 0.pdfQuestion 1. Dscribe the change you observed when you added 1 mL of 0.pdf
Question 1. Dscribe the change you observed when you added 1 mL of 0.pdffathimafancyjeweller
 
Prove that a group of order 255 is a cyclic.SolutionLet G be a .pdf
Prove that a group of order 255 is a cyclic.SolutionLet G be a .pdfProve that a group of order 255 is a cyclic.SolutionLet G be a .pdf
Prove that a group of order 255 is a cyclic.SolutionLet G be a .pdffathimafancyjeweller
 
Choose one field such as academia, health, consulting, business, man.pdf
Choose one field such as academia, health, consulting, business, man.pdfChoose one field such as academia, health, consulting, business, man.pdf
Choose one field such as academia, health, consulting, business, man.pdffathimafancyjeweller
 
An intercalating agent 1. Inserts between base pairs of the two str.pdf
An intercalating agent 1. Inserts between base pairs of the two str.pdfAn intercalating agent 1. Inserts between base pairs of the two str.pdf
An intercalating agent 1. Inserts between base pairs of the two str.pdffathimafancyjeweller
 
a trait is considered discrete when 1-The traits are intermediat.pdf
a trait is considered discrete when 1-The traits are intermediat.pdfa trait is considered discrete when 1-The traits are intermediat.pdf
a trait is considered discrete when 1-The traits are intermediat.pdffathimafancyjeweller
 
8 Problem The true absorbance of a certain sample is n but there i.pdf
8 Problem The true absorbance of a certain sample is n but there i.pdf8 Problem The true absorbance of a certain sample is n but there i.pdf
8 Problem The true absorbance of a certain sample is n but there i.pdffathimafancyjeweller
 
Please review my code (java)Someone helped me with it but i cannot.pdf
Please review my code (java)Someone helped me with it but i cannot.pdfPlease review my code (java)Someone helped me with it but i cannot.pdf
Please review my code (java)Someone helped me with it but i cannot.pdffathimafancyjeweller
 
7. how can differences between individuals such us as SNPs lead to.pdf
7. how can differences between individuals such us as SNPs lead to.pdf7. how can differences between individuals such us as SNPs lead to.pdf
7. how can differences between individuals such us as SNPs lead to.pdffathimafancyjeweller
 
mainpublic class AssignmentThree {    public static void ma.pdf
mainpublic class AssignmentThree {    public static void ma.pdfmainpublic class AssignmentThree {    public static void ma.pdf
mainpublic class AssignmentThree {    public static void ma.pdffathimafancyjeweller
 
List the six nutritional requirements for growth of all micranes. Bri.pdf
List the six nutritional requirements for growth of all micranes. Bri.pdfList the six nutritional requirements for growth of all micranes. Bri.pdf
List the six nutritional requirements for growth of all micranes. Bri.pdffathimafancyjeweller
 
List and discuss three major social changes to the global community .pdf
List and discuss three major social changes to the global community .pdfList and discuss three major social changes to the global community .pdf
List and discuss three major social changes to the global community .pdffathimafancyjeweller
 
Let V be a finite dimensional vector space over a field F. Let T be l.pdf
Let V be a finite dimensional vector space over a field F. Let T be l.pdfLet V be a finite dimensional vector space over a field F. Let T be l.pdf
Let V be a finite dimensional vector space over a field F. Let T be l.pdffathimafancyjeweller
 
Latin America, Asia (except Japan), and Africa comprise a set of sta.pdf
Latin America, Asia (except Japan), and Africa comprise a set of sta.pdfLatin America, Asia (except Japan), and Africa comprise a set of sta.pdf
Latin America, Asia (except Japan), and Africa comprise a set of sta.pdffathimafancyjeweller
 

More from fathimafancyjeweller (20)

True or false Income statement profit and loss statement shows com.pdf
True or false Income statement profit and loss statement shows com.pdfTrue or false Income statement profit and loss statement shows com.pdf
True or false Income statement profit and loss statement shows com.pdf
 
Thomas Rinks and Joseph Shields developed Psycho Chihuahua, a carica.pdf
Thomas Rinks and Joseph Shields developed Psycho Chihuahua, a carica.pdfThomas Rinks and Joseph Shields developed Psycho Chihuahua, a carica.pdf
Thomas Rinks and Joseph Shields developed Psycho Chihuahua, a carica.pdf
 
The government uses part of payroll taxes to pay for Social Security..pdf
The government uses part of payroll taxes to pay for Social Security..pdfThe government uses part of payroll taxes to pay for Social Security..pdf
The government uses part of payroll taxes to pay for Social Security..pdf
 
The financial statements are prepared from the unadjusted trial balan.pdf
The financial statements are prepared from the unadjusted trial balan.pdfThe financial statements are prepared from the unadjusted trial balan.pdf
The financial statements are prepared from the unadjusted trial balan.pdf
 
Should the US conform to international standardsSolutionYes, .pdf
Should the US conform to international standardsSolutionYes, .pdfShould the US conform to international standardsSolutionYes, .pdf
Should the US conform to international standardsSolutionYes, .pdf
 
Research and describe a tool that can be used to test for web server.pdf
Research and describe a tool that can be used to test for web server.pdfResearch and describe a tool that can be used to test for web server.pdf
Research and describe a tool that can be used to test for web server.pdf
 
Question 11 of 24 In E. coli, three structural Deand enzymes A. D, an.pdf
Question 11 of 24 In E. coli, three structural Deand enzymes A. D, an.pdfQuestion 11 of 24 In E. coli, three structural Deand enzymes A. D, an.pdf
Question 11 of 24 In E. coli, three structural Deand enzymes A. D, an.pdf
 
Question 1. Dscribe the change you observed when you added 1 mL of 0.pdf
Question 1. Dscribe the change you observed when you added 1 mL of 0.pdfQuestion 1. Dscribe the change you observed when you added 1 mL of 0.pdf
Question 1. Dscribe the change you observed when you added 1 mL of 0.pdf
 
Prove that a group of order 255 is a cyclic.SolutionLet G be a .pdf
Prove that a group of order 255 is a cyclic.SolutionLet G be a .pdfProve that a group of order 255 is a cyclic.SolutionLet G be a .pdf
Prove that a group of order 255 is a cyclic.SolutionLet G be a .pdf
 
Choose one field such as academia, health, consulting, business, man.pdf
Choose one field such as academia, health, consulting, business, man.pdfChoose one field such as academia, health, consulting, business, man.pdf
Choose one field such as academia, health, consulting, business, man.pdf
 
An intercalating agent 1. Inserts between base pairs of the two str.pdf
An intercalating agent 1. Inserts between base pairs of the two str.pdfAn intercalating agent 1. Inserts between base pairs of the two str.pdf
An intercalating agent 1. Inserts between base pairs of the two str.pdf
 
a trait is considered discrete when 1-The traits are intermediat.pdf
a trait is considered discrete when 1-The traits are intermediat.pdfa trait is considered discrete when 1-The traits are intermediat.pdf
a trait is considered discrete when 1-The traits are intermediat.pdf
 
8 Problem The true absorbance of a certain sample is n but there i.pdf
8 Problem The true absorbance of a certain sample is n but there i.pdf8 Problem The true absorbance of a certain sample is n but there i.pdf
8 Problem The true absorbance of a certain sample is n but there i.pdf
 
Please review my code (java)Someone helped me with it but i cannot.pdf
Please review my code (java)Someone helped me with it but i cannot.pdfPlease review my code (java)Someone helped me with it but i cannot.pdf
Please review my code (java)Someone helped me with it but i cannot.pdf
 
7. how can differences between individuals such us as SNPs lead to.pdf
7. how can differences between individuals such us as SNPs lead to.pdf7. how can differences between individuals such us as SNPs lead to.pdf
7. how can differences between individuals such us as SNPs lead to.pdf
 
mainpublic class AssignmentThree {    public static void ma.pdf
mainpublic class AssignmentThree {    public static void ma.pdfmainpublic class AssignmentThree {    public static void ma.pdf
mainpublic class AssignmentThree {    public static void ma.pdf
 
List the six nutritional requirements for growth of all micranes. Bri.pdf
List the six nutritional requirements for growth of all micranes. Bri.pdfList the six nutritional requirements for growth of all micranes. Bri.pdf
List the six nutritional requirements for growth of all micranes. Bri.pdf
 
List and discuss three major social changes to the global community .pdf
List and discuss three major social changes to the global community .pdfList and discuss three major social changes to the global community .pdf
List and discuss three major social changes to the global community .pdf
 
Let V be a finite dimensional vector space over a field F. Let T be l.pdf
Let V be a finite dimensional vector space over a field F. Let T be l.pdfLet V be a finite dimensional vector space over a field F. Let T be l.pdf
Let V be a finite dimensional vector space over a field F. Let T be l.pdf
 
Latin America, Asia (except Japan), and Africa comprise a set of sta.pdf
Latin America, Asia (except Japan), and Africa comprise a set of sta.pdfLatin America, Asia (except Japan), and Africa comprise a set of sta.pdf
Latin America, Asia (except Japan), and Africa comprise a set of sta.pdf
 

Please show your input and output screenshot of matlab. Show all wor.pdf

  • 1. Please show your input and output screenshot of matlab. Show all work! 5. Fill a MATLAB vector array with 1000 Gaussianly distributed numbers (ie, randn and another with 1000 uniformly distributed numbers (ie, rand. Find the mean and standard deviation of both sets of numbers. Modify the array of numbers to have a mean value of zero. Confirm it has a mean of zero and recalculate the standard deviation. Solution r = randn(1,1000,'single') r = Columns 1 through 13 0.5377 1.8339 -2.2588 0.8622 0.3188 -1.3077 -0.4336 0.3426 3.5784 2.7694 - 1.3499 3.0349 0.7254 Columns 14 through 26 -0.0631 0.7147 -0.2050 -0.1241 1.4897 1.4090 1.4172 0.6715 -1.2075 0.7172 1.6302 0.4889 1.0347 Columns 27 through 39 0.7269 -0.3034 0.2939 -0.7873 0.8884 -1.1471 -1.0689 -0.8095 -2.9443 1.4384 0.3252 -0.7549 1.3703 Columns 40 through 52 -1.7115 -0.1022 -0.2414 0.3192 0.3129 -0.8649 -0.0301 -0.1649 0.6277 1.0933 1.1093 -0.8637 0.0774 Columns 53 through 65 -1.2141 -1.1135 -0.0068 1.5326 -0.7697 0.3714 -0.2256 1.1174 -1.0891 0.0326 0.5525 1.1006 1.5442 Columns 66 through 78 0.0859 -1.4916 -0.7423 -1.0616 2.3505 -0.6156 0.7481 -0.1924 0.8886 -0.7648 -1.4023 -1.4224 0.4882 Columns 79 through 91 -0.1774 -0.1961 1.4193 0.2916 0.1978 1.5877 -0.8045 0.6966 0.8351 -0.2437 0.2157 -1.1658 -1.1480 Columns 92 through 104 0.1049 0.7223 2.5855 -0.6669 0.1873 -0.0825 -1.9330 -0.4390 -1.7947 0.8404 - 0.8880 0.1001 -0.5445
  • 2. Columns 105 through 117 0.3035 -0.6003 0.4900 0.7394 1.7119 -0.1941 -2.1384 -0.8396 1.3546 -1.0722 0.9610 0.1240 1.4367 Columns 118 through 130 -1.9609 -0.1977 -1.2078 2.9080 0.8252 1.3790 -1.0582 -0.4686 -0.2725 1.0984 -0.2779 0.7015 -2.0518 Columns 131 through 143 -0.3539 -0.8236 -1.5771 0.5080 0.2820 0.0335 -1.3337 1.1275 0.3502 -0.2991 0.0229 -0.2620 -1.7502 Columns 144 through 156 -0.2857 -0.8314 -0.9792 -1.1564 -0.5336 -2.0026 0.9642 0.5201 -0.0200 -0.0348 -0.7982 1.0187 -0.1332 Columns 157 through 169 -0.7145 1.3514 -0.2248 -0.5890 -0.2938 -0.8479 -1.1201 2.5260 1.6555 0.3075 -1.2571 -0.8655 -0.1765 Columns 170 through 182 0.7914 -1.3320 -2.3299 -1.4491 0.3335 0.3914 0.4517 -0.1303 0.1837 -0.4762 0.8620 -1.3617 0.4550 Columns 183 through 195 -0.8487 -0.3349 0.5528 1.0391 -1.1176 1.2607 0.6601 -0.0679 -0.1952 -0.2176 -0.3031 0.0230 0.0513 Columns 196 through 208 0.8261 1.5270 0.4669 -0.2097 0.6252 0.1832 -1.0298 0.9492 0.3071 0.1352 0.5152 0.2614 -0.9415 Columns 209 through 221 -0.1623 -0.1461 -0.5320 1.6821 -0.8757 -0.4838 -0.7120 -1.1742 -0.1922 -0.2741 1.5301 -0.2490 -1.0642 Columns 222 through 234 1.6035 1.2347 -0.2296 -1.5062 -0.4446 -0.1559 0.2761 -0.2612 0.4434 0.3919 - 1.2507 -0.9480 -0.7411 Columns 235 through 247 -0.5078 -0.3206 0.0125 -3.0292 -0.4570 1.2424 -1.0667 0.9337 0.3503 -0.0290 0.1825 -1.5651 -0.0845 Columns 248 through 260 1.6039 0.0983 0.0414 -0.7342 -0.0308 0.2323 0.4264 -0.3728 -0.2365 2.0237 - 2.2584 2.2294 0.3376
  • 3. Columns 261 through 273 1.0001 -1.6642 -0.5900 -0.2781 0.4227 -1.6702 0.4716 -1.2128 0.0662 0.6524 0.3271 1.0826 1.0061 Columns 274 through 286 -0.6509 0.2571 -0.9444 -1.3218 0.9248 0.0000 -0.0549 0.9111 0.5946 0.3502 1.2503 0.9298 0.2398 Columns 287 through 299 -0.6904 -0.6516 1.1921 -1.6118 -0.0245 -1.9488 1.0205 0.8617 0.0012 -0.0708 -2.4863 0.5812 -2.1924 Columns 300 through 312 -2.3193 0.0799 -0.9485 0.4115 0.6770 0.8577 -0.6912 0.4494 0.1006 0.8261 0.5362 0.8979 -0.1319 Columns 313 through 325 -0.1472 1.0078 -2.1237 -0.5046 -1.2706 -0.3826 0.6487 0.8257 -1.0149 -0.4711 0.1370 -0.2919 0.3018 Columns 326 through 338 0.3999 -0.9300 -0.1768 -2.1321 1.1454 -0.6291 -1.2039 -0.2539 -1.4286 -0.0209 -0.5607 2.1778 1.1385 Columns 339 through 351 -2.4969 0.4413 -1.3981 -0.2551 0.1644 0.7477 -0.2730 1.5763 -0.4809 0.3275 0.6647 0.0852 0.8810 Columns 352 through 364 0.3232 -0.7841 -1.8054 1.8586 -0.6045 0.1034 0.5632 0.1136 -0.9047 -0.4677 - 0.1249 1.4790 -0.8608 Columns 365 through 377 0.7847 0.3086 -0.2339 -1.0570 -0.2841 -0.0867 -1.4694 0.1922 -0.8223 -0.0942 0.3362 -0.9047 -0.2883 Columns 378 through 390 0.3501 -1.8359 1.0360 2.4245 0.9594 -0.3158 0.4286 -1.0360 1.8779 0.9407 0.7873 -0.8759 0.3199 Columns 391 through 403 -0.5583 -0.3114 -0.5700 -1.0257 -0.9087 -0.2099 -1.6989 0.6076 -0.1178 0.6992 0.2696 0.4943 -1.4831 Columns 404 through 416 -1.0203 -0.4470 0.1097 1.1287 -0.2900 1.2616 0.4754 1.1741 0.1269 -0.6568 - 1.4814 0.1555 0.8186
  • 4. Columns 417 through 429 -0.2926 -0.5408 -0.3086 -1.0966 -0.4930 -0.1807 0.0458 -0.0638 0.6113 0.1093 1.8140 0.3120 1.8045 Columns 430 through 442 -0.7231 0.5265 -0.2603 0.6001 0.5939 -2.1860 -1.3270 -1.4410 0.4018 1.4702 - 0.3268 0.8123 0.5455 Columns 443 through 455 -1.0516 0.3975 -0.7519 1.5163 -0.0326 1.6360 -0.4251 0.5894 -0.0628 -2.0220 -0.9821 0.6125 -0.0549 Columns 456 through 468 -1.1187 -0.6264 0.2495 -0.9930 0.9750 -0.6407 1.8089 -1.0799 0.1992 -1.5210 -0.7236 -0.5933 0.4013 Columns 469 through 481 0.9421 0.3005 -0.3731 0.8155 0.7989 0.1202 0.5712 0.4128 -0.9870 0.7596 - 0.6572 -0.6039 0.1769 Columns 482 through 494 -0.3075 -0.1318 0.5954 1.0468 -0.1980 0.3277 -0.2383 0.2296 0.4400 -0.6169 0.2748 0.6011 0.0923 Columns 495 through 507 1.7298 -0.6086 -0.7371 -1.7499 0.9105 0.8671 -0.0799 0.8985 0.1837 0.2908 0.1129 0.4400 0.1017 Columns 508 through 520 2.7873 -1.1667 -1.8543 -1.1407 -1.0933 -0.4336 -0.1685 -0.2185 0.5413 0.3893 0.7512 1.7783 1.2231 Columns 521 through 533 -1.2833 -2.3290 0.9019 -1.8356 0.0668 0.0355 2.2272 -0.0692 -0.5073 0.2358 0.2458 0.0700 -0.6086 Columns 534 through 546 -1.2226 0.3165 -1.3429 -1.0322 1.3312 -0.4189 -0.1403 0.8998 -0.3001 1.0294 -0.3451 1.0128 0.6293 Columns 547 through 559 -0.2130 -0.8657 -1.0431 -0.2701 -0.4381 -0.4087 0.9835 -0.2977 1.1437 -0.5316 0.9726 -0.5223 0.1766 Columns 560 through 572 0.9707 -0.4140 -0.4383 2.0034 0.9510 -0.4320 0.6489 -0.3601 0.7059 1.4158 - 1.6045 1.0289 1.4580
  • 5. Columns 573 through 585 0.0475 1.7463 0.1554 -1.2371 -2.1935 -0.3334 0.7135 0.3174 0.4136 -0.5771 0.1440 -1.6387 -0.7601 Columns 586 through 598 -0.8188 0.5197 -0.0142 -1.1555 -0.0095 -0.6898 -0.6667 0.8641 0.1134 0.3984 0.8840 0.1803 0.5509 Columns 599 through 611 0.6830 1.1706 0.4759 1.4122 0.0226 -0.0479 1.7013 -0.5097 -0.0029 0.9199 0.1498 1.4049 1.0341 Columns 612 through 624 0.2916 -0.7777 0.5667 -1.3826 0.2445 0.8084 0.2130 0.8797 2.0389 0.9239 0.2669 0.6417 0.4255 Columns 625 through 637 -1.3147 -0.4164 1.2247 -0.0436 0.5824 -1.0065 0.0645 0.6003 -1.3615 0.3476 - 0.1818 -0.9395 -0.0375 Columns 638 through 650 -1.8963 -2.1280 -1.1769 -0.9905 -1.1730 -1.7254 0.2882 -1.5942 0.1102 0.7871 -0.0022 0.0931 -0.3782 Columns 651 through 663 -1.4827 -0.0438 0.9608 1.7382 -0.4302 -1.6273 0.1663 0.3763 -0.2270 -1.1489 2.0243 -2.3595 -0.5100 Columns 664 through 676 -1.3216 -0.6361 0.3179 0.1380 -0.7107 0.7770 0.6224 0.6474 -0.4256 1.0486 0.6607 2.5088 1.0635 Columns 677 through 689 1.1569 0.0530 -1.2884 -0.3712 -0.7578 -0.5640 0.5551 -0.5568 -0.8951 -0.4093 -0.1609 0.4093 -0.9526 Columns 690 through 702 0.3173 0.0780 1.3244 -0.2132 -0.1345 -1.1714 -1.3853 0.3105 -0.2495 0.5037 - 0.8927 1.9085 0.1222 Columns 703 through 715 1.0470 -0.2269 -0.1625 0.6901 0.5558 -1.1203 -1.5327 -1.0979 -1.4158 0.0596 -0.4113 -0.3680 -1.3610 Columns 716 through 728 0.7796 0.4394 -0.0896 1.0212 -0.8740 0.4147 0.3484 0.3493 -0.7292 0.3268 - 0.5149 -0.8964 -1.2033
  • 6. Columns 729 through 741 1.0378 -0.8459 -0.1729 -1.2087 -0.2971 -3.2320 -1.0870 -1.4264 -1.0145 -0.2133 -0.3253 1.9444 -0.5718 Columns 742 through 754 -0.2500 -1.5693 -0.4774 -1.3380 0.0303 0.8531 0.4043 -0.7006 -1.6305 1.4600 2.0500 0.1205 -0.9899 Columns 755 through 767 1.1978 -0.5927 -0.4698 0.8864 -1.3852 -1.9568 0.4207 0.4007 0.0951 0.4967 1.0822 0.9704 -0.5686 Columns 768 through 780 0.8100 0.1732 -0.5055 -1.1933 0.6470 -0.3536 0.0464 -0.7929 -1.5505 0.1716 - 0.0621 1.1990 0.8017 Columns 781 through 793 1.0533 -0.7489 -0.9363 -1.2691 0.4980 2.7891 0.7276 -0.7731 0.8366 -1.1283 - 1.4245 0.7174 -0.7779 Columns 794 through 806 0.3160 1.4065 0.4011 0.9297 -1.6058 0.6615 2.1385 0.5411 -1.5409 -0.2031 - 0.5000 0.3830 0.4120 Columns 807 through 819 0.4055 -0.3638 -0.5993 -0.5896 0.8535 -1.8530 -0.2073 0.2704 -0.6528 0.4772 -0.0713 -0.9383 0.1614 Columns 820 through 832 -0.2682 -0.4099 -0.7113 0.0614 -1.8461 -0.3983 -0.5435 -0.9119 0.6527 -0.7343 0.5406 0.9758 -0.1569 Columns 833 through 845 0.2778 0.6395 -0.0810 0.5409 -1.2626 1.1104 -0.9896 -1.8288 1.3845 -0.0627 0.4489 -0.3633 -1.0206 Columns 846 through 858 -3.0730 0.6263 -0.2867 -0.1973 0.4056 -1.4193 -0.7294 1.1473 0.5979 -1.2813 -2.2033 -0.5712 0.2140 Columns 859 through 871 0.9424 0.0937 -1.1223 0.3062 -1.1723 -0.9610 -0.6537 -1.2294 -0.2710 -0.9000 -0.2857 -0.4624 -0.4098 Columns 872 through 884 -0.5035 1.2333 0.6103 0.0591 -1.4669 -1.6258 -1.9648 2.6052 0.9724 0.2570 - 0.9742 -1.1464 0.5476
  • 7. Columns 885 through 897 1.5651 -1.6933 -0.4494 -0.0843 -1.9920 0.8412 -0.4147 1.9122 -0.3909 0.4092 -1.1424 -0.6249 -1.1687 Columns 898 through 910 0.3926 1.3018 -0.5936 0.4364 -0.5044 0.1021 1.1963 0.1203 -1.0368 -0.8571 - 0.1699 -0.1917 -0.8658 Columns 911 through 923 0.1807 1.2665 -0.2512 -0.2046 -2.2015 -0.7745 -1.3933 -0.3862 0.5256 1.5233 1.7985 -0.1169 -0.3202 Columns 924 through 936 0.8175 0.4902 0.7653 0.7783 -1.4803 0.5404 -0.0915 -0.7603 -0.6936 1.2815 - 0.8097 -1.2368 0.2147 Columns 937 through 949 2.0108 0.0256 0.3083 -0.9382 1.6742 0.1250 0.5301 -0.9521 0.8540 0.3891 - 1.1560 0.0397 -0.4506 Columns 950 through 962 0.1092 -0.2506 -0.1899 -1.0329 -0.3233 0.7665 1.7447 -1.1605 2.3774 1.5261 0.1685 -0.3012 -0.6987 Columns 963 through 975 0.8328 -0.6946 -0.4619 0.8836 0.4359 0.8967 0.5047 -0.4009 -0.5138 0.7964 - 0.6712 1.1867 0.7907 Columns 976 through 988 0.2877 0.0032 0.3656 3.5267 -0.1124 -1.5566 1.9151 0.6098 -0.6479 2.6173 0.5510 0.2942 -0.7778 Columns 989 through 1000 -1.0649 -1.7684 -0.4229 -1.0531 0.6478 -0.3176 1.7690 1.5106 0.1640 -0.2828 1.1522 -1.1465 ============================ mean of row vector r: M = mean(r) M = -0.0326 =========== u = rand(1,1000,'single') u = Columns 1 through 13
  • 8. 0.9246 0.2238 0.3736 0.0875 0.6401 0.1806 0.0451 0.7232 0.3474 0.6606 0.3839 0.6273 0.0216 Columns 14 through 26 0.9106 0.8006 0.7458 0.8131 0.3833 0.6173 0.5755 0.5301 0.2751 0.2486 0.4516 0.2277 0.8044 Columns 27 through 39 0.9861 0.0300 0.5357 0.0871 0.8021 0.9891 0.0669 0.9394 0.0182 0.6838 0.7837 0.5341 0.8854 Columns 40 through 52 0.8990 0.6259 0.1379 0.2178 0.1821 0.0418 0.1069 0.6164 0.9397 0.3545 0.4106 0.9843 0.9456 Columns 53 through 65 0.6766 0.9883 0.7668 0.3367 0.6624 0.2442 0.2955 0.6802 0.5278 0.4116 0.6026 0.7505 0.5835 Columns 66 through 78 0.5518 0.5836 0.5118 0.0826 0.7196 0.9962 0.3545 0.9713 0.3464 0.8865 0.4547 0.4134 0.2177 Columns 79 through 91 0.1257 0.3089 0.7261 0.7829 0.6938 0.0098 0.8432 0.9223 0.7710 0.0427 0.3782 0.7043 0.7295 Columns 92 through 104 0.2243 0.2691 0.6730 0.4775 0.6237 0.2364 0.1771 0.8296 0.7669 0.9345 0.1079 0.1822 0.0991 Columns 105 through 117 0.4898 0.1932 0.8959 0.0991 0.0442 0.5573 0.7725 0.3119 0.1790 0.3390 0.2101 0.5102 0.9064 Columns 118 through 130 0.6289 0.1015 0.3909 0.0546 0.5013 0.4317 0.9976 0.8116 0.4857 0.8944 0.1375 0.3900 0.9274 Columns 131 through 143 0.9175 0.7136 0.6183 0.3433 0.9360 0.1248 0.7306 0.6465 0.8332 0.3983 0.7498 0.8352 0.3225 Columns 144 through 156 0.5523 0.9791 0.5493 0.3304 0.6195 0.3606 0.7565 0.4139 0.4923 0.6947 0.9727 0.3278 0.8378 Columns 157 through 169
  • 9. 0.7391 0.9542 0.0319 0.3569 0.6627 0.2815 0.2304 0.7111 0.6246 0.5906 0.6604 0.0476 0.3488 Columns 170 through 182 0.4513 0.2409 0.7150 0.8562 0.2815 0.7311 0.1378 0.8367 0.1386 0.5882 0.3662 0.8068 0.5038 Columns 183 through 195 0.4896 0.8770 0.3531 0.4494 0.9635 0.0423 0.9730 0.1892 0.6671 0.5864 0.6751 0.3610 0.6203 Columns 196 through 208 0.8112 0.0193 0.0839 0.9748 0.6513 0.2312 0.4035 0.1220 0.2684 0.2578 0.3317 0.1522 0.3480 Columns 209 through 221 0.1217 0.8842 0.0943 0.9300 0.3990 0.0474 0.3424 0.7360 0.7947 0.5449 0.6862 0.8936 0.0548 Columns 222 through 234 0.3037 0.0462 0.1955 0.7202 0.7218 0.8778 0.5824 0.0707 0.9227 0.8004 0.2859 0.5437 0.9848 Columns 235 through 247 0.7157 0.8390 0.4333 0.4706 0.5607 0.2691 0.7490 0.5039 0.6468 0.3077 0.1387 0.4756 0.3625 Columns 248 through 260 0.7881 0.7803 0.6685 0.1335 0.0216 0.5598 0.3008 0.9394 0.9809 0.2866 0.8008 0.8961 0.5975 Columns 261 through 273 0.8840 0.9437 0.5492 0.7284 0.5768 0.0259 0.4465 0.6463 0.5212 0.3723 0.9371 0.8295 0.8491 Columns 274 through 286 0.3725 0.5932 0.8726 0.9335 0.6685 0.2068 0.6539 0.0721 0.4067 0.6669 0.9337 0.8110 0.4845 Columns 287 through 299 0.7567 0.4170 0.9718 0.9880 0.8641 0.3889 0.4547 0.2467 0.7844 0.8828 0.9137 0.5583 0.5989 Columns 300 through 312 0.1489 0.8997 0.4504 0.2057 0.8997 0.7626 0.8825 0.2850 0.6732 0.6643 0.1228 0.4073 0.2753 Columns 313 through 325
  • 10. 0.7167 0.2834 0.8962 0.8266 0.3900 0.4979 0.6948 0.8344 0.6096 0.5747 0.3260 0.4564 0.7138 Columns 326 through 338 0.8844 0.7209 0.0186 0.6748 0.4385 0.4378 0.1170 0.8147 0.3249 0.2462 0.3427 0.3757 0.5466 Columns 339 through 351 0.5619 0.3958 0.3981 0.5154 0.6575 0.9509 0.7223 0.4001 0.8319 0.1343 0.0605 0.0842 0.1639 Columns 352 through 364 0.3242 0.3017 0.0117 0.5399 0.0954 0.1465 0.6311 0.8593 0.9742 0.5708 0.9969 0.5535 0.5155 Columns 365 through 377 0.3307 0.4300 0.4918 0.0710 0.8877 0.0646 0.4362 0.8266 0.3945 0.6135 0.8186 0.8862 0.9311 Columns 378 through 390 0.1908 0.2586 0.8979 0.5934 0.5038 0.6128 0.8194 0.5319 0.2021 0.4539 0.4279 0.9661 0.6201 Columns 391 through 403 0.6954 0.7202 0.3469 0.5170 0.5567 0.1565 0.5621 0.6948 0.4265 0.8363 0.7314 0.3600 0.4542 Columns 404 through 416 0.3864 0.7756 0.7343 0.4303 0.6938 0.9452 0.7842 0.7056 0.1093 0.3899 0.5909 0.4594 0.0503 Columns 417 through 429 0.2287 0.8342 0.0156 0.8637 0.0781 0.6690 0.5002 0.2180 0.5716 0.1222 0.6712 0.5996 0.0560 Columns 430 through 442 0.0563 0.1525 0.0196 0.4352 0.8322 0.6174 0.5201 0.8639 0.0977 0.9081 0.1080 0.5170 0.1432 Columns 443 through 455 0.5594 0.0046 0.7667 0.8487 0.9168 0.9870 0.5051 0.2714 0.1008 0.5078 0.5856 0.7629 0.0830 Columns 456 through 468 0.6616 0.5170 0.1710 0.9386 0.5905 0.4406 0.9419 0.6559 0.4519 0.8397 0.5326 0.5539 0.6801 Columns 469 through 481
  • 11. 0.3672 0.2393 0.5789 0.8669 0.4068 0.1126 0.4438 0.3002 0.4014 0.8334 0.4036 0.3902 0.3604 Columns 482 through 494 0.1403 0.2601 0.0868 0.4294 0.2573 0.2976 0.4249 0.1192 0.4951 0.7064 0.2436 0.7851 0.0741 Columns 495 through 507 0.3939 0.0034 0.2207 0.0013 0.1892 0.1425 0.2681 0.1749 0.1386 0.5989 0.9011 0.9394 0.2212 Columns 508 through 520 0.4827 0.3760 0.5238 0.2649 0.0684 0.4363 0.1739 0.0261 0.9547 0.4306 0.9616 0.7624 0.0073 Columns 521 through 533 0.6800 0.7060 0.6451 0.5523 0.2181 0.7724 0.2280 0.3709 0.8909 0.8564 0.4024 0.3180 0.6086 Columns 534 through 546 0.9102 0.9091 0.5916 0.3326 0.8531 0.4424 0.9044 0.0332 0.5324 0.7165 0.1793 0.3365 0.1877 Columns 547 through 559 0.3219 0.4039 0.5486 0.0487 0.5527 0.2748 0.2415 0.2431 0.1542 0.9564 0.9357 0.8187 0.7283 Columns 560 through 572 0.1758 0.3604 0.1888 0.0012 0.3164 0.6996 0.6253 0.5431 0.4390 0.2874 0.5017 0.7615 0.7624 Columns 573 through 585 0.5761 0.7477 0.6455 0.1232 0.5044 0.3473 0.0921 0.1478 0.1982 0.6723 0.4315 0.6944 0.2568 Columns 586 through 598 0.0098 0.5323 0.2794 0.9462 0.9064 0.3927 0.0249 0.6714 0.8372 0.9715 0.0569 0.4503 0.5825 Columns 599 through 611 0.6866 0.7194 0.6500 0.7269 0.3738 0.5816 0.1161 0.0577 0.9798 0.2848 0.5950 0.9622 0.1858 Columns 612 through 624 0.1930 0.3416 0.9329 0.3907 0.2732 0.1519 0.3971 0.3747 0.1311 0.4350 0.0915 0.6146 0.0110 Columns 625 through 637
  • 12. 0.5733 0.7897 0.2354 0.4480 0.5694 0.0614 0.4963 0.6423 0.2213 0.8371 0.9711 0.8464 0.5060 Columns 638 through 650 0.2789 0.7466 0.2369 0.9573 0.6203 0.6003 0.1726 0.0903 0.2553 0.8586 0.9111 0.6996 0.7252 Columns 651 through 663 0.2299 0.5761 0.8106 0.4038 0.9884 0.0900 0.3209 0.5114 0.0606 0.7257 0.5566 0.5294 0.8300 Columns 664 through 676 0.8588 0.7890 0.3178 0.4522 0.7522 0.1099 0.1097 0.2699 0.5246 0.9727 0.7104 0.3119 0.2915 Columns 677 through 689 0.8504 0.9116 0.6393 0.2554 0.0887 0.8383 0.5847 0.9481 0.0610 0.5846 0.2851 0.8277 0.1910 Columns 690 through 702 0.4425 0.3934 0.8266 0.6769 0.2076 0.3181 0.1338 0.6715 0.5710 0.1698 0.1477 0.4761 0.9081 Columns 703 through 715 0.5522 0.0329 0.0539 0.8051 0.4514 0.3826 0.7896 0.3643 0.5323 0.7117 0.8715 0.3287 0.6501 Columns 716 through 728 0.9748 0.0760 0.5870 0.4139 0.3091 0.2638 0.7588 0.9952 0.1866 0.7811 0.1958 0.9924 0.8023 Columns 729 through 741 0.4242 0.7289 0.4984 0.8090 0.3565 0.0732 0.5910 0.9102 0.1938 0.4324 0.7492 0.0392 0.9463 Columns 742 through 754 0.7637 0.5588 0.1838 0.4979 0.5178 0.9942 0.8549 0.9624 0.6789 0.4035 0.9350 0.4795 0.2318 Columns 755 through 767 0.3963 0.7051 0.5586 0.7566 0.9955 0.9624 0.5351 0.9639 0.1156 0.0514 0.3043 0.5802 0.5310 Columns 768 through 780 0.9012 0.5406 0.4320 0.5427 0.7124 0.0167 0.8009 0.1425 0.4785 0.2568 0.3691 0.6618 0.1696 Columns 781 through 793
  • 13. 0.2788 0.1982 0.1951 0.3268 0.8803 0.4711 0.4040 0.1792 0.9689 0.4075 0.8445 0.6153 0.3766 Columns 794 through 806 0.8772 0.7849 0.4650 0.8140 0.8984 0.4292 0.3343 0.5966 0.9020 0.7021 0.3775 0.7350 0.9541 Columns 807 through 819 0.5428 0.5401 0.3111 0.0712 0.1820 0.0930 0.4635 0.0093 0.9150 0.6427 0.0014 0.0304 0.2085 Columns 820 through 832 0.4550 0.1273 0.0086 0.7271 0.3541 0.7804 0.4367 0.4366 0.0492 0.0496 0.0911 0.5940 0.2411 Columns 833 through 845 0.8414 0.8572 0.9636 0.4889 0.2203 0.2262 0.5368 0.7621 0.3476 0.4612 0.6393 0.9173 0.1616 Columns 846 through 858 0.7156 0.5777 0.4333 0.8842 0.3931 0.1790 0.6333 0.6240 0.3279 0.8030 0.9995 0.9810 0.1270 Columns 859 through 871 0.2322 0.0236 0.6074 0.1108 0.4075 0.8841 0.5481 0.3690 0.2083 0.4409 0.9562 0.1240 0.4708 Columns 872 through 884 0.8569 0.0434 0.6916 0.9790 0.2833 0.1338 0.6853 0.9095 0.6109 0.9000 0.1934 0.7544 0.3463 Columns 885 through 897 0.4186 0.1557 0.8190 0.6249 0.7386 0.8051 0.0672 0.9508 0.4976 0.7551 0.7424 0.8311 0.1565 Columns 898 through 910 0.4573 0.6181 0.9322 0.8351 0.8954 0.5825 0.5827 0.8549 0.0349 0.8854 0.4077 0.0364 0.7461 Columns 911 through 923 0.1548 0.1439 0.6060 0.2545 0.3242 0.4018 0.4064 0.3862 0.6098 0.1669 0.1881 0.0946 0.3232 Columns 924 through 936 0.7696 0.2341 0.7404 0.6928 0.8241 0.8280 0.2934 0.3094 0.5230 0.3253 0.8318 0.8103 0.5570 Columns 937 through 949
  • 14. 0.2630 0.6806 0.2337 0.4564 0.3846 0.5386 0.9917 0.7552 0.9805 0.2348 0.5286 0.0514 0.7569 Columns 950 through 962 0.6020 0.8572 0.9883 0.9295 0.4095 0.0003 0.5409 0.2077 0.2193 0.3258 0.0959 0.7475 0.7485 Columns 963 through 975 0.5433 0.3381 0.8323 0.5526 0.9575 0.8928 0.3565 0.5464 0.3467 0.6228 0.7966 0.7459 0.1255 Columns 976 through 988 0.8224 0.0252 0.4144 0.7314 0.7814 0.3673 0.7449 0.8923 0.2426 0.1296 0.2251 0.3500 0.2871 Columns 989 through 1000 0.9275 0.0513 0.5927 0.1629 0.8384 0.1676 0.5022 0.9993 0.3554 0.0471 0.2137 0.3978 ============ mean of u: M_u = mean(u) M_u = 0.5089 =========================== standard deviation of both r and u S_r = std(r) S_r = 0.9990 >> S_u = std(u) S_u = 0.2860 ==== form a new random vector; Y= (U-E[x])/std(U) for i=1:1000 Y(i)=(u(i)-M_u)/S_u; end >> M_Y=mean(Y) M_Y = 6.3282e-07
  • 15. >> S_Y = std(Y) S_Y = 1.0000