Matlab 数据类型转换 发表于 2020-05-13 更新于 2020-11-08 阅读次数: Valine: cell 转字符串:string();字符串转 double: str2double(); 矩阵下标与索引的转换:下标转索引: sub2ind索引转下标: ind2sub 12linearInd = sub2ind(matrixSize, rowSub, colSub);[rowSub, colSub] = ind2sub(matrixSize, linearInd);