coordinates from a fitted curve

3 views (last 30 days)
S  P-W
S P-W on 6 Nov 2019
Commented: Star Strider on 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 Comments
darova
darova on 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 on 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

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 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 Comments
S  P-W
S P-W on 6 Nov 2019
big like!
thanks a bindle.
Star Strider
Star Strider on 6 Nov 2019
As always, my pleasure!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!