How to change axes values?

2 次查看(过去 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 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by