Quantcast
Channel: MATLAB Central Newsreader - Private Functions: Calling Issue
Viewing all articles
Browse latest Browse all 10

Re: Private Functions: Calling Issue

$
0
0
Thanks for replying!

> - Are you using them from a SCRIPT, or from a
> function? This probably has an effect.

Yes, I am calling them from a script. Never from a function.


> - Never put the private directory itself on the
> search path, only the directory above it.

Correct! Fortunately, MATLAB is intellegent enough not to include my private
folders of my toolbox within the search path. In other words, I cannot find my
private folders in my search path, when including my toolbox to the search
path.


> - Is your directory within the Matlab toolbox
> directories? This is a big no-no.

No, my toolbox is located outside the original Matlab-toolbox folder.

However, the funny thing is that Matlab is able to open my private function,
when selecting the function in my script and pressing Crtl-D (for PC) or Cmd-
D (Mac).

Viewing all articles
Browse latest Browse all 10

Trending Articles