row of a random size matrix
3 ビュー (過去 30 日間)
古いコメントを表示
hi,
i wanted to know how to seperate each row of a randomly sized (m,n) matrix
0 件のコメント
回答 (2 件)
Shayan Sepahvand
2021 年 9 月 22 日
Use this code:
[m, n] = size(X);% X is that random matrix
row_mat = zeros(m, 1);
for i = 1:m
row_mat = X(i,:);
end
row_mat is the seperated row
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!