Be the first to rate this file! 13 Downloads (last 30 days) File Size: 1.77 KB File ID: #41704
image thumbnail

Insert your piece of code in the Matlab editor

by

 

10 May 2013 (Updated )

Paste into the editor a code using the shortcuts toolbar.

| Watch this File

File Information
Description

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 (right click on the Shortcut toolbar > New Shortcut).

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)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
10 May 2013

Fix minors bugs and give an example.

29 Aug 2013

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

Contact us