ENGRMAE 10 Lecture Notes - Lecture 2: Radian, Matlab, Row And Column Vectors

64 views3 pages

Document Summary

% scalar a number x = 50 % 50 is assigned to x. % = means assign x = x - 25 % re-assign with current x (50) - 25. % must start with a letter, < 63 characters, letters, digits, underscore, % case sensitive use variable names that make sense (e. g. , vel1 == % watch out for keywords or pre-defined variable iskeyword. % break = 1 % error a = 12. % c = (a-b) + 40 - a/b*10 error c = (a-b) + 40 - a/b*10. % semicolon will supress output in command window. B=4; c = (a-b) + 40 - a/b*10; c a = 12, b = 4 ; c = (a-b) + 40 - a/b*10. % clear variable clear % clear all clear x % clear x. %% built-in variables and functions pi % better not to re-assign. % built in function sin(90) % oopsie use radian.

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