MATLAB, 4th Edition (2018) – Sadiku –
Solutions Manual PDF
Ways to communicate with MATLAB - answer-commands, functions, and statements.
Varibale - answer-symbol used to contain a value
e.g. r=5
argument - answer-a pair of parentheses used after the function's name to enclose the value.
E.G sqrt"(#)"
scalar variable - answer-a variable that contains a single number
precedence in code - answer-*from left to right
*^. *&/,\. +&-.
*parentheses has the innermost power left to right
Assignment operator - answer-e.g. x=x+2, add to to current value of x, then replace that x with
the new value
clc - answer-clears the command window
1
, clear - answer-removes all variables from memory
clear t - answer-clears the variable "t"
exist (var) - answer-tells whether "var" exists or not
quit - answer-stops Matlab
who - answer-lists all the variables in workspace
whos - answer-list the variables and sizes
colons - answer-generate an array having regular spaced intervals
semi-colon - answer-suppresses screen printing
comma - answer-separates elements of an array.
elipse - answer-"..." continuous line script
format command - answer-how numbers appear on the screen
format short - answer-four decimal digits once told to matlab and calculations are done
2