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')?
回答 (1 件)
Image Analyst
2013 年 4 月 13 日
0 投票
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.
カテゴリ
ヘルプ センター および File Exchange で Variables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!