how Can I fit the multiple data sets by using the curve Fitting Tool in MATLAB?
31 views (last 30 days)
Chandra on 7 Apr 2022
Use the below example to fit a curve
%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.
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.