Using the C++ Math Library | ![]() ![]() |
Flow of Control
The MATLAB programming language provides an if
-statement and a switch
-statement for making decisions and two loop constructs, the for
loop and the while
loop, for program iteration. Each of these statements begins a program block (the body of the loop or if
-statement); you must end the block with the end
keyword.
See Control Structure for more details.
![]() | Errors | MATLAB for C++ Programmers | ![]() |