How to draw evolution of concentration in 2D [solved]

3 Ansichten (letzte 30 Tage)
Florian
Florian am 16 Apr. 2014
Bearbeitet: Florian am 23 Apr. 2014
Hi all,
I have coded a small program in order to compute the evolution of concentration of a plume of smoke and would like to plot/shade it as follow (I did it with Ferret but would like to know how to do it with Matlab) :
My matrix is defined along x & z axis with concentration(x,z) defined as a sinusoidal function
Thanks for all,
Florian

Akzeptierte Antwort

Image Analyst
Image Analyst am 23 Apr. 2014
Why not make save be a 3D array instead of a cell array? Why not just use imshow() or image() to display each 2D image of "save" right after you created it.
  1 Kommentar
Florian
Florian am 23 Apr. 2014
That's it ! imshow() is the function I was looking for (with some more parameters to add) Thank you so much for your help Best Florian

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 16 Apr. 2014
Perhaps surf() would be appropriate
  5 Kommentare
Image Analyst
Image Analyst am 23 Apr. 2014
What is the thing you want to display/plot? qqq? save? qancien?
By the way, DON'T USE save AS THE NAME OF A VARIABLE. That is the name of a very important function, and you just destroyed it (not permanently, just in this m-file).
Florian
Florian am 23 Apr. 2014
I'd like to display save by the way ... Considering that I've changed its name

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots 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!

Translated by