Skip to content

Importing Piezoelectric events and optogenetic events #61

Discussion options

You must be logged in to vote

Below steps describes the procedure:

  1. Start by defining your events (for P events, dimensions = Px2; in units of seconds):
stimulation.timestamps(:,1) = [1 5 50 100 1000]';
stimulation.timestamps(:,2) = [1 5 50 100 1000]'+1;

Replace the intervals above with your specific stimulation events.

  1. Save the events to the basepath (assumed to be current path here)
basename = 'tutorial_session';
saveStruct(stimulation,'events','basename',basename);

This will generate an events file in the basepath: tutorial_session.stimulation.events.mat. These two steps should be repeated for each of your types of events (Piezo, Airpuffs, Laser) to generate multiple events file, e.g.
tutorial_session.Piezo.ev…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@jesusmartin-cortecero
Comment options

Answer selected by petersenpeter
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@jesusmartin-cortecero
Comment options

@petersenpeter
Comment options

@jesusmartin-cortecero
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants