












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An introduction to using matlab for defining variables, performing calculations, and working with matrices. Topics covered include default window configuration, naming rules, scalar and vector assignments, simple data plots, and calculating with matlab. It also includes a practice exercise for testing allowed variable names.
Typology: Assignments
1 / 20
This page cannot be seen from the preview
Don't miss anything!
Ā© 2008-2009 Prentice Hall, Paul Schimpf All rights reservedAll rights reserved.
No portion of this presentation may be reproduced, in whole or in part, in any form whatsoever, without the express permission of the author. Students enrolled in this class are hereby granted permission to reproduce this presentation for personal use only.
Scalar
Row Vector
Column Vector
Note:
"=" means "gets" or Column Vector "is assigned"
Matrix
g
a=1+
x=y+
x
x
Thisisoneverylongnamebutisitstillallowed? 1stgroup group_one zzaAbc z34wAwy?12# sin log
x
bad idea
Parentheses first
To create a row vector, enclose a list of values in brackets
You could also separate the values with a comma
Use a semicolon as a delimiter to create a new row
The default increment is 1 but ifThe default increment is 1, but if you want to use a different increment put it between the first and final values
The transpose operator exchangesh rows and columns
table =[degrees;radians]ā would have given the same result
edit get home ans = C:\Documents and Settings\pschimpf\octave
edit home>> edit home.
Th d i