在利用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
posted on 2018-03-01 11:27  蔡钊  阅读(15389)  评论(0)    收藏  举报