필터 지우기
필터 지우기

About Using the MATLAB built-in function in fitting process

조회 수: 3 (최근 30일)
Amr Sadek
Amr Sadek 2015년 12월 20일
댓글: Amr Sadek 2015년 12월 21일
Hello, I'm using custom equations in fitting my data. The problem is that these equations contain one or more MATLAB built-in functions (e.g., expint, lambertw,..) and it takes so long (about 20 minutes) to converge. Is there any way so that I can decrease the accuracy of these built-in functions so that the convergence become faster? Or any idea to accelerate the fitting process?
Thanks.

답변 (1개)

Walter Roberson
Walter Roberson 2015년 12월 20일
expint() is available both numerically and in the Symbolic Toolbox. lambertw is available only in the symbolic toolbox, but a numeric version of it is available in the File Exchange
If you need to use the symbolic toolbox then you can decrease computation time by setting Digits to lower.
  댓글 수: 7
Walter Roberson
Walter Roberson 2015년 12월 21일
What does
which -all lambertw
say?
Amr Sadek
Amr Sadek 2015년 12월 21일
which -all lambertw
D:\...\MATLAB 2014a\toolbox\symbolic\symbolic\@single\lambertw.m % single method
D:\...\MATLAB 2014a\toolbox\symbolic\symbolic\@double\lambertw.m % double method
D:\...\MATLAB 2014a\toolbox\symbolic\symbolic\@sym\lambertw.m % sym method

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

Community Treasure Hunt

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

Start Hunting!

Translated by