Plot error of results from a function "Subscript indices must either be real positive integers or logicals."
Mostrar comentarios más antiguos
I have build up a quite large main file, which uses a function to read some test data (and functions inside reading function to do some data processing).
When I in the main file try to plot the results i get from my reading function, Matlab returns the error message "Subscript indices must either be real positive integers or logicals."
I tried to debug it, by running through the reading function. The step before I return to the main file i make a plot of the data readed without any problems. When i take the next step and do a plot on the same data i get the error message.
I have also tried with renaming the output from the function to the same as in the function file, and used other names, but it didn't help.
Anyone there have an idea of why i can't plot the results in the main file?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Graphics Performance en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!