Run a script and use some variables as inputs in another script

3 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2017-12-5
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 个)

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by