AME 150L Lecture Notes - Lecture 2: Row And Column Vectors, Strong And Weak Typing

26 views1 pages

Document Summary

Ame 150: introduction to computational methods - lecture 2: variables/arrays. Types: double: 64-bit double-precision floating point number (are values, not characters) ex. var=10. 5; Range: +/- 10 308:1 0308 character (char): scalars and arrays consisting of 16-bit values ex. var="this is a character string". Matlab is a weakly typed language where the type of the data assigned to the variable determines the type of variable. Initializing variables using the assignment statement: var = expression name of memory space; assignment statement; content you want placed in that space. Predetermined arrays: a=zeros(#): creates a square array (unless otherwise specified) of zeros ex. zeros(2) 0 0.

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