Example and Functions

Matlab and Simulink Controls

  • if

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

    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 »
  • else

    else Used with IF. else is used with IF. The statements after the else are executed if all the preceding…

    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 »
  • Controls


    for Repeat statements a specific number of times. The general form of a for statement is: for variable = expr,…

    Read More »
  • while

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

    Read More »

Block Title

Back to top button