Run a script and use some variables as inputs in another script
조회 수: 7 (최근 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
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!