Passing edit field numeric values to base workspace

Vangala on 11 Dec 2023
Latest activity Reply by Anusha Sridharan on 11 Dec 2023

I'm using app designer to link it with one simulink model of mine. I had used editfield (numeric) in app such that inputs to simulink model can be given through this app. The variables declared in app code will be used in simulink model. But when I give numeric inputs to app and run, the variables in simulink are showing it as 0 in the base workspace too.
Syntax used for assigning a variable to editfield is:
assignin("base", "variablename", app.EditFieldName.Value);
Please give me the solution to this.
Anusha Sridharan
Anusha Sridharan on 11 Dec 2023
Hi @Vangala, we have moved your question to MATLAB Answers, where a wider support audience is available to help you: