EGR_102_Lab_04A_MATLAB_Scripts

EGR_102_Lab_04A_MATLAB_Scripts - Saving MATLAB Work EGR 102...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
EGR 102 Lab 04A 1 Saving MATLAB ® Work EGR 102 Lab 04A 2 Saving Work in MATLAB ® Command Window runs commands and displays results Command History lists previously executed commands How do you save your work? Two types of MATLAB files: Scripts User-defined functions Both use a .m extension
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
EGR 102 Lab 04A 3 Current Directory Current Directory is the folder to which MATLAB will save all files Current Directory is the folder that MATLAB will search when it runs or load files Current Directory may be changed interactively using the Current Directory Window or Current Directory Toolbar All engineering students are given network space to store files (M: drive) Create a “MATLAB” folder in your M: drive to save files for this class Set your Current Directory to M:\MATLAB EGR 102 Lab 04A 4 Current Directory MATLAB’s default Current Directory is “C:\Temp” It will return to this folder every time you open MATLAB MATLAB will not be able to find any of your saved files in “C:\Temp” Remember to set your Current Directory to “M:\MATLAB” every time you open MATLAB
Background image of page 2
EGR 102 Lab 04A 5 Script Files Series of MATLAB commands saved into a single file Save sets of commands that you want to execute more than
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 8

EGR_102_Lab_04A_MATLAB_Scripts - Saving MATLAB Work EGR 102...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online