goto

This is an emulation of goto function.
23 Downloads
Updated 10 Apr 2020

View License

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 .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0