column into row
4 ビュー (過去 30 日間)
古いコメントを表示
hi just a simple question here, so i got this code:
X=linspace(1,10,10);
Y=linspace(1,10,10);
[xx,yy]=meshgrid(X,Y);
as a result x and y 10 by 10 matrix. how should i do if i want to convert xx and yy to 100 by 1 matrix,so for example second row of xx occupied 1st row 11th to 20th column of xx, 3rd row occupied 1st row 21th to 30 th column, etc
thanks for the help! appreciate much!
0 件のコメント
採用された回答
その他の回答 (1 件)
Matt Tearle
2011 年 4 月 17 日
xcol = xx(:);
Although, if you want to go by rows, transpose xx first.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!