# Screen Resolutions

**URL:** <https://psychtoolbox.discourse.group/t/screen-resolutions/1753>\
**Category:** Uncategorized\
**Created:** [January 10, 2007, 5:12pm UTC](https://psychtoolbox.discourse.group/t/screen-resolutions/1753 "2007-01-10T17:12:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![agreenb1](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@agreenb1](https://psychtoolbox.discourse.group/u/agreenb1)\
**Post date:** [January 10, 2007, 5:12pm UTC](https://psychtoolbox.discourse.group/t/screen-resolutions/1753/1 "2007-01-10T17:12:09Z")

</div>

I know I must be missing something very obvious here, but I can't find the answer in any   
help files or on the forum. I'm transitioning from OS-9 to OS-X (using the MATLAB Intel   
Beta on a new MacBook Pro).  
  
In OS-9 there used to be the following Screen function:  
  
Screen(0,'Resolutions')  
  
I would use this to get a list of all possible screen resolutions for the available monitor(s)   
and then I'd use the following command to implement a resolution switch to something   
appropriate and 'safe':  
  
Screen(0,'Resolution',res)  
  
What would the equivalent commands be in PTB-3?  
  
I'm aware of [w,h]=Screen('WindowSize',0) which will get the current size  
and hz=Screen('NominalFrameRate',0) which will set the refresh rate; but how does one   
get a list of possible resolutions and specify a one of them in PTB-3?  
  
Thanks,  
Adam
