rational curve fitting function?

조회 수: 22 (최근 30일)
Sierra Wang
Sierra Wang 2020년 2월 25일
댓글: Sierra Wang 2020년 2월 25일
I've been using the Matlab Curve Fitting Toolbox to do rational fittings of the form y = p1/(x+q1) and it's been working great. However, I'll be processing a large number of data sets and it will be very tedious and time-consuming to do the fitting for each set individually in the app and copy the result into the workspace. So I was wondering if there's any Matlab function that can do the similar rational fitting?
  댓글 수: 1
darova
darova 2020년 2월 25일
Can you show your data?

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

채택된 답변

Steven Lord
Steven Lord 2020년 2월 25일
If they're all using the same type of fit, you could try fitting once interactively then generating code from the app and running that generated code with your subsequent data sets. Or you could start off setting up your fitoptions and creating your own fittype then call fit with each data set and your fittype. See this documentation page for a worked example.
  댓글 수: 1
Sierra Wang
Sierra Wang 2020년 2월 25일
Thank you so much I didnt know the toolbox can generate code

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

추가 답변 (1개)

Stephan
Stephan 2020년 2월 25일
편집: Stephan 2020년 2월 25일

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by