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

8 views (last 30 days)
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 Comments
Mohammad Sami
Mohammad Sami on 16 Jan 2020
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.

Sign in to comment.

Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!