{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture 9 - Lecture 9 Inputs Outputs BMEn 2401 Programming...

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

View Full Document Right Arrow Icon
11/8/2010 1 Lecture 9: Inputs & Outputs BMEn2401 Programming for Biomedical Engineers Rich Beck November 9, 2010 1 Week 10 Nov 9 Inputs & Outputs (A.8) HW9 (Nov 15) Week 11 Nov 16 Graphics in MATLAB (A.5) HW10 (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) & Quiz 2 in lecture HW11 (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
Image of page 1

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

View Full Document Right 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
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
Image of page 3

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

View Full Document Right 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.
Image of page 4
11/8/2010 5 load can also be used to load ASCII text files. If you
Image of page 5

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern