フィルターのクリア

how Can I fit the multiple data sets by using the curve Fitting Tool in MATLAB?

11 ビュー (過去 30 日間)
Shahzad Ashraf
Shahzad Ashraf 2022 年 4 月 4 日
回答済み: Chandra 2022 年 4 月 7 日
I have been searching, and can't find out how to fit a curve to multiple data sets.

回答 (1 件)

Chandra
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.
Refer curve fitting and fit in matlab

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by