
Appendix D
MATLAB FUNCTIONS
AND
COMMANDS
H
ere are some of MATLAB’s functions and commands.
MATLAB INPUT/OUTPUT FUNCTIONS AND COMMANDS
clc – clears the Command Window
disp(string) – displays an array or string
fprintf(string) – writes formatted output to the screen
input(string) – formats input from the steam
; – prevents screen printing
format – numeric display format, expressed together with short, long, e,
bank, or +
MATLAB Mathematical Functions
abs(x) – returns the absolute value of x
acos(x) – returns the arc cosine value of x
asin(x) – returns the arc sine value of x
atan(x) – returns the arc tangent value of x