How to solve: Index of element to remove exceeds matrix dimensions error
Info
This question is closed. Reopen it to edit or answer.
Show older comments
This is my code:
>> fid=fopen('HG-U133_Plus_2_annotation.txt', 'r')
fid =
4
>> ftext=textscan(fid, '%q%q%q%q');
>> fclose(fid);
>> AffyID=ftext{1};
>> GeneID=ftext{2};
>> EntID=ftext{3};
>> genesymbols=cell(probeData.NumProbeSets, 1);
>> EntrezID=cell(probeData.NumProbeSets, 1);
>> for i=1: probeData.NumProbeSets
idx=strcmp(probeData.ProbeSetIDs{i}, AffyID);
genesymbols{i}=GeneID{idx};
EntrezID{i}=EntID{idx};
end
>> house=strmatch('AFFX',probeData.ProbeSetIDs);
>> genesymbols(house)=[];
>> EntrezID(house)=[];
>> mle_exp(house,:)=[];
as soon as I enter 'mle_exp(house,:)=[];' I receive the error:
Index of element to remove exceeds matrix dimensions.
Many thanks for your help,
Amy
Answers (1)
James Tursa
on 5 May 2015
0 votes
I don't see mle_exp created anywhere in your code prior to the line that indexes into it.
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!