How to call .m file?

조회 수: 33 (최근 30일)
peyush
peyush 2015년 7월 22일
댓글: peyush 2015년 7월 23일
I have a main.m script, I want to perform some operation again and again, so I created another .m file named op.m, I need to call op.m inside main.m whenever required....how to call it inside main.m......PS: also in op.m file, should I write return at the end or it returns automatically to the main script after doing the operation?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 7월 22일
편집: Azzi Abdelmalek 2015년 7월 22일
just type the name of your script
your_cript
  댓글 수: 1
peyush
peyush 2015년 7월 23일
thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by