Effacer les filtres
Effacer les filtres

Why the dimension is crossed

1 vue (au cours des 30 derniers jours)
Joseph Stalin
Joseph Stalin le 15 Mai 2015
Commenté : Image Analyst le 15 Mai 2015
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

Réponses (1)

Star Strider
Star Strider le 15 Mai 2015
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 commentaire
Image Analyst
Image Analyst le 15 Mai 2015
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".

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by