Matlab中cell类型转成str类型


在利用xlsread函数的时候,raw和txt图均为Cell类型,要进行转换为Str类型。

用char这个函数就可以了:

>> cs
cs =
'abc'
'defg'
'hi'
>> s = char( cs )
s =
abc
defg
hi
>> whos
Name Size Bytes Class Attributes
cs 3x1 198 cell
s 3x4 24 char


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM