Lab10_Matlab_04 - Programming in MATLAB Matlab Programming...

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

View Full Document Right Arrow Icon
Programming in MATLAB
Background image of page 1

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

View Full DocumentRight Arrow Icon
Matlab has the capability to handle I/O as well as control statements in the editing window of M- files to generate programs that can be executed by users other than the programmer. Among these we find: Relational operators Logical operators Input and output statements Conditional control structures Looping control structures Matlab Programming
Background image of page 2
Relational Operators: < less than <= less than or equal to > greater than >= greater than or equal to == equal to ~= not equal to Matlab Programming
Background image of page 3

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

View Full DocumentRight Arrow Icon
Logical Operators: ~ not and | or Matlab Programming
Background image of page 4
Input and Output statements: load filename: reads file into workspace save filename: saves workspace into file input : requests user input disp : displays workspace content fprintf : displays formatted workspace content Matlab Programming
Background image of page 5

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

View Full DocumentRight Arrow Icon
Conditional Control Structures: if condition statement 1; else statement 2; end Matlab Programming
Background image of page 6
Looping Control Structures: for index = expression statements; end while expression statements; end Matlab Programming
Background image of page 7

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

View Full DocumentRight Arrow Icon
Open Matlab and create a new M-file. Save the file
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/22/2010 for the course EGN 1007 taught by Professor Vitto during the Spring '08 term at University of Central Florida.

Page1 / 32

Lab10_Matlab_04 - Programming in MATLAB Matlab Programming...

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

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