Return Statement

The program-termination statement, return, is one of MATLAB’s four flow-control statements. Its meaning is literal: it terminates execution and skips any code that follows.