Sep 1, 2005 #1 A 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..
What is the difference between size and length in Matlab? I've checked the help but i dont understand..
Sep 1, 2005 #2 checkmate Advanced Member level 3 Joined Feb 25, 2004 Messages 832 Helped 178 Reputation 356 Reaction score 125 Trophy points 1,323 Location Toilet Seat Activity points 7,811 Size returns the dimensions. Length returns the largest dimension. This is what I understand from the HELP documentation. Seems quite clear.
Size returns the dimensions. Length returns the largest dimension. This is what I understand from the HELP documentation. Seems quite clear.
Sep 1, 2005 #3 A 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 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?
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?
Sep 1, 2005 #4 checkmate Advanced Member level 3 Joined Feb 25, 2004 Messages 832 Helped 178 Reputation 356 Reaction score 125 Trophy points 1,323 Location Toilet Seat Activity points 7,811 A=[1 2; 3 4; 5 6] size(A) = [3 2] length(A) = max(size(A)) = 3.
Sep 1, 2005 #5 A 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 clear...thx checkmate...