Pass variables/structure to .mlapp (GUI/App designer)
조회 수: 16 (최근 30일)
이전 댓글 표시
Hello,
I want to run my matlab script (.m file) amd want to pass data to GUI/.mlapp from my .m file(matlab script) workspace. The data can be a variable/structure.
Also, I want GUI to also pass some data back to .m file.
Thanks !!!
댓글 수: 0
채택된 답변
Cameron
2023년 1월 8일
댓글 수: 2
Cameron
2023년 1월 9일
As @Image Analyst said below, you can use the save and load functions. Those are generally more accepted.
추가 답변 (3개)
Image Analyst
2023년 1월 9일
댓글 수: 0
Walter Roberson
2023년 1월 9일
App designer creates code that defines an object class the derives from handle.
At least in theory, you could modify the constructor to accept additional parameters. Or probably better would be adding methods that accepted the handle object and the additional data, and performed an action and returned appropriate values.
댓글 수: 0
chrisw23
2023년 2월 9일
Calling your mlapp application from your script returns the app handle with full access to all public objects
myAppHandle = myApp()
Observed properties are an option to establish an event structure for bidirectional communication.
댓글 수: 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!