Index exceeds the number of array elements. Index must not exceed 10000.

1 Ansicht (letzte 30 Tage)
How can I solve this issue ?

Akzeptierte Antwort

Torsten
Torsten am 29 Mär. 2023
My guess is that "Ytrain" has less than "len" elements.
To confirm this, add the lines
disp(len)
disp(size(Ytrain))
after the line
[wid,len] = size(Xtrain)
to your code and tell us what is displayed.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by