Plotting two data sets using the Curve Fitting Tool
古いコメントを表示
Hi,
I was wondering is it possible two fit two different data sets in the same plot? The data sets are scatter plots and I have fitted a 4th polynomial through both sets seen attached. I would like to combine the two plots into one. Is there anyway to do so? I tried using the hold function but it did not work.

2 件のコメント
No can do. It lets you compare fits of different types for a given data set to help in model selection for the one set, but doesn't have the facility to do multiple datasets at the same time.
Just use the command line tools...if you wanted, you could save the desired fits from the tool (remember to save with names so can recognize which is which) and then just evaluate the fits for the final plot.
I'd look carefully at the statistics for the coefficients, though -- a 4th order to those data would make me suspicious are overfitting.
Elliza Feisol
2020 年 8 月 22 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Interpolation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


