How do I convert units?

I have a raman spectrum that look like this:
The x-axis is in wavenumber. How do I convert it to wavelength.
The wavenumber and wavelength relation is govern by:
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:

回答 (1 件)

Orion
Orion 2014 年 10 月 15 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangeGraphics についてさらに検索

質問済み:

2014 年 10 月 15 日

回答済み:

2014 年 10 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by