Oct 8, 2015

Lecture 12

This is an engineering class and not a programming class, so we are now going over data types 6 weeks in. The picture below is from the lecture notes. It shows the various data types MATLAB matrices can store.

realmax() and real(min) gives the maximum and minimum value a double precision floating point, which is the default number data type in MATLAB, can hold. 
Using single() and double() to convert numbers to single and double data types respectively. 
Practice exercises:
Not shown in screenshots, but we went over sparse arrays, cell arrays, and structure arrays. Very cool. I had previously used cell arrays when I used dialog boxes to ask for user input. I have only used structs one time to implement doubly linked lists in C++.