using testtype to check odd or even numbers
Mostrar comentarios más antiguos
In my code I try to use an 'if' operator to check whether a number is odd or even, so the code knows whether to proceed. So something like this:
if testtype(j, Type::Odd) = TRUE
statements
end
But that just gives the error:
Unexpected MATLAB operator.
1 comentario
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Type Checking en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!