how to re-code this line of code to accelerate the program?

1 view (last 30 days)
ds=imv(xa:xa+ks-1,ya:ya+ks-1);
This line is code inside two layers of loops and by profile analysis, it costs a great portion of the total time. How to rewrite this line to accelerate? Thank you!

Answers (0)

Categories

Find more on Creating and Concatenating Matrices 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!