Calculating and plotting FWHM
3 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone. I've this code to calculate the FWHM.
x=eVcIpicco;
y=ckxfitIpicco;
maxy=max(y);
f=find(y==maxy);
cp=x(f);
y1=y./maxy;
ydatawr(:,1)=y1;
ydatawr(:,2)=x;
newFit1=find(x>=cp);
newFit2=find(x<cp);
ydatawr2=ydatawr(min(newFit1):max(newFit1),:);
ydatawr3=ydatawr(min(newFit2):max(newFit2),:);
sp1=spline(ydatawr2(:,1),ydatawr2(:,2),0.5);
sp2=spline(ydatawr3(:,1),ydatawr3(:,2),0.5);
sigma_graf=sp1-sp2;
Does someone know how to also plot the FWHM?
I wanna get somthing like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172025/image.jpeg)
Thank you
0 件のコメント
回答 (1 件)
Fc Fc
2018 年 4 月 14 日
3 件のコメント
Walter Roberson
2018 年 4 月 14 日
Is the question about finding the FWHM or is it about plotting it once found?
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!