Curve Fitting for multiple plots in single graphs
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yashvardhan Bhati
am 12 Mai 2022
Kommentiert: Yashvardhan Bhati
am 13 Mai 2022
plot(XCS1,VYS1,'>','MarkerIndices',1:1:100,"LineWidth",2,"Color","Red","MarkerFaceColor","white");
hold on;
plot(XCS2,VYS2,'s','MarkerIndices',1:1:100,"LineWidth",2,"MarkerFaceColor","white");
hold on;
As a part of code shown above i have to exract data from various files and plot it on one graph. Now this graph has multiple data points correspoing to x and y corrdinates. I want to do curvefitting over all the data point. How do proceed with it.
cftool allows me to fit curve for the single x and y values but i have multiple x's and y's coming from different files.
And after plotting basic curve fitting allows only over single data set i.e. fitting curve for D9 or D10 and not as entire plot.
I have attached image of graph below. for reference.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/995860/image.jpeg)
What i would like to have my graphs look like is shown below the Black line shows the fitted curve.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/995865/image.jpeg)
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!