CS 1371 Lecture Notes - Lecture 2: Matlab, C String Handling

56 views4 pages

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. We"ll go over these things in a little detail in the sections that follow.

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