I'm working on an App Designer app. I'd like it to be able to pull in certain variables from the base workspace when the app is loaded and use those to determine what app startup functions are necessary. (In other words, if X and Y are already stored in certain variables in a base function, pre-populate the values of X and Y in the app on startup.)
I have input arguments set up in the app via startupFcn(). From what I can tell, even after the app is opened, if you want the app to run with certain input arguments, you have to use the Run command in App Designer and add the appropriate input arguments at runtime. I would like to combine these steps and just call the app to run and enter the input arguments during the appdesigner() call. Is this possible?
Potential workaround: For the variables I want to share with the app, make them globals. Then the app would be able to interact with them immediately, assuming the app knows the right variable name to use. Would that work?