matlab中提示Error: Missing variable or function.

来源:百度知道 编辑:UC知道 时间:2024/06/28 15:54:23
??? if x(1)*x(2)>0|(x(1)==0&x(2)~=0) %Rule1
Error: Missing variable or function.
这是怎么回事啊 谢谢
Warning: Variable 'error' has been previously used as a function name.
(Type "warning off MATLAB:mir_warning_variable_used_as_function" to suppress this warning.)
??? Error using ==> error
Too many output arguments.
这又是什么意思呢?

~ 符号不对,应该改为 ~ ,即 if x(1)*x(2)>0|(x(1)==0&x(2)~=0)

你怎么什么都不会呀?你定义函数没定义对!调用函数也不对!如果你不是学习数学的你还是学习simulink吧!

函数没有定义,输出参数太多