Accessing cell array : {}-for getting array, () - for elem of this array
=============================================
carray{i}carray{i}(elemIndex)
example : access cell array and string compare
================================
for i=1:totSample % ID
for j=1:totRepeat
a =( promoter_ID{1}(i) ) ; % check the first column cell array
b = ( promoter_repeat{1}(j) ); % check the first column cell array
if strcmp(a,b) % yes it overlaps with some repeat
display('yes')
else
display('no')
end
end
end
Comments
Post a Comment