how to I compare strcmp and find cell array
12 次查看(过去 30 天)
显示 更早的评论
I want to pass the info from gender label in videonames_dev {i} to genderlabels_dev (i) with strcmp but it gives an error
1 个评论
Jan
2017-12-17
Please post the complete error message. This is just the part, which mentions where the problem occurs, but it is useful to see, what the problem is also.
Prefer to post text by copy&paste, not as screenshot. With having text, the members of the forum can use it by copy&paste also and do not need to type your code again for posting an answer.
回答(1 个)
Jan
2017-12-17
You did not show the full error message yet, but most likely the 2nd input genderannoall is neither a cell string or char vector. I assume, that the error message tells this already. Then use the debugger to check, what this variable is.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!