Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

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

5.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 1.58 KB File ID: #41704 Version: 1.4
image thumbnail

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



10 May 2013 (Updated )

Paste into the editor a code using the shortcuts toolbar.

| Watch this File

File Information

You often use the same code, but you still don't remember it?
1. Copy the code of the file insert_snippet.m.

2. Create a new shortcut in Matlab.

3. Paste the code into 'Callback'.

4. Change the code in the 22th line.

5. Give a name to your shortcut in 'Label'.

6. Click 'Save'.

7. Click on the newly created shortcut to paste your code into the editor.

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
10 Sep 2015 Nicolas  
10 May 2013 1.1

Fix minors bugs and give an example.

29 Aug 2013 1.3

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

12 Nov 2014 1.4

Fix bug for new versions of Matlab.

Contact us