阅读背景:

计算在Matlab中计算字符串数组中字符串出现的次数

来源:互联网 

I have two cell arrays of strings of varying lengths, d={'nerve','body','muscle','bone'} and e={'body','body','muscle'}. I have to compare these two arrays and count the occurrences of each string in e in d. The expected result should be a vector, count_string=(0,2,1,0). The following is the code I've written but I get the error:Cell contents assignment to a non-cell array object. I am a beginner in matlab programming. Any quick help on this is greatly appreciated.I have two cell arrays of strings of varying le




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: