Error: Unexpected MATLAB expression.

1 次查看(过去 30 天)
Hey guys. I get this error and i have no idea why.
eligible(88 88)
|
Error: Unexpected MATLAB expression.
Here is my code :
function [ E ] = eligible( v,q );
V = (v>88); Q = (q>88);
E = (V+Q == 2) && (v+q > 184);
end

回答(1 个)

Stephen23
Stephen23 2017-3-11
编辑:Stephen23 2017-3-11
The problem is not your function, but how you are calling it: you forgot the comma:
eligible(88,88)
^ you need this!
As the error message clearly shows, you did not use a comma.

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by