Posts Tagged ‘Controls’
Controlling Command Window Input and Output
The format Function
The format function controls the numeric format of the values displayed. The function affects only how numbers are displayed, not how MATLAB software computes or saves them. Here are the different formats, together with the resulting output produced from a vector x with components of different magnitudes. Read More
elseif
elseif IF statement condition.
elseif is used with IF. The statements after the elseif are
executed if the expression is true and all the preceding IF and
elseif expressions are false. An expression is considered true if
the real part has all non-zero elements. Read More
end
end Terminate scope of FOR, WHILE, SWITCH, TRY, and IF statements. Without END’s, FOR, WHILE, SWITCH, TRY, and IF wait for further input. Each end is paired with the closest previous unpaired FOR, WHILE, SWITCH, TRY or IF and serves to terminate its scope. Read More