Borrar filtros
Borrar filtros

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

4 visualizaciones (últimos 30 días)
How can I solve this issue ?

Respuesta aceptada

Torsten
Torsten el 29 de Mzo. de 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.

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by