摘要: num2str(38)ans = '38'>> int2str(pi)ans = '3'>> num2str(pi)ans = '3.1416'>> num2str(2:5)ans = '2 3 4 5'>> int2str(2:5)ans = '2 3 4 5'>> num2str(3.45678 阅读全文
posted @ 2022-04-26 11:25 无敌小金刚 阅读(876) 评论(0) 推荐(0)
摘要: 1.strcmp()与isequal() strcmp({'A','B'},{'A','B'}) %数组中的每个元素进行判断 ans = 1×2 logical 数组 1 1 >> isequal({'A','B'},{'A','B'}) %数组整体进行判断ans = logical 1>> str 阅读全文
posted @ 2022-04-26 10:58 无敌小金刚 阅读(1418) 评论(0) 推荐(0)