Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jump to method definition regardless of class it is defined in

In the MatlabⓇ IDE, is there any easy way to jump to the definition of a particular method, without knowing in what class it is defined?

For self-contained functions, I can type edit funcname.m. The same for classes. However, the hierarchy of superclasses for a particular class may be large. By using metaclasses, I can find out in what class a method was defined, then open the class, and browse to the appropiate definition. This is a lot more work than it is for self-contained functions.

From the interactive prompt, is there any direct way to either jump to the definition of a particular method, or put a breakpoint in this method (so that executing it will cause the editor to jump to the definition)?

like image 745
gerrit Avatar asked Aug 16 '13 16:08

gerrit


Video Answer


1 Answers

Actually in MATLAB's IDE you can move between functions within a file. If you want to get more information about a function that you are calling in your code, you can use Open Selection (CTRL+D with Windows keybindings) to quickly jump to where the function is defined.

Check this link: MATLAB Spoken Here

if you move the cursor on a function in the editor and then press ctrl+D the function will be open in the editor. for methods inside a class you can use 'Go To'. If the method is defined in the present class.

like image 124
NKN Avatar answered Sep 29 '22 18:09

NKN