How to check the type of input
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (1)
Azzi Abdelmalek
le 1 Mar 2014
Modifié(e) : Azzi Abdelmalek
le 1 Mar 2014
Use class function
s='err'
class(s)
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!