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!