Adding elements to an array in matlab

1

I basically need inside a for, add elements to an array or list (I do not know if it has the language) and then split the values by the number of interactions. Very simple, if it was in any other language, but since I have little or no knowledge in MATLAB, it is very complex.

So far I've done it this way:

maxInteracao = 10;
for index = 1 : maxInteracao
//stuff

erroClassifTeste = 100 * (classificacoesErradas/numTeste);
arrayErro := [] : append(erroClassifTeste);
end
    
asked by anonymous 25.11.2015 / 01:50

1 answer

1

Follows:

maxInteracao = 10;
for index = 1 : maxInteracao
//stuff

erroClassifTeste = 100 * (classificacoesErradas/numTeste);
arrayErro [i] = erroClassifTeste;
end
    
20.04.2016 / 01:20