File Exchange Pick of the Week

March 5th, 2010

UISETSCREENPIXELSPERINCH

Bob's pick this week is UISETSCREENPIXELSPERINCH by Varun Gandhi.

My display resolution setting is 96 dots per inch (DPI) but how accurate is my screen? Varun's submission made short work (fun really) of finding out.

I just laid a ruler on my screen. It didn't quite fit the tick marks. I had to reduce from 96 to 94 dpi. Pretty cool!

Is accuracy of display resolution important to you? Please tell us about it here.


Get the MATLAB code

Published with MATLAB® 7.11

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks

Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

These postings are the author's and don't necessarily represent the opinions of The MathWorks.