defining simulink variables through matlab srcript
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
how can I define variables through matlab script? I am using trial version
0 Commenti
Risposte (1)
galaxy
il 29 Ott 2019
You can create variables to workspace and in simulink, enable acess to base workspace.
For create variables via script, let 's try as following
v = genvarname('name_variable', who);
eval([v '= 1']); %% assign variable value
2 Commenti
galaxy
il 30 Ott 2019
You must using "name_variable" in simulink model which same as workspace, and in model, please acess to base workspace as following
Vedere anche
Categorie
Scopri di più su Simulink Functions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!