MATLAB: Como posso usar um valor de variável em outro nome de variável?
Eu estou querendo saber se isso é possível. Meu código fica assim:
indexStop = find(firstinSeq(x,4) ~= ...
littledataPassed(y:length(littledataPassed),4), 1, 'first');
for z= 0:(n-1)
indexProcess = find((littledataPassed(y:y+indexStop-1,6) == 1 & ...
littledataPassed(y:y+indexStop-1,2) == firstinSeq(x,2) & ...
littledataPassed(y:y+indexStop-1,5) == z), 1, 'first');
if isempty(indexProcess)
msgLength[n](countmsgLength[n],:)= [firstinSeq(x,:) [0 0 0 0 0 0]];
else
msgLength[n](countmsgLength[n],:)= [firstinSeq(x,:) ...
littledataPassed(y+indexProcess-1,:)];
end
countmsgLength[n]= countmsgLength[n] + 1;
end
Espero ter em todos os lugares que lê[n]
ser alterado para o valor real den
, para que eu pudesse usar isso para adicionar dados a nove variáveis diferentes no formatomsgLength#
. Eu tentei pesquisar tutoriais e o que não, mas não vi nada sobre o assunto.