how to plot different curves on a same graphic with a third axis

16 views (last 30 days)
Hello everyone =),
Here is my problem: i have several FFT curves, all from 0 to 1200Hz calculated from experiment recorded datas. For the moment, there is 8 of this curves corresponding to 8 different rotational speeds (0,05Hz, 0,08Hz, 0,2Hz, 0,4Hz, 0,83Hz, 2Hz, 4Hz, 8Hz). I have ploted all the FFT on the same (2D) graphic but it is not really readable. So i would like to add a third axis corresponding on the rotationnal speeds. All the FFT curves would be then placed in parallel following graduations of the third freshly added axis. I must precise that the curves datas have not the same length despite the same frequency range.
Is it possible? and how?
Thanks a lot in advance for the help

Answers (2)

Ninja
Ninja on 21 Mar 2018
Ok, i have managed to do it using plot3 function, but before, i needed to create a new vectors full of the rotational speed value whose the length is equal to the FFT data vector. The FFT curves are then superimposed on same 3D plot using a loop.

Ninja
Ninja on 21 Mar 2018
One little question about it: my data curves, despite the limit I set for each axes, go over the axis (as shown on the picture), do you know how to correct it?
Thank you

Tags

Community Treasure Hunt

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

Start Hunting!