How do I convert units?
조회 수: 5 (최근 30일)
이전 댓글 표시
I have a raman spectrum that look like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145727/image.jpeg)
The x-axis is in wavenumber. How do I convert it to wavelength.
The wavenumber and wavelength relation is govern by:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145728/image.jpeg)
w = the wavenumber
λ0 = excitation wavelength, which is 785nm in this case
λ1 = the Raman spectrum wavelength, which i want to obtain in this case
The wavenumber are:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145729/image.jpeg)
댓글 수: 0
답변 (1개)
Orion
2014년 10월 15일
when you do your plot, instead of plotting all your y data against wavenumber, just plot against wavelength
plot(wavenumber,[y1,..,yn]) -> plot(wavelength,[y1,..,yn])
Or if you want to change the figure already created, you need to modify the Xdata property of all your plot with a command looking like
set(findall(gca,'Type','line'),'Xdata',wavelength)
where wavelength is the new vector you just calculated, which has the same size as wavenumber.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!