How to use workspace variables in the App Designer of matlab?

12 次查看(过去 30 天)
I have some structures in the matlab workspace. I would like to modify these structures inside "App Designer". This is done because I want the user to choose some parameters from the graphical interface so that then the struct is updated automatically. Are you able to help me? Because I tried calling uiopen in the App designer code, or in the matlab code. Then I tried to give the two struct as input arguments, but it does not work.
In few words the App Designer code does not recognise the structures I try to give as input. How can I solve this issue? Thank you.
  2 个评论
Mohammad Sami
Mohammad Sami 2020-1-16
In app designer you need to add a startup function. Change to code view and then click the App Input Arguments button.
You can then add any number of arguments you want to pass in to the app designer. Modify the startup function to do what you need to do with the inputs.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile 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!

Translated by