필터 지우기
필터 지우기

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

조회 수: 6 (최근 30일)
University Glasgow
University Glasgow 2023년 2월 27일
댓글: University Glasgow 2023년 3월 6일
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
Walter Roberson
Walter Roberson 2023년 2월 28일
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 ?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by