CS 1371 Lecture Notes - Lecture 1: Matlab, C String Handling, Concatenation

59 views5 pages

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");

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