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!