Input argument "ind" is undefined.,老是出现错误。

7 ビュー (過去 30 日間)
finepo
finepo 2022 年 11 月 22 日
回答済み: jesojas 2022 年 11 月 22 日
str_adjustInd = adjustIndTest, '(country, userObj)'];
result = eval(str_adjustInd);
其中有一个子函数是这样的:function newInd = adjustIndTest(ind, userObj)
newInd = ind;
end
我运行的时候老是出现这样的错误:str_adjustInd = [adjustIndTest, '(country, userObj)'];
??? Input argument "ind" is undefined.
Error in ==> adjustIndTest at 3
newInd = ind;
还请各位帮忙解决!

採用された回答

jesojas
jesojas 2022 年 11 月 22 日
['adjustIndTest', '(country, userObj)']
应该全都是字符串才对。。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB 快速入门 についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!