Printing of 1000 matrix .
1 回表示 (過去 30 日間)
古いコメントを表示
Deepesh Kumar Gupta
2021 年 9 月 18 日
コメント済み: Deepesh Kumar Gupta
2021 年 9 月 25 日
How can i print 1000 matrix of (12, 1) from (1000, 12) matrix and gives to name of each 1000 matrix.
1 件のコメント
Image Analyst
2021 年 9 月 18 日
I have no idea what this means. Perhaps take another shot at phrasing it. Are you saying you have 1000 matrices, all with different names, like m1, m2, m3, ..... up to m1000? And each one is either a 12 row column vector or a 1000 row-by-12 column matrix?
Also, print where? To the command window? Directly to the paper printer?
採用された回答
Walter Roberson
2021 年 9 月 18 日
Note that in the below, Row1, Row2, and so on are only for display purposes. The code does not create matrices by those names.
YourMatrix = randi(9, 10, 4);
for K = 1 : size(YourMatrix,1)
fprintf('\nRow%d = \n', K);
disp(reshape(YourMatrix(K,:), [], 1));
end
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!