matlab 中出现的错误 原因及解决办法

1.Indexing cannot yield multiple results

原因:变量名与内置的函数名相同,比如:[min, k] = min(C)

解决办法:更改变量名:[m, k] = min(C)

2.This statement is not inside any function.

It follows the END that terminates the definition of the function "function_name".

原因:多了一个end

解决办法:去掉一个end


 

posted @ 2014-11-22 15:20  Pony_wang  阅读(2117)  评论(0编辑  收藏  举报