Be the first to rate this file! 4 Downloads (last 30 days) File Size: 1.96 KB File ID: #26226

ReadNVT

by Forrest Collman

 

30 Dec 2009

Reads in a Neuralynx NVT Cheetah binary file into Matlab

| Watch this File

File Information
Description

This function reads in a NeuraLynx NVT file (with filename fn) into matlab assuming the format has a 16Kb ascii header and then a repeating binary record given by the following format
(variablename, variabletype, number_in_a_row)
%RecordFormat={
% 'swstx','uint16',1;
% 'swid','uint16',1;
% 'swdata_size','uint16',1;
% 'TimeStamp','uint64',1;
% 'dwPoints','uint32',400;
% 'sncrc','int16',1;
% 'Xloc','int32',1;
% 'Yloc','int32',1;
% 'Angle','int32',1;
% 'dntargets','int32',50;
% };

The code is structured in such a way to make it very easy to modify to read in ANY binary file which contains a header and then a repeating sequence of binary records of a fixed length and appended binary variables simply by modifying this RecordFormat variable, so this should have some more general use as well.

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
neuralynx Forrest Collman 30 Dec 2009 16:03:38
cheetah Forrest Collman 30 Dec 2009 16:03:38
nvt Forrest Collman 30 Dec 2009 16:03:38
input Forrest Collman 30 Dec 2009 16:03:38
binary file Forrest Collman 30 Dec 2009 16:03:38
binary Forrest Collman 30 Dec 2009 16:03:39
header Forrest Collman 30 Dec 2009 16:03:39

Contact us at files@mathworks.com