How do I display the Raman Spectra?

조회 수: 9 (최근 30일)
hithere
hithere 2014년 10월 9일
답변: Image Analyst 2022년 3월 8일
New to MATlab. I have 2 .mat files from my teaching assistant. They are supposedly raman spectra and wavenumber. How do i display them to visualize the spectrum?
I suppose wavenumber is the x-axis and the ref_raw is the y-axis for intensity?
How do i plot such scenario?
  댓글 수: 2
Guillermo Ramirez
Guillermo Ramirez 2017년 4월 18일
hello, sry im not sure about your question,are you trying to use plot(x,y)?, on x axis the wave number, and the y axis the intensity.
Image Analyst
Image Analyst 2017년 4월 18일
The rows are probably the depths, and the z value is the signal. So you could do
val = squeeze(val); % Get rid of middle dimension
for depth = 1 : size(val, 2)
thisSpectrum = val(depth, :); % Get spectrum for this depth
plot(wavenumber, thisSpectrum, '-', 'LineWidth', 2);
hold on;
end
grid on;
xlabel('Wavenumber', 'FontSize', 20);
ylabel('Intensity', 'FontSize', 20);
title('Raman Spectra at Different Depths', 'FontSize', 20);

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

답변 (2개)

Image Analyst
Image Analyst 2014년 10월 9일
Did you try load() and then plot()? Or ask your TA?

Image Analyst
Image Analyst 2022년 3월 8일
Try the attached.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by