
Explore how cognitive tasks study brain and behavior using mental chronometry, reaction times, interstimulus intervals, and stimulus onset asynchrony, while learning MATLAB and Psych Toolbox to build experiments.
Explore the history of reaction time research from Plato and Aristotle to Helmholtz, highlighting studies linking reaction time to mortality and the rise of cognitive epidemiology.
Explore mental chronometry and the subtraction method to dissect reaction time into perception, discrimination, decision making, and motor processes in cognitive tasks.
Identify the core elements of cognitive tasks—trials, fixation points, and target versus non-target stimuli. Explore stimulus duration, response deadlines, feedback, and intertrial intervals, ISI, and SOA.
Learn the basics of MATLAB, its user interface, and key panels (command window, current folder, workspace); use the layout and keyboard shortcuts to code cognitive tasks with the site toolbox.
Explore Matlab basics using the command window for calculations, create and run dot m scripts, and manage variables in the workspace. Learn naming rules, editing, saving, and executing code.
Master Matlab basics: use the percent symbol for comments, toggle with Ctrl+R and Ctrl+T, and run code in cells; learn the semicolon, mathematical, logical, and assignment operators, plus dot decimals.
Learn how to create and manipulate variables and vectors in MATLAB, including scalars, row and column vectors, matrices, and string variables, with practical examples and the exist check.
Master MATLAB indexing for matrices, vectors, and strings by accessing specific elements, whole rows or columns, and ranges to efficiently extract data.
Learn how Matlab functions take inputs, process data, and produce outputs using mean, min, max, and length; use help, doc, L, and hue to inspect folder contents and workspace.
Explore MATLAB data generators like zeros, ones, rand, and linspace, initialize variables for reaction times, and present image and sound stimuli in cognitive task experiments.
Master control flow statements in Matlab for cognitive tasks, using if, for, and while loops to manage conditional stimuli, trial repetitions, and data collection.
Learn to save MATLAB experiment data to Excel using f open, fprintf, and f close, writing headers and columns for trial numbers, reaction times, and correctness.
Navigate Matlab files and folders from the command line using dir, cd, and pwd, then manage data with mkdir, copyfile, and remove directory for backups and cleanup.
Explore Psychtoolbox as a MATLAB toolbox for precise stimulus presentation and high-accuracy data in neuroscience and cognitive psychology experiments, including Site Toolbox and Octave compatibility.
Develop a cognitive task framework with flowcharts, collect participant data, define stimuli and reaction times, and run 100 trials in MATLAB using UI, then hand control to Site Toolbox function.
Learn to build a simple MATLAB reaction time task using tick and tock, random inter-stimulus intervals, and mean reaction time calculations, and note precision limits versus PTB.
Learn how Psychtoolbox achieves high-precision timing by direct hardware access, outperforming Matlab's timing functions in stimulus presentation and data synchronization with EEG or fMRI.
Explain why citing the site toolbox in MATLAB matters, credit developers like David Brainard and Dennis Pelli, and include references to trace origins for future research.
Check Matlab version for compatibility and install the Visual C++ runtime, GStreamer, and Subversion. Download Psychtoolbox, place it in a toolbox folder, run Matlab installation, and verify C toolbox version.
Explore CI toolbox demos to learn how to present visual and auditory stimuli, record responses, and time experiments, then modify pre-written scripts to build your own cognitive tests.
Visualize the 20-trial sequence to plan a facial emotion task. Display happy and sad images for two seconds, use A and K for responses, and save reaction times to Excel.
Explore how the screen function in Psychtoolbox for MATLAB creates a window, draws text, buffers content, flips to display, and controls timing with wait seconds and RGB colors.
Learn to load images with imread, convert them to PTB textures with make texture, and display them with draw texture and screen flip, centering in the window using rect center.
Learn how to record keyboard responses and reaction times in Psychtoolbox with MATLAB, using the keyboard check function to capture key press, time, and code.
Learn to implement a task in MATLAB with Psychtoolbox: collect participant data via GUI, define stimuli and reaction times, prompt with a key press, loop trials, and close windows.
Build a MATLAB GUI to collect participant information, including name, age, and gender, using UI figure, labels, edit fields, and radio buttons, with begin and cancel actions.
Load ten image stimuli by listing bmp files with dir, build full paths with fullfile, and loop to read images, create textures, and display them sequentially for one second.
Build a complete facial emotion recognition task in MATLAB using Psychtoolbox by creating a participant user interface, loading stimuli, randomizing trials, presenting images, recording responses, and saving data for Excel.
Learn to add sound stimuli in Psychtoolbox for MATLAB by loading two WAV files, initializing the audio engine, and playing ding or chord sounds based on trial conditions.
Use triggers to synchronize on-screen emotions with EEG and fMRI measurements, ensuring precise timing and a reliable com port bridge for serial communication.
Learn to send EEG triggers in PTB via a parallel port with io64, sending 1 for happy and 2 for sad after screen flip, then reset after five milliseconds.
Define the cognitive task and its version, specify experimental conditions, timing, and stimuli, and map responses to build an AI-guided psychtoolbox design.
Combine textual prompts with a visual test layout to clarify trial structure, conditions, timings, and stimuli, using editable photoshop files to guide AI in cognitive task design.
Learn to design a Stroop task in Matlab with Psychtoolbox, featuring 60 trials (30 congruent, 30 incongruent) and color-word stimuli. Record reaction times and keyboard responses; save to Excel.
Create a Matlab oddball task using Psychtoolbox and CI toolbox, with two wav files for standard and oddball tones, 100 trials (80/20), randomized, and spacebar responses with reaction times.
Celebrate your journey from simple task sketches to coding with Psychtoolbox in MATLAB, mastering experiment structure, stimuli display, response collection, and saving behavioral data like reaction times.
This step-by-step course is designed for absolute beginners who want to learn how to program their very first cognitive task using MATLAB and Psychtoolbox. This course is ideal for students and researchers in psychology, neuroscience, and cognitive science.
The course begins with an introduction to cognitive tasks, covering their history, key principles of mental chronometry, and its relevant components. You will learn the fundamentals of using MATLAB and comfortable with it, will be introduced to Psychtoolbox, learning how to install it, run demos, and build your first simple yet interesting reaction time experiment (i.e., a Facial Emotion task).
You will learn how to work with visual and auditory stimuli, capturing keyboard responses, adding sound stimuli, and writing a complete task from scratch.
With no prior programming experience required, this course provides a clear, structured, and beginner-friendly approach to learning cognitive task programming.
A section of the course introduces briefly the concept of triggers and how to send them.
You will also see how to use AI-powered tools to generate your tasks in an efficient way. All concepts are introduced gradually and practically that even those with no coding background can follow along and start building their own experiments by the end of the course.