필터 지우기
필터 지우기

2D heat diffusion with convection boundary conditions

조회 수: 1 (최근 30일)
Michael Omodara
Michael Omodara 2020년 5월 8일
댓글: Roya Rajabi 2020년 12월 16일
The is a follow up to my earlier question on heat transfer in a box of grain.
I observed that the plot from [C,h]= contourf(xx(:,:,g),yy(:,:,g),Tt(:,:,g)); interchanged the bottom side with the left side and the topside with the right. It seems that is the default setting for this command.
However, when I used contourf(x,y,T(:,:,g)) instead, the plot come out right but without contour labels.
I want a contour plot with lables.
What can I do to resolve this problem. I have spent weeks on the issue without success.
  댓글 수: 2
darova
darova 2020년 5월 9일
Please attahc example code. Show the picture
Roya Rajabi
Roya Rajabi 2020년 12월 16일
Use Transpose int he contour if you do not use meshgrid for gridding the domain.
and for label and having numbers on the lines use below:
contourf(x,y,(u)','ShowText','on')
ylabel('Y')
xlabel('X')

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Thermal Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by