Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 24

• Environment

• Built in functions
• Matrix manipulations
• Plotting
• Looping (for, while)
• Selection structures ( If, switch)
• Inputs and outputs (fprintf, display)
• User defined functions
• Interface
• Unvalid variable names
• Variable, matrix, vector
• Indexing, how to choose all rows
• Colon operator, linspace
• Zeros,ones, identity, rand,randi,max,min,size,sum
• Add,subtract,/ multiply,power,divide .*
• Sort, default ascending, sort(A,’descend’)
• Flipud, fliplr
• String = ‘AHMED’, lower(string), upper, strcat, concatenates 2 strings
• Strcat(string1, string2) strrep(string, ‘hawa’, ‘ahmed’)
Modify this code
Functions
Functions are overloaded and doesn’t need a
return
Global variables can be used outside the
function
Plotting go through tut9

You might also like