initialize a multidimensional matrix
1 回表示 (過去 30 日間)
古いコメントを表示
Given two numbers: M, N, how to create a matrix: res = MxMxMxMxM...xM, where ndims(res) == N.
0 件のコメント
採用された回答
Azzi Abdelmalek
2014 年 2 月 19 日
編集済み: Azzi Abdelmalek
2014 年 2 月 19 日
N=6;
m=4;
A=zeros(repmat(m,1,n));
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!