Info

この質問は閉じられています。 編集または回答するには再度開いてください。

error in matrix indexing

4 ビュー (過去 30 日間)
Mohamed Ahmed
Mohamed Ahmed 2016 年 8 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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?

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 8 月 3 日
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 .

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by