【发布时间】:2012-10-15 23:31:11
【问题描述】:
我阅读了有关它的 matlab 帮助,但仍有一些问题-
单元格数组中有字符串 - 我只想输入字符串的前两个字符,我该怎么做?
'anscell{1,1}= '
'LThand.jpg'
'aa1=strcmp('LT',anscell{1:5,1}(1:2));'
因为现在我得到一个错误-
Bad cell reference operation.
'Error in a (line 5)'
aa1=strcmp({'LT'},anscell{1:5,1}(1:2));
【问题讨论】: