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


 

相关文章: