Git Product home page Git Product logo

memorytask's Introduction

Run the experiment (OldNewExpTest.m) and input your initials (That's the participant ID: pID). In phase 1, the participant needs to memorize 25 random images. In phase 2, also called the test phase, the participant must respond with a keypress if they believe the image is old or new. They will also be shown a feedback mechanism (Colored square) depending on their answer. At the end of the experiment, the answers will be saved in the SubjectData folder made at the beginning of the experiment, inside a specific folder containing the pID used.

File handling: SubjectData folder will be made with respective folders with their pID and their data inside (once they complete the experiment). There's a possibility to overwrite or not if the participant re-runs the code with the same pID, using a questdlg dialog.

Phase 1:

  • 25 random images shown one after the other with a duration of 1 second each.
  • no response asked from the subject apart to memorize them.

Phase 2:

  • 10 old images shown from the phase 1 images
  • 10 new images shown (that are not in phase 1)
  • the images are randomly selected once again and are shown for a duration of 0.5 seconds.
  • response expected from participant: 'd' for old, 'k' for new.
  • response expected from the participant in order to pass to the next image.

Feedback implemented in Phase 2:

  • Green square means correct.
  • Red square for incorrect answer.

Accuracy implemented in Phase 2:

  • if participant gets it right, accuracy = 1
  • if participant does not get it right, accuracy = 0

Reaction time implemented in Phase 2:

  • Stopwatch starts when the image is presented.
  • Stopwatch stops when the participant answers by pressing a key.
  • Calculated for all 20 images presented.

Saving data with fprintf

  • Results can be found in the SubjectData folder that should be automatically created when you first run the code.

memorytask's People

Contributors

andramahu avatar jeanlem7 avatar tharaboumekla avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.