coordinates from a fitted curve

3 vues (au cours des 30 derniers jours)
S  P-W
S P-W le 6 Nov 2019
Commenté : Star Strider le 6 Nov 2019
Hi,
I have some data, I want to just connect the data together. I used "linearinterp". now, I would like to have the data from the fitted curve. I mean, my data are discrete, by "linearinter" I made a continuous curve wich fills the gaps between my data. now I want to read the coordinates of the new graph, even those which are not presented as my data.
Could anyone help me please?
Thanks
  2 commentaires
darova
darova le 6 Nov 2019
Can you attach the data? Show your attempts/efforts?
Show the result picture (schematically) you want to see
S  P-W
S P-W le 6 Nov 2019
here is part of my data.
I want to have FWHM of these data. I know the coordinate of the Max amount: Ymax and its corresponding X.
Then I calculated the "half maximum". now I need to know the X coordinate for Y_halfmaximum on both sides of the plotted data/curve. but the point is that my data are not basically continous, so it is not granted if I have the point with the coordinate of (x, Y_halfmaximum) on each side, so I cannot then calculate delX as FWHM. I tougth maybe if I can fit a curve or simply just connect the data point together, can have the continuous data. but the point is even just by connecting the data I dont have what I need.
can you help please.
Thanks

Connectez-vous pour commenter.

Réponse acceptée

Star Strider
Star Strider le 6 Nov 2019
The "linearinterp" function appears to be an R function.
Use interp1 in MATLAB. Since you have to define the independent variable interpolation points as an input argument, you will have those and the interpolated points as the output from interp1.
  5 commentaires
S  P-W
S P-W le 6 Nov 2019
big like!
thanks a bindle.
Star Strider
Star Strider le 6 Nov 2019
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by