필터 지우기
필터 지우기

what is your idea to solve this?

조회 수: 2 (최근 30일)
Amr Hashem
Amr Hashem 2015년 5월 15일
답변: Fiction 2015년 5월 15일
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?

채택된 답변

Fiction
Fiction 2015년 5월 15일
I think you should use curly brackets '{ }' to refer to the content of the cell. Like in text{....}; if you use () like in text(k+1,:) you will get all the cells in that row. Does that helps?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by