Skip to content

A MATLAB program that creates "dot motion" stimuli. In these stimuli there are two groups of moving dots for witch the size and moving patterns and speed can be determined.

Notifications You must be signed in to change notification settings

Dan-Hur/Dot-Motion-stimulus-generator

Repository files navigation

Dot-Motion-stimulus-generator

A MATLAB program that creates "dot motion" stimuli. In these stimuli there are two groups of moving dots for witch the size, motion patterns and speed can be determined. There are three possible motion patterns: translational, rotational and random. The translating dots move coherently in one (determinable) direction. Rotating dots move coherently clockwise or counterclockwise. Random dots move in a translational motion where each dot moves in a different (random) direction. This code includes GUI for ease of use. After adjusting the parameters, you can export a video with the set parameters. you can choose the quality, length and type of video for export.

In order to run the program, open "motion_stimulus_generator.m" (notice the correct ) and run the code from MATLAB. the following interface should appear:

Gui_example

The "Play" button will play an animation of the stimulus with the set parameters that are currently chosen. The "Set Paramerters" button needs to be pressed affter changing either the motion pattern, number of dots, direction of motion or dot color, in order for the new parameters to be set. the "Dot size" and "Dot speed" sliders change the dots in real time. The "Export Videos" button will prompt a series of questions for the waned format of the exported video, after which the video will be created and saved.

Here are some examples for sthe videos that can be created with this program:

dot_motion_vid_3.mp4
dot_motion_vid__1.mp4
dot_motion_vid_2.mp4

About

A MATLAB program that creates "dot motion" stimuli. In these stimuli there are two groups of moving dots for witch the size and moving patterns and speed can be determined.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages