Vectors as Arrays and Other Data Structures
Abstract
The objectives of this chapter are to enable you to solve problems which involve working carefully with array subscripts and to introduce you to structures, cells and cell arrays. In MATLAB an array is just another name for a vector or a matrix. However, it is helpful to talk about arrays when we are concerned with handling individual elements by means of their subscripts, rather than with the vectors or matrices as a whole. Thus, in the first part of this chapter we examine a number of problems which are best solved by treating tabular data as arrays. In the second part of this chapter we deal with other, more advanced, data structures.
Keywords
Arrays (scalars, vectors ...
Get Essential MATLAB for Engineers and Scientists, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.