필터 지우기
필터 지우기

Creating user defined commands in Matlab

조회 수: 11 (최근 30일)
Saptarshi Roy
Saptarshi Roy 2013년 7월 5일
I have written a customized plot and print functions for my use. They are simple user defined functions in m-file format.
Now can I use them as matlab command? i.e., I want to be able to call them without putting the m-files in all the working directories.
It is apparent that I should put the m-file in some standards directory in matlab program files. Please help.

답변 (2개)

Walter Roberson
Walter Roberson 2013년 7월 5일
You should add the directory to the MATLAB path, using pathtool

David Sanchez
David Sanchez 2013년 7월 5일
Copy all your m-files to a directory. Then go to the upper left corner of MATLAB layout. Then, click on File -> Set Path. Choose the folder where you placed your m-files/commands. And that's it. You can use your commands from anywhere.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by