How to do running another .m file that calls this .m file?
2 ビュー (過去 30 日間)
古いコメントを表示
x = [5 10 12 3];
y = [11 8 3 3];
plot(x,y, 'g')
0 件のコメント
回答 (1 件)
Chunru
2021 年 12 月 9 日
Save the followint into a file, for example, 'my_script.m':
x = [5 10 12 3];
y = [11 8 3 3];
plot(x,y, 'g')
In a separate script, for example, 'another_script.m':
run('myscript.m') % to run your first script in second script
参考
カテゴリ
Help Center および File Exchange で Files and Folders についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!