


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



BAE 200 - WK2 Laboratory 9/2/ Chapter 5 - Solving Simple problems and saving Files in MATLAB p 86-
Goals: - Get comfortable with the MATLAB environment and the ability to save files to your lockerspace/workspace.
Open MATLAB and set the Current Directory to your Lab Lockerspace
Variables
Matrices and Scalars
Arithmetic Operations
o 6.022e23 Avagadro’s number – (number of atoms or molecules in a gram mole of the substance)
Matrix operations
x =
1 2 3 4
y =
1 2 3 4
1 2 3 4 5 6 7 8 9 10 11 12
1 2 3 4 5 6 7 8 9 10 11 12
1 5 9 2 6 10 3 7 11 4 8 12
o diary on will save to your work from the command window to your current directory when you exit MATLAB to a file named diary that you can open with Notepad, Word, etc. o diary (‘filename’) will save the diary to the filename you have chosen in your current directory. o Will submit homeworks in this way at first
Activities - 30 minutes Complete examples 1, 3 and 4. Save work as diary file (I will check this following class) Save example 4 as a M-file