You have a problem because you named your matrix train the same as the command you hope to invoke http://www.mathworks.com/help/nnet/ref/train.html .
Info
此问题已关闭。 请重新打开它进行编辑或回答。
error in matrix indexing
1 次查看(过去 30 天)
显示 更早的评论
train: matrix of 569 row and 32 column
x:matrix of 569 row of zeros &
y:matrix of 569 row of ones
now, what exactly this command did?
w=train(x,:)
w=train(y,:)
Note, this will give an error that indicate the subscript should be logical or postive
but in general
does the command w=train(x,:) calculate the size of x and then return the row of the resulted size?
0 个评论
回答(1 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!