Fit Gaussian into symbolic expression
조회 수: 7 (최근 30일)
이전 댓글 표시
I have a symbolic expression which contains very complex terms. I wish to fit this expression into a Gaussian Distribution.
The fit function takes only arrays as arguments. So i tried to find the data points of my symbolic expression using subs, but is there a better way to fit the expression directly into a gaussian?
EDIT: Not only Gaussian but solution for any other fittype such as 'rat', 'poly', etc, is happily accepted.
댓글 수: 5
Walter Roberson
2018년 12월 21일
extract the model formula from the fit object and str2sym it. extract the parameter names and values and subs()
However in practice you might be able to just feval() the fit object at particular locations or plot the fit object .
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!