Lecture 9 - 11/8/2010 Lecture 9: Inputs & Outputs BMEn...

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

View Full Document Right Arrow Icon
11/8/2010 1 Lecture 9: BMEn 2401 Programming for Biomedical Engineers Rich Beck November 9, 2010 1 Week 10 Nov 9 HW 9 (Nov 15) Week 11 Nov 16 Graphics in MATLAB (A.5) HW 10 (Nov 22) Week 12 Nov 23 Solving equations (selections from 4, 5, 7, 8, D) No labs this week due to Thanksgiving Holiday - Week 13 Nov 30 Symbolic Math (A.9) HW 11 (Dec 6) Week 14 Dec 7 Applications in Data Analysis (selections from 9, 10) - Week 15 Dec 14 2-650 Moos (next door to Midterm location): Final Exam 12:20-1:10 PM - FINAL Dec 22 Enjoy Winter Break! - UPDATED SYLLABUS
Background image of page 1

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

View Full DocumentRight Arrow Icon
11/8/2010 2 Today’s lecture save and load commands xlswrite and xlsread commands fprintf command Graphic User Interface (GUI) in MATLAB 3 Review: inputting and outputting data So far you have learned: Input Assigning values in a script file Receiving values from the user when the program is executed by using input command Output Displaying text on the command window using disp and display commands. 4
Background image of page 2
11/8/2010 3 Methods of inputting and outputting data Some other methods: Input Graphic User Interface (GUI) File (text file, Excel spreadsheet, picture, sound, video, … ) Output Command window using fprintf command File (text file, Excel spreadsheet, graph, …) 5 MATLAB Workspace All of the global variables created by script files are available in the MATLAB Workspace. 6
Background image of page 3

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

View Full DocumentRight Arrow Icon
11/8/2010 4 save save ('filename') save ('filename', 'variable1') Save command is used to store all or some of the variables in the Workspace to a file that can be accessed later only by MATLAB. Example: save ('Datafile') save ('Datafile2', 'x', 'y') 7 Note that the file name and variable names are all given to function as string input arguments. load load ('filename') load ('filename', 'variable1') Load command is used to re-load the variables back in the Workspace from a file. Example: load ('Datafile') load ('Datafile2', 'x', 'y') 8 Note that the file name and variable names are all given to function as string input arguments.
Background image of page 4
11/8/2010 5 load can also be used to load ASCII text files. If you use load with a text file, you should assign the loaded
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 19

Lecture 9 - 11/8/2010 Lecture 9: Inputs & Outputs BMEn...

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

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