ENGINEERING MATLAB EXAM WITH COMPLETE SOLUTIONS
LATEST UPDATE
What is the structure of a for-end loop? - ANSWER for k = start(starting
value):(increment):(ending number)
commands
end
What does each thing represent in the Value Display command for fprintf() commands?
ex. %3.2f - ANSWER % = start of conversion
3 = field width(optional)
.2 = precision(numbers after decimal place_
f = conversion character
What is the MATLAB plot function? - ANSWER plot(x,y)
x and y representing vectors and they must be the same length!
Specifier for solid line?
Dotted line?
Dashed line?
Dash-dot? - ANSWER solid line = -
dotted line = :
dashed = --
dash-dot = -.
What is the specifier for the colors red, green, blue, and black? - ANSWER red = r
LATEST UPDATE
What is the structure of a for-end loop? - ANSWER for k = start(starting
value):(increment):(ending number)
commands
end
What does each thing represent in the Value Display command for fprintf() commands?
ex. %3.2f - ANSWER % = start of conversion
3 = field width(optional)
.2 = precision(numbers after decimal place_
f = conversion character
What is the MATLAB plot function? - ANSWER plot(x,y)
x and y representing vectors and they must be the same length!
Specifier for solid line?
Dotted line?
Dashed line?
Dash-dot? - ANSWER solid line = -
dotted line = :
dashed = --
dash-dot = -.
What is the specifier for the colors red, green, blue, and black? - ANSWER red = r