how Can I fit the multiple data sets by using the curve Fitting Tool in MATLAB?
조회 수: 12 (최근 30일)
이전 댓글 표시
I have been searching, and can't find out how to fit a curve to multiple data sets.
댓글 수: 0
답변 (1개)
Chandra
2022년 4월 7일
Hi,
Use the below example to fit a curve
>>load hahn1
%Create a fit using the fit function,
% specifying the variables and a model type (in this case rat23 is the model type).
>>f = fit(temp,thermex,"rat23")
%Plot your fit and the data.
>>plot(f,temp,thermex)
>>f(600)
For single graph add values to x axis and y axis, for multiple graphs use for loop
For using multiple dataset with same polynomial or different polynomial, either by appending all values to x and y or use different "fit" and plot on single graph using "hold on" matlab function.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!