Set limit for vertical or z dimension in surfl command
조회 수: 2 (최근 30일)
이전 댓글 표시
I am plotting my water depth in a physical domain over time with surfl(depth) where depth is a two d matrix. I want to fix vertical limits so that i can visualise the chnage of water level over time.
댓글 수: 0
답변 (2개)
DGM
2021년 6월 29일
If you're refreshing the plot in a loop and want the extents of the z-axis fixed, just do
zlim([lowerlimit upperlimit])
댓글 수: 2
DGM
2021년 6월 29일
If you're already plotting using surf() or surfl() or whatever, do that first, then use zlim() to set the axes limits.
The only other thing you would need to do is decide what limits to use. The obvious choice would be the min and max of the dataset.
Prakhar Rai
2021년 6월 29일
You could use zlim(limits) to set limit on z dimension.
Please refer : zlims
Also you could create time as a variable and it's variation will provide the results.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Exploration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!