How do I reshape a dataset?

回答(2 个)

Thomas
Thomas 2014-2-14
编辑:Thomas 2014-2-14
a= rand (2,4)
size(a)
b=a'
size(b)
Is this what you are looking for ?
or
b= reshape(a,4,[]);
in your case
reshape(a,35,[])
if a is 288x35
Wayne King
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 个评论

by dataset I mean an uploaded xcel spread sheet
If you are talking about numerical data of size 288x35, then assume the data are called data
data = data';
I tried that it says there are too many output argument errors, I assume this is an issue because there are some strings mixed with some numbers?

请先登录,再进行评论。

标签

提问:

2014-2-14

评论:

2014-2-14

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by