フィルターのクリア

How to do running another .m file that calls this .m file?

2 ビュー (過去 30 日間)
KD
KD 2021 年 12 月 9 日
コメント済み: Rik 2021 年 12 月 9 日
x = [5 10 12 3];
y = [11 8 3 3];
plot(x,y, 'g')

回答 (1 件)

Chunru
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
  1 件のコメント
Rik
Rik 2021 年 12 月 9 日
Even better: use functions instead.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFiles and Folders についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by