i have this two tables :
and i want to extract from them this table
i use this code :
for Q=1:length(querymdr) for k=2:length(text) if alltext{Q,1}==textmdr{k,1} alltext = [alltext{text(k),6}]; elseif alltext{Q,1}~=textmdr{k,1} alltext{Q+1,Q} = [text(k+1,:)] end
but it didn't work…
it gives me error : Index exceeds matrix dimensions.
Error in data2002New (line 51) alltext{Q+1,Q} = [text(k+1,:)]
any help please?
Best Answer