1. 数字 → 字符串: num2str
2. 字符串 → 数字: str2double
3. cell数组 → 普通数组: cell2mat
4. 从字符串中提取数字(提取出来的数字仍然是字符串的格式):
num_str = regexp(str,'\d*\.?\d*','match')
5. table → 矩阵: table2array
微信扫一扫
1. 数字 → 字符串: num2str
2. 字符串 → 数字: str2double
3. cell数组 → 普通数组: cell2mat
4. 从字符串中提取数字(提取出来的数字仍然是字符串的格式):
num_str = regexp(str,'\d*\.?\d*','match')
5. table → 矩阵: table2array
相关推荐