Products

How to load your recording into MATLAB®

Before you enter the commands shown below in the MATLAB command prompt, point your Current Directory to the directory in which the recording's data files reside.

>> filename = 'Episode_1.dat';% Insert filename here
>> fid = fopen(filename, 'r');% File handle
>> all_data = fread(fid, 'short');% Read data
>> cntChannels = 6;% Insert the number of channels here
>> ch1 = all_data(1:cntChannels:end);% Get channel 1
>> ch2 = all_data(2:cntChannels:end);% Get channel 2

You can now for plot for instance the data of channel 1:

>> figure; plot(ch1);% Plot channel 1

Aleria Biodevices | Parc Científic de Barcelona, c/ Baldiri Reixac 15-21, 08028 Barcelona, Spain

phone: (34) 934020213 | fax: (34) 934020183 | info@aleriabio.com