how to set boundaries imshow

2 次查看(过去 30 天)
how to set boundaries imshow, how to set a position and outerposition?
for example, I want to stretch the image over the entire space, how do I do this?

采纳的回答

Image Analyst
Image Analyst 2022-11-7
You can set the .Position property of the axes to enlarge it so that it fills the entire figure window, or close to it.
ax = gca;
g = gcf;
ax.Units = 'normalized';
g.Units = 'normalized';
ax.Position = [0, 0, 1, 1];

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by