Run a script and use some variables as inputs in another script
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nikolas Spiliopoulos
le 5 Déc 2017
Réponse apportée : Walter Roberson
le 5 Déc 2017
Hi all,
I have a script file and I would like to run it and export two variables (lets say "45"and "1")
In order to use them as inputs for another script file.
Is it possible to do it?
Thanks
Nikolas
0 commentaires
Réponse acceptée
Walter Roberson
le 5 Déc 2017
Script files do not have inputs: functions have inputs.
Script files use whatever variables are hanging around in the workspace, so just have the second script use the variable names that you assigned to in the first script.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!