Display a questionnaire using psychtoolbox, and get input using keyboard or mouse or gamepad
Control keys:
Keyboard (not supported for now):
1.Arrow keys -- Up, down for quickly navigate question;
2.Number keys -- Select an answer;
3.Return -- Go to next question
Mouse:
Any key click would do.
Move mouse to the top edge or bottom edge to scroll. (I use this because that linux don't support GetMouseWheel function ORZ)
Gamepad:
1.B to make choice
2.LB for previous question; RB for next; press still for quick navigation
3.Left stick -- for questionnaires in those the answers align vertically, move up or down would do the select; for those horizontally, left and right; hold still for quick navigation
Please reference using:
TOSHINAKI et al.. (2016). MATLAB_PTB_Questionnaire: 2016/08/06 first release. Zenodo. 10.5281/zenodo.59760
Cite As
van urIst (2025). flasker/MATLAB_PTB_Questionnaire (https://github.com/Toshinaki/MATLAB_PTB_Questionnaire), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Mainloop parts
helperFuncs
helperFuncs/display
helperFuncs/gamepad
helperFuncs/mouse
helperFuncs/savedata
survey
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
2.0.0.0 | changed file structures and control a bit
|
|
|
1.4.0.0 | Added gamepad support! |
|
|
1.3.0.0 | Added support for mouse |
|
|
1.2.0.0 | Now supports for likert survey. |
|
|
1.1.0.0 | Updated code to make it easier to integrate with other experiments. |
|
|
1.0.0.0 |
|