Skip to content

Instantly share code, notes, and snippets.

View sammykatta's full-sized avatar

Sammy Katta sammykatta

View GitHub Profile
@sammykatta
sammykatta / ImportHEKAtoMat.m
Last active August 9, 2019 15:27
ImportHEKAtoMat allows sigTOOL users to work with imported HEKA Patchmaster .dat files in Matlab, rather than through the sigTOOL interface.
function [matfilename, tree, matData, stimTree]=ImportHEKAtoMat(thisfile, targetpath)
% ImportHEKA imports HEKA PatchMaster and ChartMaster .DAT files
%
% Example:
% OUTPUTFILE=ImportHEKA(FILENAME)
% OUTPUTFILE=ImportHEKA(FILENAME, TARGETPATH)
%
% FILENAME is the path and name of the HEKA DAT file to import.
%
% The kcl file generated will be placed in TARGETPATH if supplied. If not,