How do I reshape a dataset?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a 288x35 dataset, how do I make it into 35x288?
0 件のコメント
回答 (2 件)
Wayne King
2014 年 2 月 14 日
編集済み: Wayne King
2014 年 2 月 14 日
When you say dataset, do you just mean a matrix?
X = randn(288,35);
Y = X.';
If the elements are all real-valued, just
Y = X';
or do you mean the transpose of a MATLAB dataset?
3 件のコメント
Wayne King
2014 年 2 月 14 日
If you are talking about numerical data of size 288x35, then assume the data are called data
data = data';
参考
カテゴリ
Help Center および File Exchange で Cell Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!