ENGRMAE 10 Lecture Notes - Lecture 3: Scalar Multiplication

17 views3 pages

Document Summary

% assignment operator x = 12 % 12 is assigned to the variable x x = x * 12 % the r. h. s. (x*12) is assigned to the variable recursive. % errror: mat = [e cd*h cos(pi/3); h^2, sqrt(cd*h*2*e), 14] % error: mat = [e cd*h cos(pi/3); h^2, sqrt(cd*h*2*e)] Mat = [e cd*h cos(pi/3); h^2, sqrt(cd*h*2*e), 14] transpose(mat) % string is an array of characters name = "prof. % error: names = ["jim"; "paul"; "sally"] they are not the same length names = char("jim", "paul", "sally") % error: m5 = identity(5) no such function. % read the error messages, they usually tell you all you need to know about. % input ask = input("give me the number") ask = input("give me the number ") ask2 = input("give me the name (use apostrophes)" ) ask3 = input("give the name", "s") % expects a string input. %disp("your score was ", num2str(score)) % error need to convert to string.

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