Fit Reference plot to data
2 views (last 30 days)
Show older comments
Hi,
I have data from the experiment and I want to fit my data to the Reference plot. I do not want to fit specific equation to my data. I want to get the percentage of my element by fitting data with the plot from Reference. I do not know how to do that. I would highly appreciate if you could help me. Thanks
6 Comments
John D'Errico
on 17 Nov 2017
@Elias - It is only annoying for people who have no idea how to use MATLAB. Why not learn how, and you might find it useful?
Elias Ghechi
on 17 Nov 2017
Well then you could have not closed my question, John. You could have helped me. Thanks though.
Answers (2)
Star Strider
on 17 Nov 2017
If you have the data that created the ‘Ti3+’ and ‘Ti4+’ curves, do a simple linear fit to each of those with your data at the same values of ‘Energy Loss’.
4 Comments
John D'Errico
on 17 Nov 2017
Edited: John D'Errico
on 17 Nov 2017
This seems to be a fairly classic calibration problem. Are the two curves sampled at the same values for EV? If so, then this is simple. If not, then you would need to use interpolation to bring them to the same locations.
Next, I assume that you just want to find the fractional coefficient, such that
T14 = f14*layer16
T13 = f13*layer16
I'll assume that each is stored as a vector.
f14 = layer16(:)\T14(:);
f13 = layer16(:)\T13(:);
That presumes there is no constant (vertical offset) term in the calibration.
Or, are you asking to find a model like this, perhaps something of the form:
layer16 = f14*T14 + f13*T13
It is unclear what you are asking to do.
See Also
Categories
Find more on Interpolation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!