When I addpath a folder in MATLAB2013a, the packages (folders begin with “+”) that are in the folder are not accessible. What is the solution? My main problem is when I want to add a Breakpoints in an m file that is in a package.
Asked
Active
Viewed 979 times
1 Answers
2
Matlab implements namespaces with folders beginning with a plus sign: stackoverflow:namespaces
You can simply add the parent folder to your Matlab path and call the function +foo/bar.m
in this fashion:
x = foo.bar(123);
-
Thanks for your answer, But my problem is when I want to add a Breakpoints in an m file that is in a package. – keyvanrad Aug 04 '13 at 14:41
-
1@keyvanrad you should specify that in your question then. – Eitan T Aug 04 '13 at 15:19
-
@keyvanrad: You can add the breakpoint anywhere in your main script or in any subfunction. The breakpoint disappears, when your program contains `clear all`. For further details refer to [matlab help](http://www.mathworks.de/de/help/matlab/matlab_prog/debugging-process-and-features.html#brqxeeu-182) – Lukas Aug 04 '13 at 21:14