How to check the type of input
Mostrar comentarios más antiguos
How would I be able to check for the correct input value for a function, say I'm expecting a number but instead they put in a character?
Respuesta aceptada
Más respuestas (1)
Azzi Abdelmalek
el 1 de Mzo. de 2014
Editada: Azzi Abdelmalek
el 1 de Mzo. de 2014
Use class function
s='err'
class(s)
Categorías
Más información sobre Programming 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!