필터 지우기
필터 지우기

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

카테고리

Help CenterFile Exchange에서 Files and Folders에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by