Borrar filtros
Borrar filtros

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

6 visualizaciones (últimos 30 días)
University Glasgow
University Glasgow el 27 de Feb. de 2023
Comentada: University Glasgow el 6 de Mzo. de 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 comentarios
Walter Roberson
Walter Roberson el 28 de Feb. de 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 ?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by