Difference of size and length in Matlab

Status
Not open for further replies.

Antonio_Magma

Full Member level 2
Joined
Jun 21, 2005
Messages
136
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Activity points
2,777
What is the difference between size and length in Matlab? I've checked the help but i dont understand..
 

Size returns the dimensions. Length returns the largest dimension. This is what I understand from the HELP documentation. Seems quite clear.
 

Yes this i understand. But size returns dimensions...what dimensions?

Does it mean if i am using a vector i should use size and when using arrays i should use length?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…