필터 지우기
필터 지우기

Isotherms Plot for a waterbody

조회 수: 3 (최근 30일)
Marmar
Marmar 2018년 10월 20일
답변: Star Strider 2018년 10월 20일
Hi I need to show the temperature evolution of a lake in different depths through time. I have a matrix (Z) with dimensions: 1000x20 (temperatures observations x in different depths) so I have temperature data for 20 depths (with different intervals) for 1000 day and I want a graph like attached. I am sure I have a to use contourf, but I don't know how to use it for my case. Can anyone help me?
  댓글 수: 1
jonas
jonas 2018년 10월 20일
You already posted this question 2 (?) times.

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

답변 (1개)

Star Strider
Star Strider 2018년 10월 20일
I do not know what your data are, so I can only guess.
I would use the surf (link) funciton to do the plot, then the appropriate view (link) to orient the plot correctly.
Example
[X,Y] = ndgrid(0:0.1:20); % Create Data
Z = sin(pi*X/20) .* exp(-Y*0.2); % Create Data
figure
hs = surf(X, Y, Z);
set(hs, 'EdgeColor','none')
view(180, 90)

카테고리

Help CenterFile Exchange에서 Vector Fields에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by