CS 1371 Lecture Notes - Lecture 1: Matlab, C String Handling, Concatenation
Document Summary
Classes of variables doubles are numbers that math can be done to. Not limited to a whole or integer, matlab can store numbers with a lot of precision. type1 = class(5); => type1 = double logicals are trues or falses. In the matlab command window they are printed out as 1 (true) or 0(false). Do not mistake this for numbers. logicals and numbers are different classes. Write true when you mean true, do not write a 1 for true. type2 = class(true); Any form of text enclosed by single quotes (" ") are classified as type char. Be careful, when printed to the command window, you will not see the single quotes around the string. Each letter corresponds to an ascii value (do not memorize them. ) type3 = class("hi friend"); => var2 = false can be created through direct creation you will see 1 and 0 in your command window var3 = isequal("hi", "hi");