Calling a script within another script
古いコメントを表示
I am trying to call a script (say script2) within another script (say script1). But I have to declare a few variables in script1 before calling script2. When I try to do this, the script1 directly goes to calling script2, without declaring the variables in between. How to overcome this?
{clear
xq=2; yq=2;
script2}
4 件のコメント
KSSV
2017 年 3 月 8 日
script in the sense a function?
Adam
2017 年 3 月 8 日
What is in script2?
Jan
2017 年 3 月 8 日
@Sanjit: Please do not invent an own syntax containing curly braces to explain code in the forum. Prefer standard Matlab syntax, because this is understood here in general.
Sanjit Ganti
2017 年 3 月 9 日
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Scope Variables and Generate Names についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!