MATLAB Answers

Why shortcut Ctrl+T cannot uncomment the code in InitFcn of simulink model, but start the simulation?

1 view (last 30 days)
  1. when I code in the InitFcn of a simulink model and try to uncomment some of the code, I press shortcut Ctrl+T in keyboard, but simulink starts the simulation instead of uncomment the selected code.
  2. I check the shortcuts configuration of MATLAB, but there is no conflict.
  3. I can used Ctrl+T to uncomment the code in InitFcn of the same simulink model in Matlab R2019b.

Accepted Answer

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 27 Nov 2020
In SImulink, the shortcut Ctrl+T is reserved for the "run" command that executes models. That's why it does not work for uncommenting in Simulink.

More Answers (0)





Community Treasure Hunt

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

Start Hunting!