plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
isacra/isacradoctoralstuffs-master
advexpfig.m
.m
isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Other/advexpfig.m
6,996
utf_8
265179faa62387bc6b7069bc5703b041
function [result,msg] = advexpfig(fh,fName,format,varargin) % ADVEXPFIG Exports a figure into a file (all internal formats are % supported as well as some formats generated indirectly using an % intermediary eps format. % % [result,msg] = ADVAXPFIG(fh,fName,format,varargin) % Creates an output from the figure f...
github
JulianYG/redeye_sim-master
classification_demo.m
.m
redeye_sim-master/caffe/matlab/demo/classification_demo.m
5,412
utf_8
8f46deabe6cde287c4759f3bc8b7f819
function [scores, maxlabel] = classification_demo(im, use_gpu) % [scores, maxlabel] = classification_demo(im, use_gpu) % % Image classification demo using BVLC CaffeNet. % % IMPORTANT: before you run this demo, you should download BVLC CaffeNet % from Model Zoo (http://caffe.berkeleyvision.org/model_zoo.html) % % *****...
github
btimlake/RegretBTTLNB-master
HPSquestionnaire.m
.m
RegretBTTLNB-master/HPSquestionnaire.m
11,700
utf_8
b1b220ed088b8bca5c8869fece188799
function [hpsResponsesIdx, hpsResponses] = HPSquestionnaire(cfg, particNum, DateTime, window, windowRect) addpath('questionnaires'); if ismac % Code to run on Mac plaform disp('Mac'); disabledKeys=[]; skipSyncTest=[]; screenRes=[]; % enabledKeys = [44, 79, 80]; % limit recognized presses to ...
github
btimlake/RegretBTTLNB-master
patentTaskBTMP.m
.m
RegretBTTLNB-master/patentTaskBTMP.m
23,530
utf_8
83369aec2cfce85048c0551a481519ea
% Function to run graphical patent race task % Participant can be strong or weak player % Only 2 methods of computer player strategies implemented: 'RL', and % learning from 'Fictive' earnings. % Tobias Larsen, November 2015 % modified and amended Ben Timberlake, Feburary 2016 function [player1Choice, player2Choice, ...
github
btimlake/RegretBTTLNB-master
patentTaskBTMP-old.m
.m
RegretBTTLNB-master/patentTaskBTMP/patentTaskBTMP-old.m
25,461
utf_8
0ecf22128b724aec4070ac4d19dfd9f1
% Function to run graphical patent race task % So far only setup so participant is the strong player % And only 2 methods of weak player strategies implemented, 'RL', and % learning from 'Fictive' earnings. % Tobias Larsen, November 2015 % modified and amended Ben Timberlake, Feburary 2016 function [player1Earnings] ...
github
hsw28/data_analysis-master
mkcont.m
.m
data_analysis-master/others_analysis_code/mwl-td_contdisp/obj/cont/mkcont.m
3,911
utf_8
eb061e5d25ed314b623aefdcf17adeb3
function [cont filt] = mkcont(varargin) % MKCONT make a cont object to be plotted by drawcont cont = struct(... 'type', 'cont',... ... 'contvar', [],... % name of contdata variable in base workspace 'chans', [],... % channels (columns) of contdata to plot 'chanlabels',[],... % names o...
github
hsw28/data_analysis-master
specscope.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/spectral_analysis/specscope/specscope.m
19,600
utf_8
7a80433446556a39374dc808670147c4
function outdata=specscope(indata) % record and plot audio spectrogram % % Usage: outdata=specscope(indata) % % Input: indata (optional) % Displays a recorded piece of data, if an argument is passed % Otherwise displays audio data from an attached microphone % % Output: outdata (optional) % If pres...
github
hsw28/data_analysis-master
rtf.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/spectral_analysis/specscope/rtf.m
5,158
utf_8
ef3f23be6203e99d6a822c63a1d42b6d
function rtf(plot_frq,flag_save) close all evalin('base','stop=0;'); %=========SET THE BASIC FIGURE================= fig = figure('Position',[500,500,800,600],... 'NumberTitle','off',... 'Name','Scope',... 'doublebuffer','on',... 'HandleVisibility','on',... 'Ke...
github
hsw28/data_analysis-master
specscopepp.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/spectral_analysis/specscope/specscopepp.m
20,341
utf_8
d9fe57a8dd870b4a1832ba73ec208a29
function outdata=specscopepp(indata) global acq; h=hamming(5); mins=5e-008; maxs=1e-004; % record and plot audio spectrogram % % Usage: outdata=specscope(indata) % % Input: indata (optional) % Displays a recorded piece of data, if an argument is passed % Otherwise displays audio data from an att...
github
hsw28/data_analysis-master
lfgui.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/locfit/m/lfgui.m
4,018
utf_8
3b6eace9dc5a0057fb2c8b221751aa6d
function varargout = lfgui(varargin) % LFGUI M-file for lfgui.fig % LFGUI, by itself, creates a new LFGUI or raises the existing % singleton*. % % H = LFGUI returns the handle to a new LFGUI or the handle to % the existing singleton*. % % LFGUI('CALLBACK',hObject,eventData,handles,...) calls th...
github
hsw28/data_analysis-master
auto_classify.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/wave_browser/auto_classify.m
25,074
utf_8
ba0678a9e6434290035fdb708a1d8009
function varargout = auto_classify(varargin) % AUTO_CLASSIFY M-file for auto_classify.fig % AUTO_CLASSIFY, by itself, creates a new AUTO_CLASSIFY or raises the existing % singleton*. % % H = AUTO_CLASSIFY returns the handle to a new AUTO_CLASSIFY or the handle to % the existing singleton*. % ...
github
hsw28/data_analysis-master
wave_browser.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/wave_browser/wave_browser.m
57,029
utf_8
2587b6831317c05fd90c35f38a964c93
function varargout = wave_browser(varargin) % WAVE_BROWSER M-file for wave_browser.fig % WAVE_BROWSER, by itself, creates a new WAVE_BROWSER or raises the existing % singleton*. % % H = WAVE_BROWSER returns the handle to a new WAVE_BROWSER or the handle to % the existing singleton*. % % ...
github
hsw28/data_analysis-master
classify_spectra.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/wave_browser/classify_spectra.m
108,297
utf_8
93fe2f22d145ba63cb667b18b3b33d0d
function varargout = classify_spectra(varargin) % CLASSIFY_SPECTRA M-file for classify_spectra.fig % CLASSIFY_SPECTRA, by itself, creates a new CLASSIFY_SPECTRA or raises the existing % singleton*. % % H = CLASSIFY_SPECTRA returns the handle to a new CLASSIFY_SPECTRA or % the handle to % the ex...
github
hsw28/data_analysis-master
configure_classify.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/wave_browser/configure_classify.m
17,864
utf_8
d66bfd4213ddebc5ac867dcafec8703a
function varargout = configure_classify(varargin) % CONFIGURE_CLASSIFY M-file for configure_classify.fig % CONFIGURE_CLASSIFY, by itself, creates a new CONFIGURE_CLASSIFY or raises the existing % singleton*. % % H = CONFIGURE_CLASSIFY returns the handle to a new CONFIGURE_CLASSIFY or the handle to ...
github
hsw28/data_analysis-master
FAnalyze.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/fly_track/FAnalyze/functions/FAnalyze.m
28,275
utf_8
00157164be68669eaae8ee557d8f0e27
function varargout = FAnalyze(varargin) % FANALYZE % For all your trajectory analysis needs! . See documentation for usage details. %Written by Dan Valente %November 2007 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui...
github
hsw28/data_analysis-master
videoReader.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/fly_track/videoIO/videoIO_2006b/@videoReader/videoReader.m
5,758
utf_8
66a56561d4e6c547cf2bac07861a94f6
function vr = videoReader(url, varargin) % videoReader class constructor % Creates a object that reads video streams. We use a plugin % architecture in the backend to do the actual reading. For example, % on Windows, DirectShow will typically be used and on Linux, the % ffmpeg library is often used. ...
github
hsw28/data_analysis-master
videoWriter.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/fly_track/videoIO/videoIO_2006b/@videoWriter/videoWriter.m
11,485
utf_8
0869234180baa12b3217c3ac04df67ed
function vw = videoWriter(url, varargin) % videoWriter class constructor % Creates a object that writes video files. We use a plugin % architecture in the backend to do the actual writing. For example, % on Windows, DirectShow will typically be used and on Linux, the % ffmpeg library is often used. %...
github
hsw28/data_analysis-master
videoReader.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/fly_track/videoIO/videoIO_2006a/@videoReader/videoReader.m
5,758
utf_8
66a56561d4e6c547cf2bac07861a94f6
function vr = videoReader(url, varargin) % videoReader class constructor % Creates a object that reads video streams. We use a plugin % architecture in the backend to do the actual reading. For example, % on Windows, DirectShow will typically be used and on Linux, the % ffmpeg library is often used. ...
github
hsw28/data_analysis-master
videoWriter.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/fly_track/videoIO/videoIO_2006a/@videoWriter/videoWriter.m
11,485
utf_8
0869234180baa12b3217c3ac04df67ed
function vw = videoWriter(url, varargin) % videoWriter class constructor % Creates a object that writes video files. We use a plugin % architecture in the backend to do the actual writing. For example, % on Windows, DirectShow will typically be used and on Linux, the % ffmpeg library is often used. %...
github
hsw28/data_analysis-master
videoReader.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/fly_track/videoIO/videoIO_2007a/@videoReader/videoReader.m
5,758
utf_8
66a56561d4e6c547cf2bac07861a94f6
function vr = videoReader(url, varargin) % videoReader class constructor % Creates a object that reads video streams. We use a plugin % architecture in the backend to do the actual reading. For example, % on Windows, DirectShow will typically be used and on Linux, the % ffmpeg library is often used. ...
github
hsw28/data_analysis-master
videoWriter.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/fly_track/videoIO/videoIO_2007a/@videoWriter/videoWriter.m
11,485
utf_8
0869234180baa12b3217c3ac04df67ed
function vw = videoWriter(url, varargin) % videoWriter class constructor % Creates a object that writes video files. We use a plugin % architecture in the backend to do the actual writing. For example, % on Windows, DirectShow will typically be used and on Linux, the % ffmpeg library is often used. %...
github
hsw28/data_analysis-master
FTrack.m
.m
data_analysis-master/others_analysis_code/chronux_2_11/fly_track/FTrack/functions/FTrack.m
20,317
utf_8
ec3ca4a2695761e114cd56210fe3ac51
function varargout = FTrack(varargin) % FTRACK % For all your fly-tracking needs! . See documentation for usage details. % Last Modified by GUIDE v2.5 26-Nov-2007 18:07:29 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui...
github
hsw28/data_analysis-master
getfilter.m
.m
data_analysis-master/others_analysis_code/utils/getfilter.m
6,984
utf_8
18152b477cf703e75d374bee12419645
function [b, s] = getfilter(Fs, band, method, varargin) %GETFILTER return coefficients for eeg filter % % Syntax % % [b, s] = getfilter( Fs, band, method ) % % Description % % This function returns the coefficients for a FIR filter. Band % specifies the frequency band of interest and can be one of: 'theta'...
github
hsw28/data_analysis-master
eeg2tt.m
.m
data_analysis-master/others_analysis_code/mwl-td_cont_tmp/matlab/import/eeg2tt.m
7,937
utf_8
c151a89e36f97f46d35a5167538d0750
function tth = eeg2tt(eegfiles, ttfile, trodetype, varargin) % EEG2TT - create a .tt file from an .eeg file (mimics AD) % $Id: eeg2tt.m 2213 2009-08-03 19:38:21Z tjd $ % % eeg2tt(eegfiles, ttfile, 'octrode'/'tetrode1'/'tetrode2', ... % % followed by param/value args, any order % % 'upthresh_uv', [], % 'd...
github
hsw28/data_analysis-master
contbouts.m
.m
data_analysis-master/others_analysis_code/mwl-td_cont_tmp/matlab/cont/contbouts.m
13,693
utf_8
2111f8562a9216de34c488cbf78e8e85
function [bouts th minevpeak minpeak maxevvalley maxvalley extrema extrema_t] = ... contbouts(c, varargin) % CONTBOUTS - find above-threshold periods of a signal in a cont struct % % [bouts thresh minevpeak minpeak maxevvalley maxvalley peakvals peakts] = ... % contbouts(cont, [name/value pairs] % % Inp...
github
hsw28/data_analysis-master
contfilt.m
.m
data_analysis-master/others_analysis_code/mwl-td_cont_tmp/matlab/cont/contfilt.m
6,884
utf_8
18568a587bcbf0d4b6d3a64d84b7d6fd
function [c filt] = contfilt(c,varargin) % CONTFILT - filter data in a cont structure % % [c filt] = contfilt(c, [name/value arg pairs]) % % Filter all channels in a cont struct using provided filter or filter % design criteria. By default, downsamples highly oversampled signals before % filtering for computational ef...
github
hsw28/data_analysis-master
draw2d.m
.m
data_analysis-master/others_analysis_code/mwl-td_cont_tmp/matlab/util/draw2d.m
16,423
utf_8
fe7f8c8a56e7b071cf5fe8e0c04594b4
function [hs zlims] = draw2d(varargin) % DRAW2D plot 2-D data, w/ shading, linear/log scale... (chooses % image/surf as needed). See code for input options % % Author: Tom Davidson (tjd@alum.mit.edu) 2007 % % $Id$ % todo: -subsampling/decimating of large data ? % -surf with rgb triplets (for log scale or non-u...
github
hsw28/data_analysis-master
NlxLoadCSC.m
.m
data_analysis-master/others_analysis_code/mwl-td_cont_tmp/matlab/nlx/NlxLoadCSC.m
15,142
utf_8
ec04c91adfbcdcb1ac6bcc5af80891c6
function [cs NumberValid] = NlxLoadCSC(varargin) % NlxLoadCSC: gets raw data and headers from .ncs files % % Wrapper for Nlx2MatCSC. Loads data, parses headers, converts units % % Tom Davidson <tjd@stanford.edu> 4/2010 % NOTES: % -Samples are stored as 16-bit signed integers in the .ncs file, (per % www.neuralynx....
github
hsw28/data_analysis-master
NlxLoadEV.m
.m
data_analysis-master/others_analysis_code/mwl-td_cont_tmp/matlab/nlx/NlxLoadEV.m
6,315
utf_8
3d70896afef58a6c92607d160ead640b
function [ev] = NlxLoadEV(varargin) % NlxLoadEV: parses raw digital TTL pulse data from a .nev file % % 'Filename': Full path to '*.nev' file % 'TimeUnits': Time units for output: 'seconds' (default), 'microseconds' % 'FindPulses': Parse TTL codes to generate a list of pulse start/end % times for each cha...
github
hsw28/data_analysis-master
segcount.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkSegments/segcount.m
1,176
utf_8
77dd6d5ebc9d1f3d29f371fb12147716
function c = segcount( segs, x ) %SEGCOUNT cumulative count of segments % % fcn=SEGCOUNT(segments) returns a handle to a function that accepts a % single argument and returns the cumulative count of segments at the % values in the argument. (i.e. the function counts the number of % segments which contain the value ...
github
hsw28/data_analysis-master
addtimecursor.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/addtimecursor.m
1,527
utf_8
66ec2ffe5ea9079fce99275de1b1f3cf
function h=addtimecursor(hAx) %ADDTIMECURSOR if nargin<1 || ~isscalar(hAx) || ~ishandle(hAx) || ~strcmp(get(hAx,'type'),'axes') error('addtimecursor:invalidHandle', 'Invalid axes handle') end h = findobj( hAx, 'tag', 'timecursor' ); if isempty(h) additime(hAx); hAx = handle(hAx); event...
github
hsw28/data_analysis-master
newpolarplot.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/newpolarplot.m
3,258
utf_8
8668da3dd85252ec71cfe1809bba4f6b
function axReturn = newpolarplot(hsave) %NEWPOLARPLOT preamble for NextPlot property for polar axes % % NEWPOLARPLOT prepares figure, axes for graphics according to % NextPlot. % % h=NEWPOLARPLOT returns the handle of the prepared axes. % % h=NEWPOLARPLOT(hsave) prepares and returns an axes, but does not % delete ...
github
hsw28/data_analysis-master
lineplot.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/lineplot.m
3,328
utf_8
fb1c48453657a24f3f704ba53b29b2db
function h = lineplot(x,y,varargin) %LINEPLOT % % h=LINEPLOT(x,y) % % h=LINEPLOT(x,y,param1,val1,...) % % Copyright 2008-2008 Fabian Kloosterman [hParent,args,nargs] = axescheck(varargin{:}); %#ok if isempty(hParent) hParent=gca; end h = handle( line( NaN, NaN, 'Parent', ancestor(hParent,'axes') ) ); hAx = h...
github
hsw28/data_analysis-master
additime.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/additime.m
6,878
utf_8
742a45740e03291cc8892c5653ac3412
function additime(h, varargin) %ITIMEADD add time interface to ui containers and axes % % ITIMEADD(h) % % Copyright 2008-2008 Fabian Kloosterman if nargin<1 || ~all(ishandle(h)) error('itimeadd:invalidArguments', 'Need a handle') end if numel(h)>1 for k=1:numel(h) additime(h(k)); end return end %int...
github
hsw28/data_analysis-master
circle.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/circle.m
1,856
utf_8
c34660cbfb089a8b367cf95680d45aee
function h=circle(varargin) %CIRCLE draw a circle % % h=CIRCLE(center,radius) draws a circle with specified center and % radius in current axes % % h=CIRCLE(hax,...) draws circle in specified axes % % h=CIRCLE(...,param1,val1,...) draws circle with additional % parameter/value pairs, which should be valid paramete...
github
hsw28/data_analysis-master
pointplot.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/pointplot.m
4,886
utf_8
fe5e1da6bb6cdd388fefd3445473c9d6
function h = pointplot(points,varargin) %POINTPLOT % % h=POINTPLOT(points) % % h=POINTPLOT(points,param1,val1,...) % % Copyright 2008-2008 Fabian Kloosterman [hParent,args,nargs] = axescheck(varargin{:}); %#ok if isempty(hParent) hParent=gca; end %h = handle( hggroup('Parent', hAx) ); h = handle( image( 'CDat...
github
hsw28/data_analysis-master
formattext.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/formattext.m
1,408
utf_8
56260914c1fc7cd7d00b708b6635ee8e
function h=formattext(varargin) %FORMATTEXT % % h=FORMATTEXT(x,y,string) % % h=FORMATTEXT(x,y,format,data) % % h=FORMATTEXT(x,y,z,...) % % h=FORMATTEXT(...,param1,val1,...) % % Copyright 2008-2008 Fabian Kloosterman %we need at least three input arguments if nargin<3 || (isnumeric(varargin{3}) && nargin<4) e...
github
hsw28/data_analysis-master
commandline.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/commandline.m
4,159
utf_8
8e18e01c452789bacfe839083d8cd8db
function commandline( hParent, fcn ) %COMMANDLINE custom command line in figure % % COMMANDLINE create a command line in a new figure. All commands are % executed in the base workspace. % % COMMANDLINE(h) create command line in figure or uipanel with handle % h. % % COMMANDLINE(h,fcn) the command is passed to the...
github
hsw28/data_analysis-master
javacommandline.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/javacommandline.m
5,512
utf_8
0ad0293e4739ed30ba7dbd27d388a94a
function [jc, hc] = javacommandline( hParent, fcn ) %JAVACOMMANDLINE custom command line (java component) % % [jc,hc]=JAVACOMMANDLINE creates a new command line and returns the % handle of the java component jc and the handle of the graphics % container hc. Commands are executed in the base workspace. % % [...]=JAV...
github
hsw28/data_analysis-master
plotgroup.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/plotgroup.m
7,191
utf_8
734a7a942e022d380b42d0a8a4e2c124
function h = plotgroup(varargin) %PLOTGROUP % % h=PLOTGROUP(plot1,plot2,...) % % h=PLOTGROUP(plot1,plot2,...,param1,val1,...) % % Copyright 2008-2008 Fabian Kloosterman %check for axes in input arguments [hParent,args,nargs] = axescheck(varargin{:}); %#ok if isempty(hParent) hParent=gca; end %find idx of firs...
github
hsw28/data_analysis-master
create_slicerui.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@slicerui/private/create_slicerui.m
12,698
utf_8
a5dce1195782a358ca09cd91b804617f
function ui = create_slicerui( grid, state, hash ) import javax.swing.* import java.awt.* c = GridBagConstraints(); c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 1; c.weighty= 1; dim_names = names(grid); %x_dim = find(strcmp( state.x, dim_names )); %y_dim = find(strcmp( state.y, dim_names )); %create main pan...
github
hsw28/data_analysis-master
linkaxes.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@slider/linkaxes.m
1,444
utf_8
b2a37f5899965006815e1fe5903c9f1d
function linkaxes(S, hAx) %LINKAXES links axes to slider % % LINKAXES(slider,hax) links the x-axis of the axes objects to the % slider. % if ~ishandle(S.parent) || ~isappdata(S.parent, 'Slider') error('slider:linkaxes:invalidHandle', ['Parent does not exist or has ' ... 'no slider']) end if ...
github
hsw28/data_analysis-master
drawslider.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@slider/private/drawslider.m
25,487
utf_8
374e4e80e5545a224f979eb10bdb3f1a
function ui = drawslider( h, p) %enable event dispatching event_dispatch( ancestor( h, 'figure' ) ); %get container size in characters old_units = get(h, 'Units'); set(h, 'Units', 'characters'); pos = get(h, 'Position'); set(h, 'Units', old_units); label_width = min( 0.1*pos(3), 10 ); btn_width = min( 0.05.*pos(3), ...
github
hsw28/data_analysis-master
polarline.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polarline/polarline.m
3,433
utf_8
009f11362acb5738ce8799eab8755a51
function h=polarline(varargin) %POLARLINE polar line constructor % % h=POLARLINE(param1,var1,...) constructs a polar line object with % properties set by the parameter/value pairs. Valid parameters are: % Parent - handle of parent axes (normal or polar axes) % AngleUnits - units for angular data ('radians' or 'de...
github
hsw28/data_analysis-master
schema.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polarline/schema.m
4,483
utf_8
d25124b532642e1d3f5cea1aacfbaaf5
function schema %SCHEMA class definition for polarline % % SCHEMA % % Copyright 2008-2008 Fabian Kloosterman %-------DEFINE CLASS------- %get fkGraphics package pkg = findpackage('fkGraphics'); %get handle graphics package pkgHG = findpackage('hg'); %define polarline class, use hggroup as baseclass h = schema.cl...
github
hsw28/data_analysis-master
polarbar.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polarbar/polarbar.m
3,532
utf_8
f2a332ba58ac3c4ed0d573cee6bb7eba
function h=polarbar(varargin) %POLARBAR polar bar constructor % % h=POLARBAR(param1,var1,...) constructs a polar bar object with % properties set by the parameter/value pairs. Valid parameters are: % Parent - handle of parent axes (normal or polar axes) % AngleUnits - units for angular data ('radians' or 'degrees...
github
hsw28/data_analysis-master
schema.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polarbar/schema.m
4,371
utf_8
39f25d49790341e8e3e233d4c2f20d05
function schema %SCHEMA class definition for polarbar % % SCHEMA % % Copyright 2008-2008 Fabian Kloosterman %-------DEFINE CLASS------- %get fkGraphics package pkg = findpackage('fkGraphics'); %get handle graphics package pkgHG = findpackage('hg'); %define polarbar class, use hggroup as baseclass h = schema.clas...
github
hsw28/data_analysis-master
rangecursor.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@rangecursor/rangecursor.m
21,796
utf_8
0a1fb9f5ec389261e5dd0094d9294206
function h=rangecursor(varargin) %RANGECURSOR range cursor constructor % % h=CURSOR(param1,val1,...) constructs a cursor object with properties % set by the parameter/value pairs. Valid parameters are: % Parent - handle of parent axes % XLim - x range % YLim - y range % Style - cursor style ('vertical', 'hori...
github
hsw28/data_analysis-master
schema.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polarcursor/schema.m
3,673
utf_8
b1419e1b2a8fc4d50f852d9030c40dec
function schema %SCHEMA class definition for polararea % % SCHEMA % % Copyright 2008-2008 Fabian Kloosterman %-------DEFINE CLASS------- %get fkGrapichs package pkg = findpackage('fkGraphics'); %get handle graphics package pkgHG = findpackage('hg'); %define polarcursor class, use hggroup as baseclass h = schema....
github
hsw28/data_analysis-master
polarcursor.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polarcursor/polarcursor.m
4,759
utf_8
23890272b7748bc3d38b790ef79fa880
function h=polarcursor(varargin) %POLARCURSOR polar cursor constructor % % h=POLARCURSOR(param1,var1,...) constructs a polar cursor object with % properties set by the parameter/value pairs. Valid parameters are: % Parent - handle of parent axes (normal or polar axes) % AngleUnits - units for angular data ('radia...
github
hsw28/data_analysis-master
polarscatter.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polarscatter/polarscatter.m
3,198
utf_8
ff93f16953f44d0168a14ab90e522810
function h=polarscatter(varargin) %POLARSCATTER polar scatter constructor % % h=POLARSCATTER(param1,var1,...) constructs a polar scatter object with % properties set by the parameter/value pairs. Valid parameters are: % Parent - handle of parent axes (normal or polar axes) % AngleUnits - units for angular data ('...
github
hsw28/data_analysis-master
schema.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polarscatter/schema.m
4,161
utf_8
88d297a508d122002669a215abd5ac05
function schema %SCHEMA class definition for polarscatter % % SCHEMA % % Copyright 2008-2008 Fabian Kloosterman %-------DEFINE CLASS------- %get fkGraphics package pkg = findpackage('fkGraphics'); %get handle graphics package pkgHG = findpackage('hg'); %define polarscatter class, use hggroup as baseclass h = sch...
github
hsw28/data_analysis-master
polararea.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polararea/polararea.m
4,280
utf_8
13e2f9633306e2feebee7527a4f92a66
function h=polararea(varargin) %POLARAREA polar area constructor % % h=POLARAREA(param1,var1,...) constructs a polar area object with % properties set by the parameter/value pairs. Valid parameters are: % Parent - handle of parent axes (normal or polar axes) % AngleUnits - units for angular data ('radians' or 'de...
github
hsw28/data_analysis-master
schema.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polararea/schema.m
4,896
utf_8
f461a58e87033ba344b11a7ae6d2a3dd
function schema %SCHEMA class definition for polararea % % SCHEMA % % Copyright 2008-2008 Fabian Kloosterman %-------DEFINE CLASS------- %get fkGrapichs package pkg = findpackage('fkGraphics'); %get handle graphics package pkgHG = findpackage('hg'); %define polararea class, use hggroup as baseclass h = schema.cl...
github
hsw28/data_analysis-master
cursor.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@cursor/cursor.m
14,762
utf_8
91e7a248845bef7335f014eef7352be2
function h=cursor(varargin) %CURSOR cursor constructor % % h=CURSOR(param1,val1,...) constructs a cursor object with properties % set by the parameter/value pairs. Valid parameters are: % Parent - handle of parent axes % X - x position % Y - y position % Style - cursor style ('vertical', 'horizontal', 'cross'...
github
hsw28/data_analysis-master
shapesoncurve.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@shapesoncurve/shapesoncurve.m
4,146
utf_8
6071e8e65a5b65c75523c54f745724dc
function h=shapesoncurve(varargin) %SHAPESONCURVE shapes on curve constructor % % h=SHAPESONCURVE(param1,val1,...) % % Copyright 2008-2008 Fabian Kloosterman %find parent parameter if any parent_ind = find( strncmpi( varargin(1:2:end), 'parent',6 ) ); if ~isempty(parent_ind) parent = varargin{parent_ind*2}; els...
github
hsw28/data_analysis-master
schema.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@shapesoncurve/schema.m
5,043
utf_8
36d90805fcf89d6882012cdd741567e0
function schema %SCHEMA class definition for shapes on curve object % % SCHEMA % % Copyright 2008-2008 Fabian Kloosterman %-------DEFINE CLASS------- %get animation package pkg = findpackage('fkGraphics'); %get handle graphics package pkgHG = findpackage('hg'); %define animaxes class h = schema.class(pkg,'shapeso...
github
hsw28/data_analysis-master
schema.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polaraxes/schema.m
11,172
utf_8
d576f9b3d37de0ec69a99ddb55df6cc6
function schema %SCHEMA class definition for polaraxes % % SCHEMA % % Copyright 2008-2008 Fabian Kloosterman %-------DEFINE CLASS------- %get fkGraphics package pkg = findpackage('fkGraphics'); %get handle graphics package pkgHG = findpackage('hg'); %define polaraxes class, use axes as baseclass h = schema.class...
github
hsw28/data_analysis-master
polaraxes.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polaraxes/polaraxes.m
17,024
utf_8
e47d1105db4974566c782084dae6bf11
function h=polaraxes(varargin) %POLARAXES polar axes constructor % % h=POLARAXES(param1,val1,...) constructs a polar axes object with % properties set by the parameter/value pairs. Valid parameters are: % AngleUnits - radians/degrees, determines how angle values of % properties during set/get operati...
github
hsw28/data_analysis-master
draw_angle_axis.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkGraphics/@fkGraphics/@polaraxes/private/draw_angle_axis.m
4,824
utf_8
77e86bf9366a314da9cb3e681953ab35
function draw_angle_axis(h) %DRAW_ANGLE_AXIS draw the angular axis in polar axes % % DRAW_ANGLE_AXIS(h) draws a angular axis in polar axes h % % Copyright 2008-2008 Fabian Kloosterman %make sure all angular axes properties are returned in radians anglelim = fkGraphics.getradians(h, 'AngleLim'); angletickvalues = fk...
github
hsw28/data_analysis-master
import_waveform.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkSession/import_waveform.m
2,552
utf_8
16968d8c3c0aea34a93bba3fd1d13d51
function clusters = import_waveform( rootdir, clusters, tetrodes ) %IMPORT_WAVEFORM import spike waveform % % clusters=IMPORT_WAVEFORM(rootdir,clusters,tetrodes) import spike % waveform means (calculate if necessary) and waveform % properties for all clusters. Waveform values are converted to mV. % % Copyright 200...
github
hsw28/data_analysis-master
import_session.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkSession/import_session.m
13,121
utf_8
ad98d46d1d4ef20feb81f1d036a80d41
function session = import_session(rootdir, varargin) %IMPORT_SESSION import a session worth of data % % session=IMPORT_SESSION(rootdir) imports data of a recording session % stored in rootdir and returns a structure with the following fields: % info - session information % tetrodes - tetrode information % (epoc...
github
hsw28/data_analysis-master
export_session.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkSession/export_session.m
3,777
utf_8
ab387edae4053c873451568e2af60af5
function export_session(session) %EXPORT_SESSION export session structure % % EXPORT_SESSION(session) exports the events and segemnts for each epoch % in the session structure to disk % % See also IMPORT_SESSION % % Copyright 2005-2008 Fabian Kloosterman epochs = fieldnames(session); for e=1:length(epochs) ...
github
hsw28/data_analysis-master
import_tetrode_info.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkSession/import_tetrode_info.m
4,093
utf_8
2d8a94bf8b3a16bbc0d9e277c048c635
function tetrodes = import_tetrode_info( rootdir ) %IMPORT_TETRODE_INFO import tetrode information % % tetrodes=IMPORT_TETRODE_INFO(rootdir) % % Copyright 2007-2008 Fabian Kloosterman VERBOSE_MSG_ID = mfilename; %#ok if evalin('caller', 'exist(''VERBOSE_MSG_LEVEL'',''var'')') VERBOSE_MSG_LEVEL = evalin('caller', ...
github
hsw28/data_analysis-master
import_eeg.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkSession/import_eeg.m
2,834
utf_8
736ac1a49c9f314dbd2793d0573e4e6a
function eeg = import_eeg( rootdir, epoch ) %IMPORT_EEG import eeg data % % eeg=IMPORT_EEG(rootdir,epoch) % Copyright 2007-2008 Fabian Kloosterman VERBOSE_MSG_ID = mfilename; %#ok if evalin('caller', 'exist(''VERBOSE_MSG_LEVEL'',''var'')') VERBOSE_MSG_LEVEL = evalin('caller', 'VERBOSE_MSG_LEVEL') + 1; %#ok else ...
github
hsw28/data_analysis-master
define_sources.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkPreProcessing/define_sources.m
2,310
utf_8
e16a116146830895808eed3ef710e7a9
function sources=define_sources(sources) %DEFINE_SOURCES user defined sources % % sources=DEFINE_SOURCES(sources) presents the user with a gui to enter % and update source definitions. % % Copyright 2009 Fabian Kloosterman %convert sources to text strings sourcestext = local_sources2text( sources ); %create dial...
github
hsw28/data_analysis-master
connect_sources_and_signals.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkPreProcessing/connect_sources_and_signals.m
3,528
utf_8
ff5824fdd7bc2b0c1149a346a769ba6b
function [sources,signals] = connect_sources_and_signals( sources, signals ) %CONNECT_SOURCES_AND_SIGNALS helper function to associate signals with sources % % [sources,signals]=CONNECT_SOURCES_AND_SIGNALS(sources,signals) presents % the user with a gui in which for each signal the corresponding source % and referen...
github
hsw28/data_analysis-master
replay_shuffle_pseudo.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkReplay/replay_shuffle_pseudo.m
4,055
utf_8
b6d54b79b40c194531ae3827f5d9e46e
function [radonmax, seed, target_out] = replay_shuffle_pseudo( targets, info, n, winL, varargin ) %REPLAY_SHUFFLE_PSEUDO if nargin<4 help(mfilename) return end options = struct( 'seed', [], ... 'binomialtest', 1, ... 'binomialpvalue', 0.01, ... 'shufflevalue',...
github
hsw28/data_analysis-master
replay_shuffle_cycle.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkReplay/replay_shuffle_cycle.m
3,579
utf_8
e689018e81a72eabb4931c29da0bdaba
function [radonmax, seed, target_out] = replay_shuffle_cycle(target,info, n, varargin) %REPLAY_SHUFFLE_CYCLE % % if nargin<3 help(mfilename) return end options=struct('seed', [], ... 'binomialtest', 1, ... 'binomialpvalue', 0.01, ... 'shufflevalue', [], ... ...
github
hsw28/data_analysis-master
replay_shuffle_clperm.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkReplay/replay_shuffle_clperm.m
4,737
utf_8
539d88a75da556eaefcb7862d574c2df
function [radonmax, seed, target_out] = replay_shuffle_clperm( target, info, n, varargin ) %REPLAY_SHUFFLE_CLPERM % % if nargin<3 help(mfilename) return end options=struct('seed', [], ... 'binomialtest', 1, ... 'binomialpvalue', 0.01, ... 'shufflevalue', [], ... ...
github
hsw28/data_analysis-master
radonengine.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkRadon/radonengine.m
10,021
utf_8
4fb898355da160b4b1338647bd0a4293
function E = radonengine() %RADONENGINE creates a radon engine % % e=RADONENGINE constructs an engine for computing the radon transform. % % A radon engine has the following inputs: % matrix - input matrix % dx - sampling interval in x-dimension % dy - sampling interval in y-dimension % origin - x and y origi...
github
hsw28/data_analysis-master
inclPoints.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkUtilities/inclPoints.m
3,057
utf_8
4c362b99bb475650753ed370c325a590
function validpts = inclPoints(points, include, exclude) %INCLPOINTS select 2D coordinates based on inclusive and exclusive regions % % b=INCLPOINTS(coordinates,include) for a nx2 matrix of 2d coordinates % returns true if the coordinate lies within the include boundaries and % false otherwise. Include boundaries ca...
github
hsw28/data_analysis-master
struct2param.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkUtilities/struct2param.m
1,054
utf_8
b44fcd44d242b7c67f12e12337ee71f2
function p = struct2param( s, expand ) %STRUCT2PARAM convert structure to parameter/value pairs % % p=STRUCT2PARAM(struct) returns a cell array of parameter/value pairs % based on the structure. % % p=STRUCT2PARAM(struct,expand) expands substructures % % Copyright 2005-2008 Fabian Kloosterman %check input argumen...
github
hsw28/data_analysis-master
nanquad.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkUtilities/nanquad.m
4,920
utf_8
7cb627f3fb2e060467fae6d4d26d7adc
function [Q,fcnt] = nanquad(funfcn,a,b,tol,trace,varargin) %NANQUAD evaluate integral, ignoring NaNs % % [...]=NANQUAD(...) same as quad, but ignores NaNs % % See also QUAD % %QUAD Numerically evaluate integral, adaptive Simpson quadrature. % Q = QUAD(FUN,A,B) tries to approximate the integral of function % FU...
github
hsw28/data_analysis-master
super.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkUtilities/super.m
1,116
utf_8
9954d1eb9c3d45fbe6ec5774cbaf473f
function superobj = super(obj, base) %SUPER super object of object % % superobj=SUPER(obj) returns the super object of an object or [] if % none exists. Only works for single inheritance. % % superobj=SUPER(obj,1) returns the super base object of an object. Only % works for single inheritance. % % super -- Super-...
github
hsw28/data_analysis-master
fill_dvd.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkUtilities/fill_dvd.m
4,549
utf_8
a59fa29f6fa2b1cf0d3a0fd7f1cf7198
function fill_dvd( rootdir, varargin ) %FILL_DVD create dvd file lists for data backup % % FILL_DVD(rootdir) constructs multiple lists of files searched in all % rootdir and all its subdirectories. Each list contains files that % together could fill a DVD. % % FILL_DVD(rootdir,parm1,val1,...) specifies optional par...
github
hsw28/data_analysis-master
binsearch.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkUtilities/binsearch.m
2,861
utf_8
753f7921666cdc5ff1c9365137b3a6b7
function v = binsearch( data, value, bias ) %BINSEARCH binary vector search % % idx=BINSEARCH(data,value) find the index of the element in the % data vector that is nearest to the requested value using a fast % binar search algorithm. Data should be sorted; this is not % checked however (for performance reasons) % ...
github
hsw28/data_analysis-master
struct_union.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkUtilities/struct_union.m
2,205
utf_8
d357ecf3fe4fe67a2d8d8448825b0779
function S = struct_union( S1, S2 ) %STRUCT_UNION return the union of two structures % % s=STRUCT_UNION(s1,s2) returns the union of two structures. If a field % is present in both s1 and s2 and at least one of the fields is not a % struct then the field from s2 is added. If both fields are structs the % function re...
github
hsw28/data_analysis-master
binfcn_gen.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkUtilities/binfcn_gen.m
5,492
utf_8
15927945ddd60d956dd175586f5cd95d
function f = binfcn_gen( option, varargin ) %BINFCN_GEN generator of binning functions % % f=BINFCN_GEN(fcn_type,...) This function generates a function handle % for a binning function. Arguments two and up are passed on to the % binning function. The signature for a binning function is: binedges = % fcn( time_wind...
github
hsw28/data_analysis-master
dump.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkUtilities/@configobj/dump.m
2,828
utf_8
72c30cf3b0e361c2feedbf30dd08e3ee
function val = dump( C, name, level ) %DUMP dump configobj to a string % % s=DUMP(c) dumps the contents of a configobj to a string. This function % calls itself recursively for all nested sections. % % s=DUMP(c,name) internal use only, specify the name of the current % section that is written to the string. % % s=...
github
hsw28/data_analysis-master
reconstructengine.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkReconstruction/reconstructengine.m
16,478
utf_8
9172c44ec5fb68320502721fc950e3b3
function E = reconstructengine(spikes, behavior, varargin) %RECONSTRUCTENGINE create a position reconstruction engine % % e=RECONSTRUCTENGINE(spikes, behavior) returns a reconstruction engine % and initialize it with a cell array of spike time vectors and a % behavior structure. The behavior structure should contain...
github
hsw28/data_analysis-master
uireconstruction.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkReconstruction/uireconstruction.m
28,096
utf_8
5d950ea90a9270ae67f84941fcd1db41
function uireconstruction( r, varargin ) %UIRECONSTRUCTION gui for stimulus reconstruction exploration % % UIRECONSTRUCTION(r) where r is a reconstruction engine % %parse arguments args = struct( 'radon_engine', [], ... 'regression_engine', [] ); args = parseArgs( varargin, args ); if nargin<1 erro...
github
hsw28/data_analysis-master
build_helptoc.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkHelp/private/build_helptoc.m
1,912
utf_8
d864102924cc066cc9bdd7ece6e24e6b
function document = build_helptoc( rootdir, doc_path, toolbox_name, T, cat_list ) %BUILD_HELPTOC T(end+1) = struct('label', 'Functions -- alphabetical list', ... 'target', 'reference.html', ... 'icon', 'reficon.gif', ... 'level', 0 ); if cat_list T(end+1) = stru...
github
hsw28/data_analysis-master
process_cluster_theta.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkDataAnalysis/process_cluster_theta.m
4,622
utf_8
6984fd1e12ce96389992c96c0c55f8f2
function process_cluster_theta( rootdir, epoch, varargin ) %PROCESS_CLUSTER_THETA assign theta amplitude/phase to cluster timestamps % % PROCESS_CLUSTER_THETA(rootdir,epoch) assign theta amplitude and phase % to spikes in all clusters for the specified epoch. For each cluster, % the theta signal from the correspondi...
github
hsw28/data_analysis-master
event_dispatch.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkEventDispatch/event_dispatch.m
23,199
utf_8
d4b8d2c9c19253ca215969b5f972df1f
function varargout = event_dispatch( hFig, cmd ) %EVENT_DISPATCH setup figure to receive event notification % % EVENT_DISPATCH sets up event notifications for the current figure. If % no figure exist a new one will be created. % % EVENT_DISPATCH ON sets up the current figure for event notifications. % % EVENT_DISPA...
github
hsw28/data_analysis-master
scroll_pan.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkEventDispatch/scroll_pan.m
10,819
utf_8
587dfe708d5f6e3eadd05124cac3bc45
function [state, props] = scroll_pan( hAx, varargin) %SCROLL_PAN adds panning capabilities to axes % % SCROLL_PAN toggles panning functionality for current axes. Scrolling the % mouse wheel over the x-axis or y-axis pans that axis by 50% of its % extent. Alternatively, the cursor keys can be used for % panning. Pre...
github
hsw28/data_analysis-master
tab_axes.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkEventDispatch/tab_axes.m
5,166
utf_8
d8331534dfb4fc3d5685121385512402
function state = tab_axes( hFig, cmd ) %TAB_AXES axes tabbing % % TAB_AXES toggles axes tabbing for current figure. Pressing 't' tabs % between axes. Pressing 'shift-t' show current axes. % % TAB_AXES TOGGLE toggles axes tabbing for current figure % % TAB_AXES ON turns on axes tabbing for current figure % % TAB_AX...
github
hsw28/data_analysis-master
get_pointer_object.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkEventDispatch/get_pointer_object.m
2,964
utf_8
4844ebf893c40bc7b8ebd8c133f45485
function [hObj, point] = get_pointer_object( hFig, point, option ) %GET_POINTER_OBJECT get object under mouse cursor % % [hObj,local_point]=GET_POINTER_OBJECT(hFig, screen_point) finds in the % figure with handle hFig the front-most object at the location of the % mouse cursor that has its HitTest property set to 1....
github
hsw28/data_analysis-master
enable_events.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkEventDispatch/enable_events.m
1,080
utf_8
933385ab0798051c85b505d387675e6a
function enable_events( h ) %ENABLE_EVENTS enable events for graphical objects % % ENABLE_EVENTS(h) enable event handling by graphical objects with % handles h. % if nargin<1 help(mfilename) return end if any( ~ishandle(h) ) error('enable_events:invalidHandle', 'Invalid handles') end for k=1:numel(h) tp...
github
hsw28/data_analysis-master
scroll_zoom.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkEventDispatch/scroll_zoom.m
12,789
utf_8
05f4c6c360c65811f5dcdb86a4bf12c0
function [state, props]=scroll_zoom( hAx, varargin ) %SCROLL_ZOOM adds zoom capabilities to axes % % SCROLL_ZOOM toggles zooming functionality for current axes. Scrolling % the mouse wheel over the x-axis or y-axis zoom in/out by a factor of % two. Alternatively, the cursor keys can be used for zooming. Pressing % ...
github
hsw28/data_analysis-master
ruler.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkEventDispatch/ruler.m
9,128
utf_8
6a2996ab769d65bb0827a352609d5080
function [state, props] = ruler( hAx, varargin ) %RULER add ruler capabilities to axes % % RULER toggles ruler functionality for current axes. Dragging the % left mouse button will display the ruler and its basic measures % (i.e. delta x, delta y, length and slope). Pressing the shift-key while % dragging, restrict...
github
hsw28/data_analysis-master
compoundfilter.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkMapping/compoundfilter.m
1,280
utf_8
1dabd5542493a6aa07032f0ca27acb72
function f=compoundfilter(varargin) %COMPOUNDFILTER create a compound filter function % % f=COMPOUNDFILTER(filter1,[op,]filter2,...) returns a function that % will filter its inputs by sequentially applying the the specified % filters. Each pair of filters can (but doesn't have to) be connected % by one of the foll...
github
hsw28/data_analysis-master
rangefilter.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkMapping/rangefilter.m
503
utf_8
1dabc99365efd4cea0a109b4533cd386
function f=rangefilter(range) %RANGEFILTER create a filter function % % f=RANGEFILTER(range) returns a function that will filter its inputs % for values that are within the range specified. % % Copyright 2007-2008 Fabian Kloosterman if nargin<1 || isempty(range) range = [-Inf Inf]; end f = @(x,varargin) interna...
github
hsw28/data_analysis-master
circrangefilter.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkMapping/circrangefilter.m
532
utf_8
18fd093111d7bc29064051015be5f813
function f=circrangefilter(range) %CIRCRANGEFILTER create a circular filter function % % f=CIRCRANGEFILTER(range) returns a function that will filter its % inputs for values that are within the range specified. % % Copyright 2007-2008 Fabian Kloosterman if nargin<1 || isempty(range) range = [0 2*pi]; end f = @(...
github
hsw28/data_analysis-master
segmentfilter.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkMapping/segmentfilter.m
553
utf_8
7cda0b5f19178f679d28133d446a30bb
function f=segmentfilter(segments) %SEGMENTFILTER create a segment filter function % % f=SEGMENTFILTER(segments) returns a function that will filter its inputs % for values that are within the segments specified. % % Copyright 2007-2008 Fabian Kloosterman if nargin<1 || isempty(segments) segments = [-Inf Inf]; e...
github
hsw28/data_analysis-master
fkgrid.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkMapping/@fkgrid/fkgrid.m
4,136
utf_8
9341ab121119aa2af39dd3424d564361
function G = fkgrid( varargin ) %FKGRID fkgrid object constructor % % g=FKGRID default constructor % % g=FKGRID(g) copy constructor % % g=FKGRID(grid_def1, ...) returns a new fkgrid object with the % specified grids for each dimension. A grid definition can be any of % the following: % vector - grid edges for a l...
github
hsw28/data_analysis-master
lappify.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkAnalysis/lappify.m
484
utf_8
ad274a540045c075e0d8162e7f83722c
function result = lappify(segments, time, props) %LAPPIIFY %for a cell array of time vectors and a corresponding cell array of %properties, this function will return a cell array of segments for each %property for each time vector. idx = applyfcn( @(t) select_idx(segments, t), [], time ); result = applyfcn( @(ii, pp)...
github
hsw28/data_analysis-master
inspect_ica.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkAnalysis/inspect_ica.m
6,780
utf_8
83d0aec770e30b3d8013b7966a3038de
function hf = inspect_ica( time, data, A, W ) %INSPECT_ICA handles.time = time; handles.data = data; handles.A = A; handles.W = W; handles.ymax = max( abs( handles.data(:) ) ); %create matrix of axes hf = figure(); handles.ui.panel1 = uipanel( 'Parent', hf, 'Units', 'characters', 'Position', ... ...
github
hsw28/data_analysis-master
mapcorr.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkAnalysis/stats/mapcorr.m
2,796
utf_8
4e6ce4896940facfa13535a327f56536
function [c, lags]=mapcorr(a,varargin) %MAPCORR spatial correlation of maps % % c=MAPCORR(a) computes the spatial normalized autocorrelation of a map. % % c=MAPCORR(a,b) computes the spatial normalized crosscorrelation of two % maps. % % [c,lags]=MAPCORR(a,b) returns cell array with x and y lags. % % [...]=MAPCORR...
github
hsw28/data_analysis-master
csi.m
.m
data_analysis-master/others_analysis_code/mwl-fabian/fkAnalysis/intervals/csi.m
5,595
utf_8
2e6a2dff057a19b6ddfaf9cf9f3adcce
function c = csi(spike_times, spike_amp, interval) %CSI calculate complex spike index % % Syntax % % c = csi( A [, spike_amp, interval]) % % Description % % This function will calculate the complex spike index for the spike % train A. Spike_amp is an optional vector of amplitudes for each spike % in A (...