Plotting a mxn Matrix
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Haseeb Hashim
am 10 Aug. 2022
Kommentiert: Haseeb Hashim
am 10 Aug. 2022
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1093690/image.jpeg)
That how I got it
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1093705/image.jpeg)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Aug. 2022
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.)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Two y-axis 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!