Professional Documents
Culture Documents
Myanmar Aerospace Engineering University Department of Electrical Systems and Instrumentation
Myanmar Aerospace Engineering University Department of Electrical Systems and Instrumentation
Code- EI4001
Week -1
Outlines of Presentation
Programming Structures
Relational Operator
Logical Operator
References
Programming Structures
can be categorized
sequences – list of commands
selection – based on logical conditions
repetition – executed multiple times
find – searches a matrix and identifies which elements in that matrix meet a
given criterion
eg;
find(a>40)
[r,c]=find(a>40)
[r,c,v]=find(a>40)
Selection Structures
Simple if
if comparison
state
end
if/else structure
if comparison
state
else
state
end
elseif
References