How to give inputs to function definitions?

7 ビュー (過去 30 日間)
Nirmal
Nirmal 2013 年 5 月 19 日
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.

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 5 月 19 日
In Matlab windows command type
costMat=magic(5)
[assignment,cost] = munkres(costMat)
  2 件のコメント
Nirmal
Nirmal 2013 年 5 月 19 日
Thanks you very much, can i define this input in a separate file?
Azzi Abdelmalek
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 ExchangeAdding custom doc についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by