Insert a piece of code (a snippet) in the Matlab editor
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.
Citar como
Vincent Mazet (2024). 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. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspiración para: RobustCodeExpo2016, MATLAB Snippets
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.4.0.0 | Fix bug for new versions of Matlab. |
||
1.3.0.0 | Now the code does not add a variable in the workspace. Besides, a new line is introduces by the more usual character '\n'. |
||
1.1.0.0 | Fix minors bugs and give an example. |
||
1.0.0.0 |