如何判断两个单元数组cell相等?。

如题:
使用命令:cell==cell2 和 eq(cell1,cell2)
这两句,都不能实现,希望高手指点。

 Réponse acceptée

mougin
mougin le 14 Mai 2023

0 votes

有两个cell型的数组想实现如下程序:
for i=1:16906
for j=2:229
for x=2:251
if a(i,1)==b(1,j)&&a(i,2)==b(x,1)
b(x,j)=[];
end
end
end
end
但是出错“没有使cell数据相等的eq函数”请高手指点!谢谢

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB 快速入门 dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!