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.
12 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
James Tursa
2018 年 9 月 28 日
編集済み: James Tursa
2018 年 9 月 28 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Operators and Elementary Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!