matrix calculation for matrix
4 ビュー (過去 30 日間)
古いコメントを表示
hi everyone,
i need urgent help for my code,
i have A=400x5 matrix, and B=0x5 matrix, i want to take the 10th rows(10 20 30 40 50 60) of the A matrix and equal them to the B matrix
for example , B(5,:)=A(50,:) and B(6,:)=A(60,:) goes like this.
please need help.
0 件のコメント
採用された回答
その他の回答 (1 件)
John D'Errico
2021 年 5 月 10 日
編集済み: John D'Errico
2021 年 5 月 10 日
Simple. One line. No for loop. Nothing hard.
B = A(10:10:end,:);
3 件のコメント
参考
カテゴリ
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!