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?
1 回表示 (過去 30 日間)
古いコメントを表示
![mainapp1.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219646/mainapp1.png)
![mainapp2.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219647/mainapp2.png)
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 uifigure-Based Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!