How to check the type of input
古いコメントを表示
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?
採用された回答
その他の回答 (1 件)
Azzi Abdelmalek
2014 年 3 月 1 日
編集済み: Azzi Abdelmalek
2014 年 3 月 1 日
Use class function
s='err'
class(s)
カテゴリ
ヘルプ センター および File Exchange で Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!