When would you use length vs. size for a vector?
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:2| Question number:16.2
All Answers
total answers (1)
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:2| Question number:16.2
total answers (1)
If you want to know the number of elements, you’d use length. If you want to figure out whether it’s a row or column vector, you’d use size.
need an explanation for this answer? contact us directly to get an explanation for this answer