CIVE121 Lecture Notes - Lecture 3: Row And Column Vectors, Matlab, Square Matrix
Document Summary
72 89 86 87 55 command window: 2014 55 72. Gordon arrays whose elements are cells; containers that hold data structures instead of data; used to store character data when read from text files; allow us to group any type of matlab data into a single container. {} around data to be stored in the cell where = what. Tas = helena" allison" list = {name1;name2;name3;name4} for vertical list = {name1,name3,name3} for horizontal city = { waterloo";"toronto":"ottawa":"sudbury }; cell = city(3) retrieving cell cell = ottawa" data = city{3} retrieving contents of cell data = ottawa. String" in command window indicates a cell writing array name echoes data type info to command window e. g. {3x1 cell} typing name of cell shows data type in command window. Cell arrays and fprint: you must specify cell of array e. g. tas{1} You can only multiply a square matrix by a square matrix (square a square matrix)