3D spectrum plot with massive data sets

17 views (last 30 days)
Yudong Li
Yudong Li on 21 Mar 2019
Commented: Star Strider on 22 Mar 2019
Hi, I'm new to the matlab, but I want to draw a plot like the attached picture with time, wavenumber and intensity as the three axis. Those data will be extracted from an excel file. What code/function should I use? Thank you so much.

Answers (1)

Star Strider
Star Strider on 21 Mar 2019
The spectrogram (link) function will likely do what you want.
  2 Comments
Yudong Li
Yudong Li on 22 Mar 2019
Edited: Yudong Li on 22 Mar 2019
Hi Star,
Thank you for your answer. I don't really need fourier transform, because the data I have in my excel file is already ready to be plotted, which includes intensity, wavelength of hundred spectrum in order of time. What I need to do is to extract data from the spreadsheet and plot all the spectrum in a 3d figure. In a word, I would like to write a code to extract data from spreadsheet and plot them in 3d. Please see the atttached figure for reference. Thank you!
Star Strider
Star Strider on 22 Mar 2019
My pleasure!
There are several options:
Surface plot: surf (link)
Line plot: plot3 (link)
Ribbon plot: ribbon (link)
One of these should do what you want. They all have links to other plot functions and to the individual plot properties, so the plot will have the appearance you want.
The view (link) function will also be helpful.

Sign in to comment.

Categories

Find more on Line Plots in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!