I am trying to put some .fig
and their corresponding .m
files in package.
I have:
+ui/mainWindow.fig
+ui/mainWindow.m
But when I try to run mainWindow.fig
Matlab prints an error from GUIDE:
Error using feval
Undefined function or variable mainWindow
The funny thing is that if i call with its fully qualified name:
ui.mainWindow
the window appears normally (but all callbacks don't work anyway).
I have tried to import ui.*
before running it.
Please note that I want to do this as sort of namespace
. I don't want to have my entire application in the global scope of Matlab.