How to set x axis in a plot?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, I would like to know if is possible to set the X- axis like the plot that I loaded. I make the x-axis in pain just as an example of what I would like to do. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/815659/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/815659/image.png)
0 commentaires
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 28 Nov 2021
rgbImage = imread('peppers.png');
imshow(flipud(rgbImage), 'XData', 1:8, 'YData', 14:22);
axis('on', 'xy')
0 commentaires
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!