execution speed changes by sequence of running the code
Ältere Kommentare anzeigen
the question updated: the sequence of running different codes changes the run time.
--------------
initially it appeared to be due to difference in file name: any similar experience? changing the function name is changing the execution time (picture attached).

2 Kommentare
Steven Lord
am 4 Apr. 2017
What else was running on your machine when you ran HAPP_dry_KX3 that was not running when HAPP_dry_KX1 was running? Include Windows "phoning home" to look for updates, virus scanners scanning your machine, etc.
Had you run HAPP_dry_KX1 prior to capturing that picture, then run HAPP_dry_KX3 for the first time while generating that picture? If so, in a new MATLAB session try running HAPP_dry_KX3 multiple times then run HAPP_dry_KX1 for the first time.
hamed amini
am 4 Apr. 2017
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!