goto

This is an emulation of goto function.

You are now following this Submission

GOTO - Emulator
This function emulates goto.
Syntax: goto(label_name)

Inputs:
label_name - is a name of label insert in file with comment like
@gotol=label_name

Example:
% @goto=start
goto('init')
% @gotol=first_label
%code
% @gotol=second_label
%code
% @goto=finish
goto('close')

Author: Giovanni D'Avanzo
email: giovanni.davanzo@unicampania.it

Cite As

Giovanni D'Avanzo (2026). goto (https://www.mathworks.com/matlabcentral/fileexchange/74950-goto), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0