I have an update, I realized that the GUI doesn't use the base workspace but Evalin does. By using assignin('base', 'oscillator', 1) I'm at least able to make the error go away, but now matlab simply crashes with no error report.
Confusing.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!