Fit Reference plot to data

2 views (last 30 days)
Zahra Shaf
Zahra Shaf on 17 Nov 2017
Commented: Elias Ghechi on 17 Nov 2017
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
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
Elias Ghechi on 17 Nov 2017
Well then you could have not closed my question, John. You could have helped me. Thanks though.

Sign in to comment.

Answers (2)

Star Strider
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
Zahra Shaf
Zahra Shaf on 17 Nov 2017
Edited: Zahra Shaf on 17 Nov 2017
Thank you for your time and help. Thank you very much for Edit and paper.

Sign in to comment.


John D'Errico
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.
  1 Comment
Zahra Shaf
Zahra Shaf on 17 Nov 2017
Edited: Zahra Shaf on 17 Nov 2017
Hi, Thank you for your response. I do not have same X values but I have to make them the same. I want to compare Y values of my data with Y values of Reference plots Ti3+ and Ti4+. I think I have to do
(Y of Ti3+)*a + (1-a)* Y of Ti4+
and then match this with Y values of my own data to obtain a.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!