MATLAB: 如何将字符数组转换为元胞数组
可以使用函数 cellstr 将字符数组 (char) 转换为元胞数组 (cell),例如:
str = 'hello world';
cellstr(str)
输出结果为:
ans =
1×1 cell array
{'hello world'}
原文地址: https://www.cveoy.top/t/topic/ngBa 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
可以使用函数 cellstr 将字符数组 (char) 转换为元胞数组 (cell),例如:
str = 'hello world';
cellstr(str)
输出结果为:
ans =
1×1 cell array
{'hello world'}
原文地址: https://www.cveoy.top/t/topic/ngBa 著作权归作者所有。请勿转载和采集!