This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
OpenFieldAnalysis/figure_trace.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (14 sloc)
511 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%FIGURE_TRACE generate a simple plot, showing the trace of the mouse over | |
% time | |
% | |
% Friedrich Kretschmer | |
% Max-Planck Institute for Brain Research | |
% sciclist@brain.mpg.de | |
fileName = '/storage/scic/Data/External/People/Bea/set2/gad/01-gad_2R.mat'; | |
load(fileName, 'mousePos', 'frameRate'); | |
%Take window from 1min to 10min | |
frameOnset = round(60*frameRate); %Start at 1min | |
frameOffset = round(660*frameRate); %Stop at 11min | |
%Plot the trace | |
wnd = mousePos(frameOnset:frameOffset,:); | |
h = plotMousePosTrace(wnd); |