Thank you, replaced find()~=0 with nnz()>0. Still in need of a solution for an alternative to for loop or any solution for speed improvement .
plotting with for loops taking more than 2hours
4 views (last 30 days)
Show older comments
Attached code is taking more than two hour to run and produce the plots. Requesting to kindly suggest a solution to improve the speed and efficiency. Thanks in advance.
5 Comments
Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!