问题
In order to find the pixel width, how can I do that in matlab
?
EDIT I need the width in say for example mm
Thanks.
回答1:
Try using the ScreenPixelsPerInch property of the root object.
pixelsPerInch = get(0, 'ScreenPixelsPerInch');
mmPerInch = 25.4;
mmPerPixel = mmPerInch / pixelsPerInch;
来源:https://stackoverflow.com/questions/13448615/finding-pixel-width-in-matlab