**Reference**

HowToGuides

Manuals

LabAlumni

DataAnalysis

Advice for...

**Admin**

analysis:matlab-overview

- restrict(): restricts times in data object (iv, ts, tsd) to specific intervals
- getd(): helper function to return data corresponding to label target_field

Basics:

- iv(): constructor
- CheckIV(): check integrity of iv struct
- SelectIV(): specify intervals to keep

Simple operations:

- ResizeIV(): expand or contract intervals by specified amount
- InvertIV(): “flips” included intervals to non-included, and vice versa
- MergeIV(): merge touching, overlapping, or nearby intervals within an iv struct

Set operations:

- UnionIV(): set union of iv objects
- IntersectIV(): set intersect, keep only those iv1's that include a piece of iv2
- DifferenceIV(): set difference, keep only those iv1's that DO NOT include a piece of iv2

Analysis operations:

- TSDtoIV(): create interval data from tsd by tresholding
- MultiRaster(): see below

Visualization:

- PlotTSDfromIV(): display intervals defined relative to tsd

Basics:

- ts() constructor
- CheckTS(): check integrity of ts struct
- SelectTS(): specify ts data to keep. (Also performs reordering)
- concatenateTS(): concatenate two ts objects

Analysis operations:

- getSpikeCount(): returns spike counts (number of spikes) in a nCells x 1 vector of ts input
- ShuffleTS(): shuffle spikes in ts struct

Visualization:

- MultiRaster(): see below

Basics and selection:

- tsd(): constructor
- CheckTSD(): check integrity of tsd struct
- getd(): get (raw) data with specified label
- TSD_SelectChannel(): returns tsd containing only channels with labels in channel_label

Merging:

- MergeTSD(): Merge data from multiple TSDs into a single, new TSD
- UnionTSD(): returns the union (merge) of two TSD inputs

Analysis:

- TSD_getidx2(): returns idxs into ts or tsd, delimited by input interval(s)
- TSDbyZ(): compute averages of the values in tsd_in binned by z's cfg.edge
- TSDbySpace(): construct 2D matrix with spatial averages of the values in tsd_in

- ndhist(): fast N-dimensional histogram (useful for plotting place fields)

- the amazing MultiRaster (examples)
- scatterplotC(): scatterplot with additional variable plotted as color, useful for plotting phase precession in space

analysis/matlab-overview.txt · Last modified: 2018/07/07 10:19 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International