CS 1371 Lecture Notes - Lecture 13: C String Handling, Matlab
Document Summary
We"ve learned about the different types (char, double, logical) so far; however, we haven"t yet figured out a way of storing different data types. You can think of cell arrays like little black boxes. You can stack a bunch of the boxes together and they stack just fine because it doesn"t matter what"s in them. In a cell array, each individual element is called a cell and it can hold virtually anything, including but not limited to strings, doubles, logicals, any kind of vector, and even other cells. I could have a cell array where my first element is a string, the second is a double, and the third is a logical vector. You concatenate them using [ ] and delete them the same way. You can also index them just like you would with vectors, both logically and numerically.