ENG EK 127 Chapter Notes - Chapter 8: Isfield, Delimiter
Document Summary
Cell array: structure that stores values of different types ; vectors or matrices. Values within array are known as elements. The general form of an array is. Made similarly to matrix, only using { } instead of [ ] Array = {23, a", 1:2:9, hello"} array = [23] a" [1x5 double] hello". Empty arrays can be made through cell(x,y) Array{x,y}: refers to element at that index. Var = array(index): will create a var variable with type cell. If a vector is located within an array, you can access elements within the vector using array{vecindex}(vec element) Array{2:3}: returns separate cell arrays containing each value. Array(2:3): returns new cell array containing both those values. Cellplot: shows graphical representation of the array. To delete an element simply use array(index) = [] Arrays, unlike matrices, are able to store strings of different lengths. When using an array, extra spaces are not added, so strings maintain their original lengths.