- editor: creat text file and doesn’t change the original script
- save and press run button to run the "editor file" on matlab(have to select the currect folder at current folder on the left side)
- "clear" cleans all the above command
- don't always relay on the gui, can easily change the value by issuing new command Eg. b= 111 Or right click on the work space.
Command History - Shows a record of command issued
Problem
Setting key word as variable will overwrite the actual command Eg. Clear = 10, this will make the previous clear command unusable
Cannot start a variable with a number
Commands
Diary
Clear - clear previous command
Clc-same as clear
Pathtool - pathtool opens the Set Path dialog box, a graphical user interface you use to view and modify the MATLAB® search path.
Whos - display all the variable and it's size
Edit- opens the gui editor
Plot - place a dot on a graph Eg. Plot(5,9,'*','markersizer',100)
Can set shape by writing "*" after coordinates
Can set size of dot
Plot multipal points
Eg. Plot ([1 4 3 6],[7 9 0 3])
Doc - display command Eg. Doc plot display all the command related to plot
Save - Save workspace variables to file Eg. Save('saved_vars.mat','a')
Can be used to load stuff that are cleared
Iskeyword - use to see keywords reserved for matlab Eg. Iskeyword(hkad) - display that whether hkad is a keyword or not
Format long e/format long eng - shows answer or number in scientific notation
Format bank - shows answer or number to 2 decimal places
Format compact - doesn’t not show white lines in command window
Maxlengthmax - shows the max length of variable
Multipal commands
Separate each