coordinates from a fitted curve

조회 수: 3 (최근 30일)
S  P-W
S P-W 2019년 11월 6일
댓글: Star Strider 2019년 11월 6일
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
darova
darova 2019년 11월 6일
Can you attach the data? Show your attempts/efforts?
Show the result picture (schematically) you want to see
S  P-W
S P-W 2019년 11월 6일
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

댓글을 달려면 로그인하십시오.

채택된 답변

Star Strider
Star Strider 2019년 11월 6일
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
S  P-W
S P-W 2019년 11월 6일
big like!
thanks a bindle.
Star Strider
Star Strider 2019년 11월 6일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Estimation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by