Filter löschen
Filter löschen

How do I plot this to display a spectrum?

1 Ansicht (letzte 30 Tage)
hithere
hithere am 11 Okt. 2014
Kommentiert: Rick Rosson am 11 Okt. 2014
I want to plot the intensity against wavenumber.
This is the intensity i believe:
But i dont understand what's val(:,:,1) this runs till val(:,:,729)
and this is the wavenumber:
and it runs from 1 to 729
i tried to plot x = wavenumber and y = ref_Raw and plot (x,y)
however it was reflected
??? Error using ==> plot Data may not have more than 2 dimensions
do need help with this!
thanks

Akzeptierte Antwort

Rick Rosson
Rick Rosson am 11 Okt. 2014
x = wavenumber;
y = transpose(squeeze(ref_raw));
plot(x,y);

Weitere Antworten (1)

hithere
hithere am 11 Okt. 2014
Thanks alot!
But may I roughly know i would need to transpose. and whats the purpose of squeeze command?
thanks!
  3 Kommentare
hithere
hithere am 11 Okt. 2014
Thanks mate! Sorry for the trouble, im still learning.
Thanks alot!
Rick Rosson
Rick Rosson am 11 Okt. 2014
No need to apologize. We are all still learning. When we stop learning, then it's time to throw in the towel!

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by