필터 지우기
필터 지우기

How to add m files in Matlab

조회 수: 8 (최근 30일)
Amar
Amar 2014년 11월 23일
답변: Jan 2014년 11월 23일
Is it possible to add the m file in a Matlab folder, that could be used and search in Matlab command window, example, i want to add gendist.m, and that it can normally call in the command window with the command >> gendist http://www.mathworks.com/matlabcentral/fileexchange/34101-random-numbers-from-a-discrete-distribution/content/gendist.m

답변 (2개)

Adam
Adam 2014년 11월 23일
Just add the folder it is in to your path and you can call it.

Jan
Jan 2014년 11월 23일
Add the parent folder of the M-file either by the addpath command or permamently using the pathtool or the corresponding 'Set Path' menu in Matlab's comamnd window.
Such methods are explained in the Getting Started sections of the documentation. Reading them is recommended, when you want to use such a powerful system like Matlab.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by