Example and Functions

Matlab and Simulink Controls

  • while

    while Repeat statements an indefinite number of times. The general form of a while statement is: while expression statements END…

    Read More »
  • end

    end Terminate scope of FOR, WHILE, SWITCH, TRY, and IF statements. Without END’s, FOR, WHILE, SWITCH, TRY, and IF wait…

    Read More »
  • continue

    continue Pass control to the next iteration of FOR or WHILE loop. continue passes control to the next iteration of…

    Read More »
  • if

    if if statement condition. The general form of the if statement is if expression statements ELSEIF expression statements ELSE statements…

    Read More »
  • return

    return Return to invoking function. return causes a return to the invoking function or to the keyboard. It also terminates…

    Read More »
  • case

    Matlab Case Switch Statement case SWITCH statement case. case is part of the SWITCH statement syntax, whose general form is:…

    Read More »

Block Title

Back to top button