필터 지우기
필터 지우기

How to change axes values?

조회 수: 3 (최근 30일)
sam plant
sam plant 2018년 12월 11일
댓글: KSSV 2018년 12월 12일
I have plotted a matrix using the imagesc function with the x and y axis being the points of the matrix (1-50)
however the positions of the matrix are based on corresponding v0 (velocity) and theta (angle) values for a projectile.
How can i change the axis from matrix positions to corresponding v0 and theta values?
Is there a function for changing x and y axis values?

답변 (1개)

KSSV
KSSV 2018년 12월 11일
Read about pcolor. USe pcolor. Or else you may use image and specify the positions.
  댓글 수: 4
sam plant
sam plant 2018년 12월 11일
The problem I have with pcolor is the grid that appears, the example picture has used image sc as I have to specify a number of pixels, pcolor makes the image too blocky however the set(reverse) works on pcolor but doesn't work on imagesc.
KSSV
KSSV 2018년 12월 12일
X = rand(10) ;
imagesc(X)
set(gca,'YDir','normal')

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

카테고리

Help CenterFile Exchange에서 Graphics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by