It is showing the error 'arrays indices must be positive integers or logical values'. The code and the pic of error attached with this question. thank you.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Gaurav Sharma
il 28 Set 2018
Modificato: James Tursa
il 28 Set 2018
kindly help me with this code. it is not showing any error in my system but also it is not showing any results. And, sometimes it shows error (pic of that image is attached).
0 Commenti
Risposta accettata
James Tursa
il 28 Set 2018
Modificato: James Tursa
il 28 Set 2018
For the error, you can debug by typing the following at the command line and running your code:
dbstop if error
When the error occurs, the program will pause at the offending line will all variables intact. You can then examine the variables to see why they are not what you expected. Maybe j is not a positive integer >= 2, or maybe you inadvertently created a variable with the name "abs" and v is not a positive integer. Etc.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Numeric Types in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!