How to check the type of input
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (1)
Azzi Abdelmalek
am 1 Mär. 2014
Bearbeitet: Azzi Abdelmalek
am 1 Mär. 2014
Use class function
s='err'
class(s)
Kategorien
Mehr zu Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!