Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

error in matrix indexing

2 vues (au cours des 30 derniers jours)
Mohamed Ahmed
Mohamed Ahmed le 2 Août 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
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?

Réponses (1)

Walter Roberson
Walter Roberson le 3 Août 2016
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 .

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by