Filter löschen
Filter löschen

Why does my script takes longer time to execute than expected?

8 Ansichten (letzte 30 Tage)
University Glasgow
University Glasgow am 27 Feb. 2023
Hi, I tried to run my matlab script. In the attached file: MBBA5CBPAA_Result.m, I tried to run only the second section:Active dissipation. The computation is supposed to take 11 hours 36 minutes but is still running even after 12 hours. Please is there any way to speed up the running time. The Non_linear1_differentu_MBBA_func1.m and dissipative_elastic_energy_MBBA_fun.m are subroutines (functions), while the MBBA5CBPAA_Result.m is where the run the code.
Your assistance is highly appreciated. Thank you.
  14 Kommentare
Walter Roberson
Walter Roberson am 28 Feb. 2023
1.06 * 60 / (11*11)
ans = 0.5256
26.7 * 60 / (51*51)
ans = 0.6159
so it is a little slower per iteration as you increase the mesh size, but not greatly so. 20%-ish ?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by