INLINEDEF: Define functions in scripts

Versione 1.1.0.0 (6,92 KB) da Max
Work around for defining functions and/or classes in scripts.
323 download
Aggiornato 20 mag 2015

Visualizza la licenza

INLINEDEF gives the appearance of defining a function or class in a script (minus syntax highlighting), though a separate M-file containing the function or class definition is actually auto-generated and saved on the Matlab path - and is not more specifically scoped.
The main advantage of using INLINEDEF over creating the M-file directly is centralisation of source code, that is, all source code that relates only to the script can, effectively, be stored in the script. This is useful if one's work is of quite an exploratory nature where functions often have limited use outside a specific, temporary context.

Click here for a full HTML description:
http://au.mathworks.com/matlabcentral/fileexchange/50908-inlinedef--define-functions-in-scripts/content/html/inlinedef.html

Cita come

Max (2024). INLINEDEF: Define functions in scripts (https://www.mathworks.com/matlabcentral/fileexchange/50908-inlinedef-define-functions-in-scripts), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2014b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Files and Folders in Help Center e MATLAB Answers
Riconoscimenti

Ispirato da: verbatim: Get the text of a block comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.1.0.0

Added link to HTML description
HTML description did not display on main page
Updated description
Added more complete description
Added functionality for 'uigetdir' pop-up

1.0.0.0

Added examples in the Description section