How do I make a fitting function with the fitting coefficient for x-data?
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hi.
I am trying to fit the experimental data to the mastercurve we have.
I have set of "xdata". Let's say I have [0,1,2,3,4,5].
Then, the master curve is the function of xdata. Let's say master = (xdata)^2.
Here, I also have ydata that corresponds to the xdata from the experiment. My whole set of data are xdata = [0,1,2,3,4,5] ydata = [0,1,2,3,4,5]
Here, I want to have a fitting coefficient multiplied on "xdata" to fit the ydata into mastercurve.
Which means, I will have new plot of ydata vs C*xdata and mastercurve as a function of C*xdata.
I tried to write out a fitting function but confused about the setting since the input parameter is changing for both raw data set and mastercurve. (I tried to use lsqcurvefit but xdata is changing so I am confused.)
Can anyone help me on this? I also want to obtain a R-squared value out of it.
Thank you very much!
- Sean
댓글 수: 1
Walter Roberson
2015년 12월 22일
답변 (0개)
이 질문은 마감되었습니다.
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!