Borrar filtros
Borrar filtros

Error: Unexpected MATLAB expression.

2 visualizaciones (últimos 30 días)
Radoslav Gagov
Radoslav Gagov el 11 de Mzo. de 2017
Comentada: Stephen23 el 13 de Mzo. de 2017
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

Respuestas (1)

Stephen23
Stephen23 el 11 de Mzo. de 2017
Editada: Stephen23 el 11 de Mzo. de 2017
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.
  2 comentarios
Radoslav Gagov
Radoslav Gagov el 13 de Mzo. de 2017
Thank you
Stephen23
Stephen23 el 13 de Mzo. de 2017
@Radoslav Gagov: please accept my answer if it resolves your question.

Iniciar sesión para comentar.

Categorías

Más información sobre Debugging and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by