MATLAB Answers

Query about data types and whos

조회 수: 2(최근 30일)
jnaumann 13 Jan 2015
댓글: jnaumann 13 Jan 2015
I have a variable flights_2011 and when I run the command whos it says it is a double array of size 1x35040 however the size command gives it as 1x12. I am also having trouble writing to xls which I imagine is related. Any ideas?
whos flights_2011 size flights_2011
Name Size Bytes Class Attributes
flights_2011 1x35040 280320 double
ans =
1 12

  댓글 수: 0

Sign in to comment.

채택된 답변

Iain 13 Jan 2015
편집: Iain 13 Jan 2015
Size is working properly. It is telling you that there are TWELVE characters in the string 'flights_2011'.
size(flights_2011) will return [1 35040]
35040 is the number of columns. Excel has 16384 IIRC, and it therefore won't accept 35040 columns of data.
If you simply transpose flights_2011, it'll fill 35040 of excel 95's 65536 rows

  댓글 수: 1

jnaumann 13 Jan 2015
Ah - of course! Thanks

Sign in to comment.

추가 답변(0개)


Translated by