How do I display the Raman Spectra?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Guillermo Ramirez
am 18 Apr. 2017
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
am 18 Apr. 2017
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);
Antworten (2)
Siehe auch
Kategorien
Mehr zu Assembly finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!