How to solve: Index of element to remove exceeds matrix dimensions error
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
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
Respuestas (1)
James Tursa
el 5 de Mayo de 2015
0 votos
I don't see mle_exp created anywhere in your code prior to the line that indexes into it.
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!