How to pcolor and convert a matrix 4D to 2D?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello
I have a temperature matrix with the structure of longitude,latitude,depth,values of temperature. But I want select just onde depth level and plot an image 2-D, with longitude(x axis), latitude(y axis) and values of temperature.
Example of image:
:
댓글 수: 0
채택된 답변
Walter Roberson
2019년 5월 20일
slice() is the easiest way, but you can just index and squeeze() and pcolor if the depth is one of the levels exactly matching a slice.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!