matlab的变量判断是字符还是数字

使用isnumeric()函数。

示例1: isnumeric(22)

返回:1

示例2:isnumeric('22')

返回:0

posted on 2022-01-05 18:00  一杯明月  阅读(3326)  评论(0编辑  收藏  举报