필터 지우기
필터 지우기

Why the dimension is crossed

조회 수: 1 (최근 30일)
Joseph Stalin
Joseph Stalin 2015년 5월 15일
댓글: Image Analyst 2015년 5월 15일
Hi Users, In this below statement xls_read() says it is a 25x2 double (associated with a xls sheet) But when I copy it to the Temp_1 var, it says 1x25 double..
Temp_1(z) = Xls_read(z,1); I dont understand why the dimension is crossed. Could anybody answer this please?
regards, Joseph

답변 (1개)

Star Strider
Star Strider 2015년 5월 15일
You only asked it to copy the first column of ‘Xls_read’ to ‘Temp_1’. It’s just doing what you told it to do.
  댓글 수: 1
Image Analyst
Image Analyst 2015년 5월 15일
If z was [1:size( Xls_read, 1)] it will copy the entire first column. Otherwise it will take only those rows specified by z in column 1. Either way, the result is a column vector, not a row vector so the dimensions are not "crossed".

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

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by