Subscript indices must either be real positive integers or logicals.

1 次查看(过去 30 天)
How can i solve this error.

采纳的回答

James Tursa
James Tursa 2018-7-3
Use the debugger. Type this at the MATLAB command prompt:
dbstop if error
Then run your code. When the error occurs, the code will pause at the offending line with all variables intact. Examine the indexing variables to see what their values are, then backtrack in your code to figure out why they are not the integers you expect them to be.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by