Hi guys, I'm trying to create a multiwindow app. It's my first app but I'm taking this error. How can I solve it?
4 次查看(过去 30 天)
显示 更早的评论


3 个评论
Adam Danz
2019-5-15
What are the values of app.a, app.b etc. and where do they come from? Somewhere the string "mainApp" is being passed to DialogApp() and the string should be "MainApp" instead.
采纳的回答
Adam Danz
2019-5-15
编辑:Adam Danz
2019-5-15
I beleive your error is here
% Code that executes after component creation
function startupFcn(app, MainApp, a, b, c)
% Store main app in property for CloseRequestFcn to use
app.CallingApp = mainApp; % <----------------------------- HERE
Should be
app.CallingApp = MainApp; % with capital M
Make that change, save the app, close the app, restart it, and test it. If the problem persists, I'd be glad to look further.
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!