How can I remove the grey borders from the IMSHOW plot in MATLAB 7.4 (R2007a) ?
8 ビュー (過去 30 日間)
古いコメントを表示
When I display an image using IMSHOW I get grey borders. For my application I want to remove the borders such that the figure window should only display the image.
採用された回答
MathWorks Support Team
2009 年 6 月 27 日
You can do this using the following set of commands:
imshow('board.tif')
This could be implemented as follows:
set(gca,'units','pixels') % set the axes units to pixels
x = get(gca,'position') % get the position of the axes
set(gcf,'units','pixels') % set the figure units to pixels
y = get(gcf,'position') % get the figure position
set(gcf,'position',[y(1) y(2) x(3) x(4)])% set the position of the figure to the length and width of the axes
set(gca,'units','normalized','position',[0 0 1 1]) % set the axes units to pixels
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!