필터 지우기
필터 지우기

Query about data types and whos

조회 수: 3 (최근 30일)
jnaumann
jnaumann 2015년 1월 13일
댓글: jnaumann 2015년 1월 13일
Hi,
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
joining_point_2011=reshape(median_jp_per_hour_2011,1,[]);
flights_2013=reshape(flights_prpdph_2013,1,[]);
joining_point_2013=reshape(median_jp_per_hour_2013,1,[]);
Name Size Bytes Class Attributes
flights_2011 1x35040 280320 double
ans =
1 12

채택된 답변

Iain
Iain 2015년 1월 13일
편집: Iain 2015년 1월 13일
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
jnaumann 2015년 1월 13일
Ah - of course! Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Guidance, Navigation, and Control (GNC)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by