利用基本矩阵产生3x3和15x8的单位阵,全1阵,全0阵,均匀分布的随机阵([-1,1]之间),正态分布随机阵(方差4,均值1)
题解:
a1=eye(3)
a2=eye(15,8)
b1=ones(3)
b2=ones(15,8)
c1=zeros(3)
c2=zeros(15,8)
d1=rand(3)
d2=rand(15,8)
e1=2*randn(3)+1
e2=2*randn(15,8)+1
输出: 文章来源:https://www.toymoban.com/news/detail-780445.html
a1 =
1 0 0
0 1 0
0 0 1
a2 =
1 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 1 0 0 0 0 0
0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0
0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 1
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 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 0 0 0 0 0 0
b1 =
1 1 1
1 1 1
1 1 1
b2 =
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
c1 =
0 0 0
0 0 0
0 0 0
c2 =
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 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 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 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 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
d1 =
0.1403 0.4294 0.4249
0.2601 0.2573 0.1192
0.0868 0.2976 0.4951
d2 =
0.7064 0.9394 0.6800 0.5916 0.5527 0.6253 0.1982 0.0569
0.2436 0.2212 0.7060 0.3326 0.2748 0.5431 0.6723 0.4503
0.7851 0.4827 0.6451 0.8531 0.2415 0.4390 0.4315 0.5825
0.0741 0.3760 0.5523 0.4424 0.2431 0.2874 0.6944 0.6866
0.3939 0.5238 0.2181 0.9044 0.1542 0.5017 0.2568 0.7194
0.0034 0.2649 0.7724 0.0332 0.9564 0.7615 0.0098 0.6500
0.2207 0.0684 0.2280 0.5324 0.9357 0.7624 0.5323 0.7269
0.0013 0.4363 0.3709 0.7165 0.8187 0.5761 0.2794 0.3738
0.1892 0.1739 0.8909 0.1793 0.7283 0.7477 0.9462 0.5816
0.1425 0.0261 0.8564 0.3365 0.1758 0.6455 0.9064 0.1161
0.2681 0.9547 0.4024 0.1877 0.3604 0.1232 0.3927 0.0577
0.1749 0.4306 0.3180 0.3219 0.1888 0.5044 0.0249 0.9798
0.1386 0.9616 0.6086 0.4039 0.0012 0.3473 0.6714 0.2848
0.5989 0.7624 0.9102 0.5486 0.3164 0.0921 0.8372 0.5950
0.9011 0.0073 0.9091 0.0487 0.6996 0.1478 0.9715 0.9622
e1 =
-0.7778 1.8821 -2.1459
-0.9186 0.5905 0.2595
0.0146 -0.9556 0.5577
e2 =
-0.0704 3.1891 1.6195 2.6044 0.0423 -0.2654 -0.5929 2.0819
0.4761 1.6424 -0.0840 0.0624 -1.8253 -1.0914 1.2709 -0.1181
-1.1908 1.0302 1.2446 0.9068 2.9500 2.0114 1.8356 4.9531
2.0985 -1.3290 2.9246 1.7069 1.5794 1.6639 2.6398 2.0893
-3.3492 1.9897 0.4921 -1.5136 3.3308 -2.2708 -0.7087 0.7242
1.2892 -1.4317 4.7835 -1.0721 -0.8174 -2.8137 1.7146 2.2398
2.3381 4.1816 -1.4405 0.1461 1.4812 0.9192 6.4969 0.9888
-0.6977 2.0530 0.2475 1.1553 -0.3081 2.3944 -2.0260 3.2144
0.8858 1.5296 1.1049 4.5819 3.5499 1.3376 1.8680 0.6288
1.5836 0.2128 -2.9079 2.5945 -0.1024 -2.0876 0.5405 -1.2428
-0.2292 -3.3526 2.1308 0.1150 0.8252 -2.1036 -0.6542 1.4929
0.9727 -1.3913 1.1556 -0.2582 0.3044 2.7342 -0.6640 4.1221
1.8242 1.7307 1.1614 4.0676 2.9879 0.7093 1.9958 -1.3932
-0.8743 5.8249 2.5894 6.4671 1.8569 0.2275 5.6313 0.5153
2.6703 2.4805 3.0874 1.3349 -1.0084 3.6324 -0.5877 3.0097文章来源地址https://www.toymoban.com/news/detail-780445.html
到了这里,关于#MATLAB 利用基本矩阵产生3x3和15x8的单位阵,全1阵,全0阵,均匀分布的随机阵([-1,1]之间),正态分布随机阵(方差4,均值1)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!