필터 지우기
필터 지우기

Plotting a mxn Matrix

조회 수: 4 (최근 30일)
Haseeb Hashim
Haseeb Hashim 2022년 8월 10일
댓글: Haseeb Hashim 2022년 8월 10일
Hi ! Everyone. I wanted to ask a simple question here that If I have to plot a matrix containing m rows and n columns and say that it contains the temperature distribution of any shape. i wanted to as that which is the best method to display such type of distributions. I use imagesc mot of the time. Any better way to do that.
Separate Question
Also lets say that the shape is irregualar like U-shaped Conductor now I have made all the temperature code in the U shaped area with the reduntant square area in between. How to show this efficiently. Figure below
That how I got it

채택된 답변

Walter Roberson
Walter Roberson 2022년 8월 10일
What you show is okay.
As you are using imagesc() you might want to pass in an 'AlphaData' option with a double precision matrix that is 0 inside the open area (no data) and 1 in the U (data). AlphaData 0 indicates that the area is to be transparent, showing through whatever is underneath (such as the background of the axes.)
  댓글 수: 1
Haseeb Hashim
Haseeb Hashim 2022년 8월 10일
thanks a lot Mr. Roberson

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Two y-axis에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by