Is it possible to pan an imagesc output programmatically in a manner analogous to the zoom function?
조회 수: 1 (최근 30일)
이전 댓글 표시
I can programmatically zoom in or out of an image created with imagesc very simply, using code such as this:
imagesc(myImage)
zoomFactor = 1.5;
zoom(zoomFactor);
I would like to be able to pan horizontally and vertically in similar fashion, i.e by using code and not involving the GUI. The motivation is to be able to execute exactly repeatable pans.
댓글 수: 0
채택된 답변
Rik
2023년 4월 5일
You can set the XLim and YLim properties (of the axes object). That should replicate a repeatable pan.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!