Error using zeros, Size inputs must be scalar
显示 更早的评论
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.

回答(1 个)
Walter Roberson
2015-9-4
0 个投票
num_train_data should be referring to the number of training samples you have, not to the content of the training samples.
4 个评论
Js Goh
2015-9-4
Walter Roberson
2015-9-4
num_train_data = size(reresult,1);
Walter Roberson
2015-9-4
类别
在 帮助中心 和 File Exchange 中查找有关 Descriptive Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!