How to fix this error? : Error:Index exceeds the number of array elements. Index must not exceed 4.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
mohammad
el 9 de Abr. de 2024
Editada: Fangjun Jiang
el 9 de Abr. de 2024
How to fix this error?
Error:Index exceeds the number of array elements. Index must not exceed 4.
I would like to review the simulation of this article :
A new series-connected 36-pulse rectifier with hybrid DC-reinjection method for high power output
2 comentarios
Respuesta aceptada
Fangjun Jiang
el 9 de Abr. de 2024
All the Winding parameters need to have 5 elements (including both the left and right side). You have only 4.
2 comentarios
Fangjun Jiang
el 9 de Abr. de 2024
Editada: Fangjun Jiang
el 9 de Abr. de 2024
Here is what I found out.
The parameter value needs to have 5 elements. Only 4 elements are provided, which caused the error message but it didn't tell where the error happened. So it is hard to figure it out.
If 6 elements are provided, suprisingly the error didn't happen.
So here is what it really happened (my educated guess).
There is an internal index varying from 1 to 5 to get the parameter value. When only 4 elements are provided, it will cause the "Error:Index exceeds the number of array elements. Index must not exceed 4".
The error message makes sense but it didn't really help the user. To me, it gives the impression that more elements are provided, but indeed, less elements are provided.
Más respuestas (0)
Ver también
Categorías
Más información sobre Specialized Power Systems en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!