MATLAB: How to run a different file than the one being edited? -


i (unfortunately) have matlab project 2 files, main.m , function.m. spent time editing function.m, called several times main.m. when press f5 on keyboard, runs current file (function.m) need keep changing main.m run project, irritating. used eclipse run last launched.

is there way effect behaviour in matlab?

if potential employers reading this, please note forced use program (which charges customers access thread-safe primitives) against will.

if you're okay clicking button instead of hitting f5, make "run main" button in shortcuts toolbar. in main matlab window, right-click menu , turn on shortcuts toolbar if it's not on already. right-click shortcut toolbar, "new shortcut", put "run main" in label, , enter "main()" callback. work regardless of file you're editing, , set additional shortcuts alternate run configurations if point.

i don't think can define key bindings these shortcuts. if want it, yair altman's undocumented matlab site has hack adding arbitrary user defined key bindings used here.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -