ENG EK 127 Chapter Notes - Chapter 8: Isfield, Delimiter

48 views3 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents