|
直接写,就可以啊- >> a = rand(3,4,5)
- a(:,:,1) =
- 0.8147 0.9134 0.2785 0.9649
- 0.9058 0.6324 0.5469 0.1576
- 0.1270 0.0975 0.9575 0.9706
- a(:,:,2) =
- 0.9572 0.1419 0.7922 0.0357
- 0.4854 0.4218 0.9595 0.8491
- 0.8003 0.9157 0.6557 0.9340
- a(:,:,3) =
- 0.6787 0.3922 0.7060 0.0462
- 0.7577 0.6555 0.0318 0.0971
- 0.7431 0.1712 0.2769 0.8235
- a(:,:,4) =
- 0.6948 0.0344 0.7655 0.4898
- 0.3171 0.4387 0.7952 0.4456
- 0.9502 0.3816 0.1869 0.6463
- a(:,:,5) =
- 0.7094 0.6797 0.1190 0.3404
- 0.7547 0.6551 0.4984 0.5853
- 0.2760 0.1626 0.9597 0.2238
- >> b(4,5) = a(1,4,5)
- b =
- 0 0 0 0 0
- 0 0 0 0 0
- 0 0 0 0 0
- 0 0 0 0 0.3404
复制代码 更多功能,请参考函数 |
评分
-
1
查看全部评分
-
|