a{20,20}(3,1) ??
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
Can I create a zero matrix of 20x20 of which element is a column vector of length 3? I was looking for something like a{20,20}(3,1) but it does not seems to be working! :( too bad!
Thanks in advance
0 件のコメント
回答 (1 件)
TAB
2012 年 2 月 18 日
Elem = zeros(3,1);
ValueCell = cell(20,20);
ValCell=cellfun(@(x)(Elem),ValCell,'UniformOutput', false)
:-)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!