Attempt to execute SCRIPT <filename>as a function

firstly i m new to matlab i dont know whats wrong with my code because there was no such error in my code before but now i m getting this wierd error on thi very specific line
bank = bcd_createfilterbank(imageSize, nests(i,:), thresholds);
where bcd_createfilterbank is file present in my curent directory

1 件のコメント

Chandrasekhar
Chandrasekhar 2014 年 3 月 28 日
編集済み: Chandrasekhar 2014 年 3 月 28 日
information is not enough to answer your question.post the error message also

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 3 月 28 日

0 投票

Your file bcd_createfilterbank.m has a first non-comment line that does not being with "function" -- or possibly every line in the .m file is a comment line. As the first actionable word is not "function" the file is a "script" rather than a function. You can pass parameters to functions, but you cannot pass parameters to scripts.
You need to examine the beginning of your bcd_createfilterbank.m file.
If you do find that the entire file is comments, then the file is present because it contains "help" information, and you are missing a .p or .mex* or .dll containing bcd_createfilterbank

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

質問済み:

2014 年 3 月 27 日

回答済み:

2014 年 3 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by