Plotting 3D graph

14 vues (au cours des 30 derniers jours)
mosa mm
mosa mm le 24 Avr 2016
Commenté : N/A le 15 Oct 2018
Hello everyone,
How can I plot a 3D graph for power and frequency vs. time (z,y,x)?
Thanks

Réponse acceptée

Star Strider
Star Strider le 24 Avr 2016
See if any of the File Exchange contributions in a 3D area plot search do what you want. See specifically AREA3 (that was last updated 12 years ago, so may only work in MATLAB versions 2014a and earlier).
Otherwise, the best I can suggest to you is the ribbon plot.
  3 commentaires
Star Strider
Star Strider le 25 Avr 2016
My pleasure.
N/A
N/A le 15 Oct 2018
Have you solved this problem? I want to draw this figure like you. Could you share your result with me?

Connectez-vous pour commenter.

Plus de réponses (2)

Azzi Abdelmalek
Azzi Abdelmalek le 24 Avr 2016
  3 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 24 Avr 2016
Look at this example
t=linspace(0.1,2,20)
freq=linspace(0,20000,20)
[x,y]=meshgrid(t,freq)
z=sin(x).^2+cos(y).^2 %your power vector
surf(x,y,z)
mosa mm
mosa mm le 24 Avr 2016
Thanks Azzi, you are very helpful. But the 3D plot that I am looking for to see is attached here (Plot3d.png). It shows that on each time sample there is a separate graph, I don't know even if it's possible in Matlab or not? Thanks anyway

Connectez-vous pour commenter.


Image Analyst
Image Analyst le 24 Avr 2016
I think that might best be done with waterfall().
  1 commentaire
mosa mm
mosa mm le 25 Avr 2016
Thanks

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by