How to make custom keyboard shortcuts for Simulink ?

6 vues (au cours des 30 derniers jours)
VIGNESH BALAJI
VIGNESH BALAJI le 30 Oct 2023
Réponse apportée : Shubham le 7 Août 2024
The shortcut for Run in simulink is F5. I would like to customize to some other key like SHIFT. Can anyone let me know how to do it ?

Réponses (1)

Shubham
Shubham le 7 Août 2024
Hi Vignesh,
As per my understanding, certain default shortcuts in Simulink, like “Run” command are not customizable, but you can still create new Simulink shortcuts for custom actions.
Here's how you can do it:
  1. Create a 'sl_customization.m' file in your current working directory.
  2. Edit the 'sl_customization.m' file to define a custom shortcut. For more information on defining custom shortcuts in Simulink, you can refer to the following blog post: https://blogs.mathworks.com/simulink/2013/06/24/defining-custom-shortcuts-in-simulink/
  3. Save the file and refresh the customizations by running command “sl_refresh_customizations”.
Hope it helps.
Regards,
Shubham

Catégories

En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by