How do I execute my loop at a relatively short time?
Show older comments
It is taking like forever (over 6 hours) to execute a loop. The size of my variables are;
Z = 2041211 element
Distance = 2021x2021 double
for duidx = 1:Z
Summation_Residual_Squared(duidx) = sum(Residual_Squared(Distance_Unique(duidx)==Distance));
Semivariance(duidx) = Summation_Residual_Squared(duidx)/(2*sum(Distance(:)== Distance_Unique(duidx)));
end
Am I working with large files such that the execution time I'm obtaining is normal or is there something i'm missing.
Thanks.
Darl.
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MuPAD 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!