Make keyboard shortcut for a piece of code.

3 views (last 30 days)
Brian
Brian on 20 Feb 2015
Hi I am editing a lot of subfunction which are located in different .m files than the one (main.m) they are called from. This means that I need to change the window tap to run the code and back again when I want to edit the code of the subfunction.
In order to not do this I would like to hit a a keyboard shortcut that runs a certain piece of code that runs the main file even though I am looking at another file in the following way:
hit the shortcut "F9" --> execute the code "run('main')
Thanks in advance :)

Answers (0)

Categories

Find more on Desktop in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!