How to give inputs to function definitions?
조회 수: 10 (최근 30일)
이전 댓글 표시
I know this is a dumb question but I have to ask, else i'l never know how to do it. I am stuck without any knowledge as how to give input to functions. for example, In this link http://www.mathworks.in/matlabcentral/fileexchange/20328 the file is defined in a function and when i execute it, it shows 'Not enough input arguments.'. Now this is my problem. How should I give inputs to this function and also how to define them in a separate file. Pls help and thanks in advance.
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2013년 5월 19일
In Matlab windows command type
costMat=magic(5)
[assignment,cost] = munkres(costMat)
댓글 수: 2
Azzi Abdelmalek
2013년 5월 19일
You can call the function in windows command or in an m-file, your function and your m-file should be in the same folder
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Adding custom doc에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!