Error using zeros, Size inputs must be scalar
Mostrar comentarios más antiguos
train_data = zeros(num_train_data,1);
I get error on this line. I attached the screenshot of my num_train_data below.
PS Im new to matlab.

Respuestas (1)
Walter Roberson
el 4 de Sept. de 2015
0 votos
num_train_data should be referring to the number of training samples you have, not to the content of the training samples.
4 comentarios
Js Goh
el 4 de Sept. de 2015
Walter Roberson
el 4 de Sept. de 2015
num_train_data = size(reresult,1);
Walter Roberson
el 4 de Sept. de 2015
Categorías
Más información sobre Descriptive Statistics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!