1. 数字 → 字符串: num2str
2. 字符串 → 数字: str2double
3. cell数组 → 普通数组: cell2mat
4. 从字符串中提取数字(提取出来的数字仍然是字符串的格式):
num_str = regexp(str,'\d*\.?\d*','match')
5. table → 矩阵: table2array
Matlab中各种数据之间转换的命令(更新中...)
阅读 29
2022-03-12
1. 数字 → 字符串: num2str
2. 字符串 → 数字: str2double
3. cell数组 → 普通数组: cell2mat
4. 从字符串中提取数字(提取出来的数字仍然是字符串的格式):
num_str = regexp(str,'\d*\.?\d*','match')
5. table → 矩阵: table2array
相关推荐
精彩评论(0)