How do I execute my loop at a relatively short time?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Get Started with MuPAD finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!