Why does length sometimes read the number of columns instead of the number of rows?
Ältere Kommentare anzeigen
Hello, I`m looping over the length of a table (converted to array to be 'double'). However, sometimes the length reads the rows and when run again sometimes it reads columns! Why is this happening? Thanks
Akzeptierte Antwort
Weitere Antworten (2)
Jan
am 10 Aug. 2017
Whenever you have a question concerning a command, start at the documentation:
doc length
There you find these 2 initial lines:
length
Length of largest array dimension
Sounds clear :-)
Yasmin Samy
am 10 Aug. 2017
0 Stimmen
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!