

- #Change pixel colors rectangle outline shape matlab how to#
- #Change pixel colors rectangle outline shape matlab install#
- #Change pixel colors rectangle outline shape matlab update#
- #Change pixel colors rectangle outline shape matlab full#
This window behaves much like a standard application window in that it can be moved around with the mouse etc.
#Change pixel colors rectangle outline shape matlab full#
This is useful if you are developing code on a single monitor setup as it means if your code crashes, you are not stuck with a full PTB window covering your whole screen.įloating Window Demo: This demo demostrates is similat to Partial Window Demo, but it creates a PTB window with a window bar and standard window buttons.
#Change pixel colors rectangle outline shape matlab how to#
Partial Window Demo: This demo demostrates how to create a PTB window which covers only part of the screen.
#Change pixel colors rectangle outline shape matlab update#
For example, you might want to update the stimulus every second, rather then at the frame rate of your monitor, as in " Accurate Timing Demo". Wait Frames Demo: Here we demonstrate how to update an image on the screen at a rate different to that of the monitors refresh rate.

For presenting a stimulus which is unchanging, or changes less frequently then each frame, see the next demo. Please read the extensive comments in the demo closely, they are important and should not be ignored. The three ways demonstrate varying degrees of potential accuracy. This demos how to get pretty much all the basic info you will need about the screen.Īccurate Timing Demo: This demo shows three basic ways in which to present a stimulus which would change on each frame. Totally Minimal Demo #2: This is the same as " Totally Minimal Demo", except after opening the window we query numerous things about it. But it demonstrates pretty much the steps you will always use when starting a program i.e. Totally Minimal Demo: This demo aims to be as minimal as possible. Therefore, if you have never programmed with PTB, start here.

If you look at the later demos you will see that virtually all of the core code is shared with these early demos. As such, this first set of demos starts with the complete basics to introduce you to the core principles that constitute the foundations for all that follows. The aim of the tutorials is to assume no prior experiance of programming with PTB. PTB is now primary developed for Linux, reduced functionality and support is provided for Windows and OSXĬOMING SOON: Matlab and Psychtoolbox YouTube course and Psychtoolbox Demos paper for citing this resource If you have problems with core PTB functionality ask questions there. PTB has an active forum which can be found here. It is not however good practice for running code in an experiment, as having a seperate screen for the Matlab interface will negatively impact timing. This is also good practice for the development of code, where the code might crash during development.

As such, if you have only one monitor this will cover your entire viewable screen. It is strongly suggested that you have a secondary monitor connected to your computer when exploring the demos, as nearly all of the demos will open a full screen window. I provide no guarantees that the demos provide "best practice" for your specific needs. Please make sure you carefully read the comments in the code as these provide an explanation of why things are done the way they are. The demos provided as an educational resource. If you are not clear on the essentials, you will struggle with the more difficult aspects. For all users I strongly suggest looking at sections (1) and (2) as these show essential features which will help get you up to speed coding in Matlab and PTB. There are around 80 demos on this site and these are organised into sections based on learning different aspects of PTB. If you have previously installed PTB I recommend you use the "UpdatePsychtoolbox" command to get the latest version.
#Change pixel colors rectangle outline shape matlab install#
To get started you will need to have installed Matlab or Octave (a free clone version of Matlab) and followed the install instructions which are provided on the PTB website. The aim of these demos is to provide an introduction to how to program using Psychtoolbox (PTB).
