Welcome! Log In Create A New Profile

Advanced

behaviorsummary

Posted by Jaewon 
behaviorsummary
February 18, 2020 06:17PM
When a task ends, NIMH ML pops up a summary window of behavioral data. If this summary is not useful, you can suppress it or create your own summary. To do so, create a "behaviorsummary.m" file in your task directory and write a function like the following.

function behaviorsummary(filename)
end

If you want to suppress the summary window, just leave the function blank as above. Otherwise, add code to read data from the given filename and analyze.

function behaviorsummary(filename)
    data = mlread(filename);
    figure;
    hist([data.TrialError]);
end

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.