Insert a piece of code (a snippet) in the Matlab editor

Paste into the editor a code using the shortcuts toolbar.

Download
Download

You are now following this Submission

Cite As

Vincent Mazet (2026). Insert a piece of code (a snippet) in the Matlab editor (https://www.mathworks.com/matlabcentral/fileexchange/41704-insert-a-piece-of-code-a-snippet-in-the-matlab-editor), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: RobustCodeExpo2016, MATLAB Snippets

Categories

Find more on Environment and Settings in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Fix bug for new versions of Matlab.

Download
1.3.0

Now the code does not add a variable in the workspace. Besides, a new line is introduces by the more usual character '\n'.

Download
1.1.0

Fix minors bugs and give an example.

Download
1.0.0

Download