Azzera filtri
Azzera filtri

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

6 visualizzazioni (ultimi 30 giorni)
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 Commenti
Walter Roberson
Walter Roberson il 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 ?

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Programming in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by