MATLAB: Call function in package from package

functionpackages

How I can use use function present in package from the package? If i have package with:
+mypkg
fun1.m
fun2.m
I would that in fun1.m i can call fun2.m. I only could call fun2.m with mypkg.fun2? There are some alternative?

Best Answer

According to the documentation
all references to functions in the package must use the package name prefix, unless you import the package. See the example in the following link for importing package functions: