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

조회 수: 3 (최근 30일)
Florian
Florian 2014년 4월 16일
편집: Florian 2014년 4월 23일
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

채택된 답변

Image Analyst
Image Analyst 2014년 4월 23일
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
Florian
Florian 2014년 4월 23일
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

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2014년 4월 16일
Perhaps surf() would be appropriate
  댓글 수: 5
Image Analyst
Image Analyst 2014년 4월 23일
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 2014년 4월 23일
I'd like to display save by the way ... Considering that I've changed its name

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by