Running an input script in another script

I got 2 scripts, 1 script with the input (asking people to input a unknown) and I got another file will use the graph from the first script but with a specific value of the unknown.
What command should I use in the second script so that I can call out the first script win the specific value, 20?
1 = First file (required input a value in the workspace) 2 = Second file (call file 1 with a specific value of 20)
Run('1')?

Réponses (1)

Image Analyst
Image Analyst le 13 Avr 2013

0 votes

I don't know why you want the complication of two scripts for this rather than just one, but you can see the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F. Other than that, you can write the parameters to a .mat file and have script2 read it in.

Catégories

En savoir plus sur Variables dans Centre d'aide et File Exchange

Tags

Question posée :

le 13 Avr 2013

Community Treasure Hunt

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

Start Hunting!

Translated by