belows came from the results from codes in editor page;
txt1 =
'p4004' [4005] [4007] [4009] [4015] [4020] [4031] [4037] [4041] [4151]
%txt1 10×1 1202 cell global
cc =
'p4004' [4009] [4005] [4007]
%cc 4×1 482 cell global
% I need to use ismember or getname function for searching cc rows into txt1 rows like; [row,col] = ismember(txt1,cc) but it works same data type. Is there any solution I can apply or is there any way to transform txt1 and cc matrixes like that;
txt1=[{'p4004'},{'4005'},{'4007'},{'4009'},{'4015'},{'4020'},{'4031'},{'4037'},{'4041'},{'4151'}];txt1=txt1(:);cc=[{'p4004'},{'4009'},{'4005'},{'4007'}];cc=cc(:);
%in here, ismember function(ismember(txt1,cc)) works properly.
Best Answer