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 | shayo/Kofiko-master | ApplySameSinhaAnalysisOnOldData.m | .m | Kofiko-master/AnalysisScripts/NewAnalysisPipeline/Sinha/ApplySameSinhaAnalysisOnOldData.m | 4,745 | utf_8 | d7968ef1a6ce1e5e1fe656e723f4e43f | function ApplySameSinhaAnalysisOnOldData()
strPath = 'D:\Data\Doris\Data For Publications\Sinha\SinhaExp\';
astrctFiles = dir([strPath,'Houdini*']);
strctTmp = load('Sinha11Parts_SelectedPerm');
acPartNames = {'Forehead','Left Eye','Nose','Right Eye','Left Cheek','Upper Lip','Right Cheek','Lower Left Cheek','Mouth','L... |
github | shayo/Kofiko-master | fnSinhaControlAnalysis.m | .m | Kofiko-master/AnalysisScripts/NewAnalysisPipeline/Sinha/fnSinhaControlAnalysis.m | 18,684 | utf_8 | 45ceb70aae9b0ab27deaf76ffa32e23d | function strctUnit = fnSinhaControlAnalysis(strctUnit, strctKofiko, strctInterval,strctConfig,aiTrialIndices)
% load('C:\DeleteMeUnit.mat');
% figure;
% imagesc(strctUnit.m_aiPeriStimulusRangeMS, 1:strctUnit.m_iNumStimuli, fnMyColorMap(strctUnit.m_a2fAvgFirintRate_Stimulus))
% Add quality information about the unit (... |
github | shayo/Kofiko-master | fnFinalScriptToGenerateFiguresForNeuronPaper.m | .m | Kofiko-master/AnalysisScripts/NewAnalysisPipeline/Sinha/fnFinalScriptToGenerateFiguresForNeuronPaper.m | 74,868 | utf_8 | 497385feb511c9f2afe6017d6cf063d1 | function fnFinalScriptToGenerateFiguresForNeuronPaper()
%% Final script to generate figures for the neuron paper.
global g_strctTmp1 g_strctTmp2
if isempty(g_strctTmp1)
g_strctTmp1 = load('D:\Data\Doris\Data For Publications\Sinha\Final Data For Revised Neuron Paper\Rocco_and_Houdini.mat');
end
if isempty(g_strctT... |
github | shayo/Kofiko-master | fnSinhaControlAnalysisV4.m | .m | Kofiko-master/AnalysisScripts/NewAnalysisPipeline/Sinha/fnSinhaControlAnalysisV4.m | 21,412 | utf_8 | b71c32c17b107ce524183eb7ffa132e2 | function strctUnit = fnSinhaControlAnalysisV4(strctUnit, strctKofiko, strctInterval,strctConfig,aiTrialIndices)
% load('C:\DeleteMeUnit.mat');
% figure;
% imagesc(strctUnit.m_aiPeriStimulusRangeMS, 1:strctUnit.m_iNumStimuli, fnMyColorMap(strctUnit.m_a2fAvgFirintRate_Stimulus))
% Add quality information about the unit... |
github | shayo/Kofiko-master | fnCollectPassiveFixationNewUnitStats.m | .m | Kofiko-master/AnalysisScripts/NewAnalysisPipeline/Sinha/fnCollectPassiveFixationNewUnitStats.m | 36,170 | utf_8 | 909e13390e0971e14ace5bd5f7ff9eef | function acUnitsStat = fnCollectPassiveFixationNewUnitStats(strctKofiko, strctSync, strctConfig, strctInterval,afActualFlipTime_PLX)
% Computes various statistics about the recorded units in a given recorded session
%
% Copyright (c) 2008 Shay Ohayon, California Institute of Technology.
% This file is a part of a free ... |
github | shayo/Kofiko-master | fnCollectPassiveFixationNewUnitStats2.m | .m | Kofiko-master/AnalysisScripts/NewAnalysisPipeline/Sinha/fnCollectPassiveFixationNewUnitStats2.m | 40,020 | utf_8 | c64040c3442c4debca4f072ed9761ea1 | function acUnitsStat = fnCollectPassiveFixationNewUnitStats(strctKofiko, strctSync, strctConfig, strctInterval,afActualFlipTime_PLX)
% Computes various statistics about the recorded units in a given recorded session
%
% Copyright (c) 2008 Shay Ohayon, California Institute of Technology.
% This file is a part of a free ... |
github | shayo/Kofiko-master | fnSmithWaterman.m | .m | Kofiko-master/MEX_Code/NeedlemanWunschAlignment/fnSmithWaterman.m | 1,977 | utf_8 | d16664cc222d70f34f2bee410e2324fb | function aiSentToRecvMapping=fnSmithWaterman(afInterSyncSent, afInterSyncReceived)
% Smith–Waterman algorithm
% http://en.wikipedia.org/wiki/Smith%E2%80%93Waterman_algorithm
% Size(H,1) = length(afInterSyncSent)+1
iNumSyncSent = length(afInterSyncSent);
iNumSyncRecv = length(afInterSyncReceived);
% Initialize
H = Na... |
github | shayo/Kofiko-master | fnNeedlemanWunsch.m | .m | Kofiko-master/MEX_Code/NeedlemanWunschAlignment/fnNeedlemanWunsch.m | 1,426 | utf_8 | eb5724a792cc3524301d9355d5845594 | function [aiMapAToB, aiMapBToA,AlignmentA,AlignmentB]=fnNeedlemanWunsch(afA, afB)
iA = length(afA);
iB = length(afB);
F = nans(iA+1,iB+1);
fDeleteWeight = -1;
F(:,1) = fDeleteWeight * [0:iA];
F(1,:) = fDeleteWeight * [0:iB];
for i=2:iA+1
for j=2:iB+1
fMatch = F(i-1,j-1) + fnWeight(afA(i-1),afB(j-1));
... |
github | shayo/Kofiko-master | view_ui.m | .m | Kofiko-master/PublicLib/xmltree/view_ui.m | 7,759 | utf_8 | 100afde361b6d6527a6adadc386cf1ae | function varargout = view_ui(action,figHandle)
% Used by XMLTREE/VIEW
% FORMAT varargout = view_ui(action)
%
% action - string
%_______________________________________________________________________
%
% Callback manager of xmltree-method view
%_______________________________________________________________________
% ... |
github | shayo/Kofiko-master | savexml.m | .m | Kofiko-master/PublicLib/xmltree/savexml.m | 4,297 | utf_8 | 62fd94d0932b8fe127ffe078d55fe684 | function savexml(filename, varargin)
%SAVEXML Save workspace variables to disk in XML.
% SAVEXML FILENAME saves all workspace variables to the XML-file
% named FILENAME.xml. The data may be retrieved with LOADXML. if
% FILENAME has no extension, .xml is assumed.
%
% SAVE, by itself, creates the XML-file named 'ma... |
github | shayo/Kofiko-master | struct2xml.m | .m | Kofiko-master/PublicLib/xmltree/struct2xml.m | 2,624 | utf_8 | 1f83e99e282f6257b4f2f1e217f49d7e | function tree = struct2xml(s,rootname)
%STRUCT2XML Convert structure to an XML tree object and specify its root name
% TREE = STRUCT2XML(S,ROOTNAME) converts the structure S into an XML
% representation TREE (an XMLTree object) with ROOTNAME as the root tag, if
% provided. Only conventional objects (char, double,... |
github | shayo/Kofiko-master | mat2xml.m | .m | Kofiko-master/PublicLib/xmltree/mat2xml.m | 3,169 | utf_8 | 03281d57b8f51730c07875d4b3846f29 | function varargout = mat2xml(matfile, xmlfile)
%MAT2XML Convert a MAT-file into an XML file
% MAT2XML(MATFILE, XMLFILE) loads MAT-file MATFILE and converts it
% into an XML file saved in XMLFILE.
% T = MAT2XML(MATFILE) also converts the MAT-file MATFILE to XML
% but returns it instead as an XMLTree object T.
%
% ... |
github | shayo/Kofiko-master | loadxml.m | .m | Kofiko-master/PublicLib/xmltree/loadxml.m | 3,878 | utf_8 | acd80d36beb813f9174939654cf853d4 | function varargout = loadxml(filename,varargin)
%LOADXML Load workspace variables from disk (XML file).
% LOADXML FILENAME retrieves all variables from a file given a full
% pathname or a MATLABPATH relative partial pathname (see PARTIALPATH).
% If FILENAME has no extension LOAD looks for FILENAME and FILENAME.xml ... |
github | shayo/Kofiko-master | delete.m | .m | Kofiko-master/PublicLib/xmltree/@xmltree/delete.m | 1,062 | utf_8 | 3d4e3ea2ee3b6465070509309e6064c2 | function tree = delete(tree,uid)
% XMLTREE/DELETE Delete (delete a subtree given its UID)
%
% tree - XMLTree object
% uid - array of UID's of subtrees to be deleted
%_______________________________________________________________________
%
% Delete a subtree given its UID
% The tree parameter must be in inp... |
github | shayo/Kofiko-master | save.m | .m | Kofiko-master/PublicLib/xmltree/@xmltree/save.m | 4,111 | utf_8 | 78be08cb954d03761753a9fe98f56f2c | function varargout = save(tree, filename)
% XMLTREE/SAVE Save an XML tree in an XML file
% FORMAT varargout = save(tree,filename)
%
% tree - XMLTree
% filename - XML output filename
% varargout - XML string
%_______________________________________________________________________
%
% Convert an XML tree into a wel... |
github | shayo/Kofiko-master | branch.m | .m | Kofiko-master/PublicLib/xmltree/@xmltree/branch.m | 1,604 | utf_8 | 8d3eae5e83ed16699dda04331b79ceed | function subtree = branch(tree,uid)
% XMLTREE/BRANCH Branch Method
% FORMAT uid = parent(tree,uid)
%
% tree - XMLTree object
% uid - UID of the root element of the subtree
% subtree - XMLTree object (a subtree from tree)
%_______________________________________________________________________
%
% Return a subtr... |
github | shayo/Kofiko-master | flush.m | .m | Kofiko-master/PublicLib/xmltree/@xmltree/flush.m | 1,271 | utf_8 | 96e2fc9e3b1f4af1a63337f8aaf4e40f | function tree = flush(tree,uid)
% XMLTREE/FLUSH Flush (Clear a subtree given its UID)
%
% tree - XMLTree object
% uid - array of UID's of subtrees to be cleared
% Default is root
%_______________________________________________________________________
%
% Clear a subtree given its UID (remove al... |
github | shayo/Kofiko-master | copy.m | .m | Kofiko-master/PublicLib/xmltree/@xmltree/copy.m | 1,497 | utf_8 | 5afe1fb7338fdafff4202e08838794e1 | function tree = copy(tree,subuid,uid)
% XMLTREE/COPY Copy Method (copy a subtree in another branch)
% FORMAT tree = copy(tree,subuid,uid)
%
% tree - XMLTree object
% subuid - UID of the subtree to copy
% uid - UID of the element where the subtree must be duplicated
%______________________________________... |
github | shayo/Kofiko-master | convert.m | .m | Kofiko-master/PublicLib/xmltree/@xmltree/convert.m | 4,799 | utf_8 | 9229ded6362bce2f23dae770252b435b | function s = convert(tree,uid)
% XMLTREE/CONVERT Converter an XML tree in a Matlab structure
%
% tree - XMLTree object
% uid - uid of the root of the subtree, if provided.
% Default is root
% s - converted structure
%_______________________________________________________________________... |
github | shayo/Kofiko-master | editor.m | .m | Kofiko-master/PublicLib/xmltree/@xmltree/editor.m | 10,949 | utf_8 | daebf8df1a333331f6d44baa3f519def | function editor(tree)
%XMLTREE/EDITOR A Graphical User Interface for an XML tree
% EDITOR(TREE) opens a new Matlab figure displaying the xmltree
% object TREE.
% H = EDITOR(TREE) also returns the figure handle H.
%
% This is a beta version of <xmltree/view> successor
%
% See also XMLTREE
% Copyright (C) 2004 Gui... |
github | shayo/Kofiko-master | find.m | .m | Kofiko-master/PublicLib/xmltree/@xmltree/find.m | 5,146 | utf_8 | 1e2038bcaac9fe80c3213b6c35c7ee5d | function list = find(varargin)
% XMLTREE/FIND Find elements in a tree with specified characteristics
% FORMAT list = find(varargin)
%
% tree - XMLTree object
% xpath - string path with specific grammar (XPath)
% uid - lists of root uid's
% parameter/value - pair of pattern
% list - list of uid's of matched elements... |
github | shayo/Kofiko-master | view.m | .m | Kofiko-master/PublicLib/xmltree/@xmltree/view.m | 5,879 | utf_8 | b26972066a91937d42a5bb86239b92e4 | function view(tree)
% XMLTREE/VIEW View Method
% FORMAT view(tree)
%
% tree - XMLTree object
%_______________________________________________________________________
%
% Display an XML tree in a graphical interface
%_______________________________________________________________________
% @(#)view.m ... |
github | shayo/Kofiko-master | xml_parser.m | .m | Kofiko-master/PublicLib/xmltree/@xmltree/private/xml_parser.m | 14,433 | utf_8 | 27361c7b935d10ceb059a765013a180e | function tree = xml_parser(xmlstr)
% XML (eXtensible Markup Language) Processor
% FORMAT tree = xml_parser(xmlstr)
%
% xmlstr - XML string to parse
% tree - tree structure corresponding to the XML file
%_______________________________________________________________________
%
% xml_parser.m is an XML 1.0 (http://ww... |
github | shayo/Kofiko-master | circ_kuipertest.m | .m | Kofiko-master/PublicLib/CircStat/circ_kuipertest.m | 2,936 | utf_8 | c0f1752d03dfca258d929016fd432c43 | function [pval, k, K] = circ_kuipertest(alpha1, alpha2, res, vis_on)
% [pval, k, K] = circ_kuipertest(sample1, sample2, res, vis_on)
%
% The Kuiper two-sample test tests whether the two samples differ
% significantly.The difference can be in any property, such as mean
% location and dispersion. It is a circula... |
github | shayo/Kofiko-master | circ_clust.m | .m | Kofiko-master/PublicLib/CircStat/circ_clust.m | 3,346 | utf_8 | 09f16d972b35b7b7b55b361710748587 | function [cid, alpha, mu] = circ_clust(alpha, numclust, disp)
%
% [cid, alpha, mu] = circClust(alpha, numclust, disp)
% Performs a simple agglomerative clustering of angular data.
%
% Input:
% alpha sample of angles
% numclust number of clusters desired, default: 2
% disp show plot at each ste... |
github | shayo/Kofiko-master | circ_raotest.m | .m | Kofiko-master/PublicLib/CircStat/circ_raotest.m | 4,132 | utf_8 | a088b9d557b94032992d192ef76b8fd4 | function [p U UC] = circ_raotest(alpha)
% [p U UC] = circ_raotest(alpha)
% Calculates Rao's spacing test by comparing distances between points on
% a circle to those expected from a uniform distribution.
%
% H0: Data is distributed uniformly around the circle.
% H1: Data is not uniformly distributed around th... |
github | shayo/Kofiko-master | circ_cmtest.m | .m | Kofiko-master/PublicLib/CircStat/circ_cmtest.m | 2,038 | utf_8 | d9baaaa266f09e15a452c47ebd073fcb | function [pval med P] = circ_cmtest(varargin)
%
% [pval, med, P] = circ_cmtest(alpha, idx)
% [pval, med, P] = circ_cmtest(alpha1, alpha2)
% Non parametric multi-sample test for equal medians. Similar to a
% Kruskal-Wallis test for linear data.
%
% H0: the s populations have equal medians
% HA: the s populations... |
github | shayo/Kofiko-master | circ_wwtest.m | .m | Kofiko-master/PublicLib/CircStat/circ_wwtest.m | 4,471 | utf_8 | 6d649e039fe456ba8a5ddb25d84a5eca | function [pval table] = circ_wwtest(varargin)
% [pval, table] = circ_wwtest(alpha, idx, [w])
% [pval, table] = circ_wwtest(alpha1, alpha2, [w1, w2])
% Parametric Watson-Williams multi-sample test for equal means. Can be
% used as a one-way ANOVA test for circular data.
%
% H0: the s populations have equal means
%... |
github | shayo/Kofiko-master | mexPlexM.m | .m | Kofiko-master/PublicLib/Plexon/Offline/mexPlexM.m | 76,435 | utf_8 | 64bd80e1f1f736e58ace5a44eab25be9 | function [varargout] = mexPlexM(sub_command, filename, varargin)
%MEXPLEX emulate the functions from Plexon's mexPlex.dll as mexPlex.m so it
%will work on the macintosh.
% I will only bother to reverse engineer functions I actually need, but
% the function prototypes are from the current mexPlex as distributed by P... |
github | shayo/Kofiko-master | specscope.m | .m | Kofiko-master/PublicLib/Chronux/spectral_analysis/specscope/specscope.m | 18,968 | utf_8 | b67aa0a85101a9f8f5061995b2d4dcb9 | 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 present, will ... |
github | shayo/Kofiko-master | rtf.m | .m | Kofiko-master/PublicLib/Chronux/spectral_analysis/specscope/rtf.m | 4,927 | utf_8 | 643598d912d578b46cdc9aa085fa78f8 | 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',...
'KeyPressFcn', @k... |
github | shayo/Kofiko-master | specscopepp.m | .m | Kofiko-master/PublicLib/Chronux/spectral_analysis/specscope/specscopepp.m | 19,677 | utf_8 | 36533b75a54fc2d7689db8409d0d285c | 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 attached micropho... |
github | shayo/Kofiko-master | DesignGUI.m | .m | Kofiko-master/Apps/fMRI/DesignGUI.m | 13,683 | utf_8 | 62774bf6d9c6f98a44b41cd1850c081c | function varargout = DesignGUI(varargin)
% DESIGNGUI MATLAB code for DesignGUI.fig
% DESIGNGUI, by itself, creates a new DESIGNGUI or raises the existing
% singleton*.
%
% H = DESIGNGUI returns the handle to a new DESIGNGUI or the handle to
% the existing singleton*.
%
% DESIGNGUI('CALLBACK',hO... |
github | shayo/Kofiko-master | RegSessionsWrapper.m | .m | Kofiko-master/Apps/fMRI/RegSessionsWrapper.m | 14,287 | utf_8 | 3191e4ae3387d35eb672807c0f08d3ce | function varargout = RegSessionsWrapper(varargin)
% REGSESSIONSWRAPPER M-file for RegSessionsWrapper.fig
% REGSESSIONSWRAPPER, by itself, creates a new REGSESSIONSWRAPPER or raises the existing
% singleton*.
%
% H = REGSESSIONSWRAPPER returns the handle to a new REGSESSIONSWRAPPER or the handle to
% ... |
github | shayo/Kofiko-master | InteractiveBrainMask.m | .m | Kofiko-master/Apps/fMRI/InteractiveBrainMask.m | 11,075 | utf_8 | 49caa761016fcbe645d79046fa8942c1 | function varargout = InteractiveBrainMask(varargin)
% INTERACTIVEBRAINMASK MATLAB code for InteractiveBrainMask.fig
% INTERACTIVEBRAINMASK, by itself, creates a new INTERACTIVEBRAINMASK or raises the existing
% singleton*.
%
% H = INTERACTIVEBRAINMASK returns the handle to a new INTERACTIVEBRAINMASK or t... |
github | shayo/Kofiko-master | xml2struct.m | .m | Kofiko-master/Apps/fMRI/xml2struct.m | 2,163 | utf_8 | 89d5349cc31971f9e87b90624eac5df5 | function theStruct = xml2struct(filename)
% XML2STRUCT Convert an XML file into a MATLAB structure.
% Copyright 2003-2007 The MathWorks, Inc.
% $Revision: 1.1.4.3 $ $Date: 2007/06/04 21:04:28 $
% Based on an idea by Douglas M. Schwarz, Eastman Kodak Company
try
tree = xmlread(filename);
catch
error('B... |
github | shayo/Kofiko-master | fnExtractRunInformation.m | .m | Kofiko-master/Apps/fMRI/fnExtractRunInformation.m | 16,495 | utf_8 | 4e2193e0c4db685a1f203ceba541d523 | function astrctRuns = fnExtractRunInformation(acInputKofikoFolders)
% Reads all kofiko files found in the given folders.
% It then parse them and extracts the relevant information for each of the
% recorded runs (i.e., all the parameters that were used to display the
% images, etc).
%
%
% Information contains:
% ... |
github | shayo/Kofiko-master | fnParseString.m | .m | Kofiko-master/Apps/fMRI/fnParseString.m | 637 | utf_8 | 2fa4df1e9e501caf7263063362740fdb | function strTemplate=fnParseString(strTemplate, astrctExtraParse)
if isempty(strTemplate)
return;
end;
astrctTable = fnGenerateStandardParsingTable();
astrctExtTable = [astrctTable,astrctExtraParse];
for k=1:length(astrctExtTable)
strTemplate=strrep(strTemplate, astrctExtTable(k).m_strTemplate,astrctExtTable(k)... |
github | shayo/Kofiko-master | FuncAnal.m | .m | Kofiko-master/Apps/fMRI/FuncAnal.m | 71,251 | utf_8 | 7377897b6c8165bb747ece235ba0d8e9 | function varargout = FuncAnal(varargin)
% FUNCANAL MATLAB code for FuncAnal.fig
% FUNCANAL, by itself, creates a new FUNCANAL or raises the existing
% singleton*.
%
% H = FUNCANAL returns the handle to a new FUNCANAL or the handle to
% the existing singleton*.
%
% FUNCANAL('CALLBACK',hObject,ev... |
github | shayo/Kofiko-master | fnMatchEPIRunsToKofikoRuns.m | .m | Kofiko-master/Apps/fMRI/fnMatchEPIRunsToKofikoRuns.m | 2,350 | utf_8 | 5ed43706fee7f00c7ca526ebbd9f815c | function aiEPIIndexToKofikoIndex = fnMatchEPIRunsToKofikoRuns(acHeaders, astrctKofikoRuns)
iNumEPIs = length(acHeaders);
iNumKofikoRuns = length(astrctKofikoRuns);
aiEPIIndexToKofikoIndex = zeros(1,iNumEPIs);
if iNumKofikoRuns == 0 || iNumEPIs == 0
return;
end
aiNumTRinEPI = zeros(1,iNumEPIs);
for k=1:length(acHea... |
github | shayo/Kofiko-master | FuncPreprocGUI.m | .m | Kofiko-master/Apps/fMRI/FuncPreprocGUI.m | 19,462 | utf_8 | dc6bc3cca58adc3d8a1a951d63c40416 | function varargout = FuncPreprocGUI(varargin)
% FUNCPREPROCGUI M-file for FuncPreprocGUI.fig
% FUNCPREPROCGUI, by itself, creates a new FUNCPREPROCGUI or raises the existing
% singleton*.
%
% H = FUNCPREPROCGUI returns the handle to a new FUNCPREPROCGUI or the handle to
% the existing singleton*.
%
... |
github | shayo/Kofiko-master | fMRI.m | .m | Kofiko-master/Apps/fMRI/fMRI.m | 3,530 | utf_8 | bd4627affec4846d892224b4570eccd9 | function varargout = fMRI(varargin)
% FMRI MATLAB code for fMRI.fig
% FMRI, by itself, creates a new FMRI or raises the existing
% singleton*.
%
% H = FMRI returns the handle to a new FMRI or the handle to
% the existing singleton*.
%
% FMRI('CALLBACK',hObject,eventData,handles,...) calls the l... |
github | shayo/Kofiko-master | UnpackGUI.m | .m | Kofiko-master/Apps/fMRI/UnpackGUI.m | 10,027 | utf_8 | fa884a0dc825d8afbcc48df10cfa9f7d | function varargout = UnpackGUI(varargin)
% UNPACKGUI M-file for UnpackGUI.fig
% UNPACKGUI, by itself, creates a new UNPACKGUI or raises the existing
% singleton*.
%
% H = UNPACKGUI returns the handle to a new UNPACKGUI or the handle to
% the existing singleton*.
%
% UNPACKGUI('CALLBACK',hObject... |
github | shayo/Kofiko-master | FuncAnalWrapper.m | .m | Kofiko-master/Apps/fMRI/FuncAnalWrapper.m | 6,319 | utf_8 | e2706a00d5eba9bb46a5b3306adf9fd1 | function varargout = FuncAnalWrapper(varargin)
% FUNCANALWRAPPER M-file for FuncAnalWrapper.fig
% FUNCANALWRAPPER, by itself, creates a new FUNCANALWRAPPER or raises the existing
% singleton*.
%
% H = FUNCANALWRAPPER returns the handle to a new FUNCANALWRAPPER or the handle to
% the existing singlet... |
github | shayo/Kofiko-master | fnReadParamsFromXML.m | .m | Kofiko-master/Apps/fMRI/fnReadParamsFromXML.m | 1,885 | utf_8 | 3d23527b07de29287a7289c96fc436d7 | function [acParams,acStems,acPresets] = fnReadParamsFromXML(strXMLFile)
strctXML = xml2struct(strXMLFile);
acParams = {};
acStems = {};
acPresets = {};
for k=1:length(strctXML)
if strcmpi(strctXML(k).Name,'Config')
for j=1:length(strctXML(k).Children)
if strcmpi(strctXML(k).Children(j).Name,'Va... |
github | shayo/Kofiko-master | StatServerSetting.m | .m | Kofiko-master/Apps/StatServer/StatServerSetting.m | 15,328 | utf_8 | 39166022204dcb5173802c31c10112a0 | function varargout = StatServerSetting(varargin)
% STATSERVERSETTING M-file for StatServerSetting.fig
% STATSERVERSETTING, by itself, creates a new STATSERVERSETTING or raises the existing
% singleton*.
%
% H = STATSERVERSETTING returns the handle to a new STATSERVERSETTING or the handle to
% the ex... |
github | shayo/Kofiko-master | fnMyBar.m | .m | Kofiko-master/Apps/StatServer/fnMyBar.m | 7,035 | utf_8 | 056f8d3b80ffa69a548e74215953fc71 | function hh = bar(varargin)
%BAR Bar graph.
% BAR(X,Y) draws the columns of the M-by-N matrix Y as M groups of N
% vertical bars. The vector X must not have duplicate values.
%
% BAR(Y) uses the default value of X=1:M. For vector inputs, BAR(X,Y)
% or BAR(Y) draws LENGTH(Y) bars. The colors are set by the co... |
github | shayo/Kofiko-master | fnSetAxesForPlotting.m | .m | Kofiko-master/Apps/StatServer/fnSetAxesForPlotting.m | 5,484 | utf_8 | b7e08861c5134db5176267e2a07b2114 | function fnSetAxesForPlotting()
global g_strctConfig g_strctWindows g_strctNeuralServer g_strctCycle
%
% Delete all kids...
ahChildren = get(g_strctWindows.m_strctStatPanel.m_hPanel,'Children');
delete(ahChildren(ishandle(ahChildren)));
% Now plot (!)
if ~isfield(g_strctNeuralServer,'m_iNumberUnitsPerChannel')
iN... |
github | shayo/Kofiko-master | fnVisualMiceHook.m | .m | Kofiko-master/Apps/StatServer/fnVisualMiceHook.m | 954 | utf_8 | fe344b5c58709072ee82a3e2c538ea36 | function fnVisualMiceHook(bInit)
global g_bPlot
if bInit
fndllMiceHook('Init');
end
iNumMice = fndllMiceHook('GetNumMice');
hFigure = figure;
set(hFigure,'CloseRequestFcn',@fnCloseVisualMiceHook,'Name','Move mice advancers to see which one is which...');
clf;
g_bPlot = 1;
N = 100;
a2fHistory = zeros(iNumMice,N);
iC... |
github | shayo/Kofiko-master | fnStatServerCallbacks.m | .m | Kofiko-master/Apps/StatServer/fnStatServerCallbacks.m | 15,760 | utf_8 | bab9874b6a26e499afb59f15242b8fec | function fnStatServerCallbacks(strEvent, varargin)
global g_strctCycle g_strctConfig g_strctNet g_strctNeuralServer g_strctWindows g_DebugDataLog g_counter
switch strEvent
case 'UpdateAxes'
fnSetAxesForPlotting();
case 'SetBarGraphRange'
if strcmpi(varargin{1},'Start')
g_st... |
github | shayo/Kofiko-master | StatServer.m | .m | Kofiko-master/Apps/StatServer/StatServer.m | 20,745 | utf_8 | 6283b5194d5fa534101d75dae6b7eab6 | function StatServer
global g_bAppIsRunning g_strctConfig g_strctCycle g_DebugDataLog g_counter g_strctNeuralServer g_strctWindows
dbstop if error
addpath('.\MEX\win32;.\PublicLib\Plexon\Realtime;.\PublicLib\Msocket;');
% addpath(genpath('.\StatServer'));
g_strctConfig.m_strctDirectories.m_strDataFolder = 'C:\Shay\Dat... |
github | shayo/Kofiko-master | PlexonChannelGUI.m | .m | Kofiko-master/Apps/StatServer/PlexonChannelGUI/PlexonChannelGUI.m | 11,952 | utf_8 | 60a74645d93e8f349af944bde21ee2c5 | function varargout = PlexonChannelGUI(varargin)
% PLEXONCHANNELGUI M-file for PlexonChannelGUI.fig
% PLEXONCHANNELGUI, by itself, creates a new PLEXONCHANNELGUI or raises the existing
% singleton*.
%
% H = PLEXONCHANNELGUI returns the handle to a new PLEXONCHANNELGUI or the handle to
% the existing ... |
github | shayo/Kofiko-master | ElectrophysGUI.m | .m | Kofiko-master/Apps/StatServer/ElectrophysGUI/ElectrophysGUI.m | 31,007 | utf_8 | e489f8f75b4f36b43c4ae6f79cf46743 | function varargout = ElectrophysGUI(varargin)
% ELECTROPHYSGUI M-file for ElectrophysGUI.fig
% ELECTROPHYSGUI, by itself, creates a new ELECTROPHYSGUI or raises the existing
% singleton*.
%
% H = ELECTROPHYSGUI returns the handle to a new ELECTROPHYSGUI or the handle to
% the existing singleton*.
%
... |
github | shayo/Kofiko-master | NeuralServerGUI.m | .m | Kofiko-master/Apps/StatServer/NeuralServerGUI/NeuralServerGUI.m | 3,212 | utf_8 | d5077ccd026f86604a136cfb01ca561c | function varargout = NeuralServerGUI(varargin)
% NEURALSERVERGUI M-file for NeuralServerGUI.fig
% NEURALSERVERGUI, by itself, creates a new NEURALSERVERGUI or raises the existing
% singleton*.
%
% H = NEURALSERVERGUI returns the handle to a new NEURALSERVERGUI or the handle to
% the existing singlet... |
github | shayo/Kofiko-master | NanoStimulatorGUI.m | .m | Kofiko-master/Apps/ChipKitStimGUI/NanoStimulatorGUI.m | 23,596 | utf_8 | f11100c0ce875532ae2f70ed1c1de206 | function varargout = NanoStimulatorGUI(varargin)
% NANOSTIMULATORGUI MATLAB code for NanoStimulatorGUI.fig
% NANOSTIMULATORGUI, by itself, creates a new NANOSTIMULATORGUI or raises the existing
% singleton*.
%
% H = NANOSTIMULATORGUI returns the handle to a new NANOSTIMULATORGUI or the handle to
% t... |
github | shayo/Kofiko-master | fnReadParametersFromStimulator.m | .m | Kofiko-master/Apps/ChipKitStimGUI/fnReadParametersFromStimulator.m | 1,932 | utf_8 | b0fd62b82bec993b680afc37830446cb | function [astrctChannel,acPresetNames] = fnReadParametersFromStimulator(hSocket)
fnClearMessageQueue(hSocket);
NUM_CHANNELS = 2;
NUM_PRESETS = 4;
UDP_GET_CURRENT_SETTINGS = 15;
UDP_GET_PRESET_NAMES = 16;
IOPort('Write', hSocket , uint8([sprintf('%02d',UDP_GET_CURRENT_SETTINGS),10]));
for iChannel=1:NUM_CHANNELS
... |
github | shayo/Kofiko-master | ChipKitStimGUI.m | .m | Kofiko-master/Apps/ChipKitStimGUI/ChipKitStimGUI.m | 23,853 | utf_8 | e821d4dd09a0f9bc8082a013f832ed8b | function varargout = ChipKitStimGUI(varargin)
% CHIPKITSTIMGUI MATLAB code for ChipKitStimGUI.fig
% CHIPKITSTIMGUI, by itself, creates a new CHIPKITSTIMGUI or raises the existing
% singleton*.
%
% H = CHIPKITSTIMGUI returns the handle to a new CHIPKITSTIMGUI or the handle to
% the existing singleton... |
github | shayo/Kofiko-master | fnSetStimulationTrain.m | .m | Kofiko-master/Apps/ChipKitStimGUI/fnSetStimulationTrain.m | 3,980 | utf_8 | 36b287dfb5f9944f2269ab7e84c6f550 | function bOK = fnSetStimulationTrain(iChannel, strctParams)
% Channel is 1 or 2
global g_hNanoStimulatorPort g_strctDAQParams
UDP_MODIFY_PULSE_FREQ = 1;
UDP_MODIFY_PULSE_WIDTH = 2;
UDP_MODIFY_SECOND_PULSE = 3;
UDP_MODIFY_TRAIN_LENGTH = 4;
UDP_MODIFY_TRAIN_FREQ = 5;
UDP_MODIFY_NUM_TRAINS = 6;
UDP_MODIFY_TRIG_DELAY = 7;... |
github | shayo/Kofiko-master | ChipKitStimGUI_Serial.m | .m | Kofiko-master/Apps/ChipKitStimGUI/ChipKitStimGUI_Serial.m | 26,640 | utf_8 | 23bf3a5a3936b9c6155ef345f06b2804 | function varargout = ChipKitStimGUI_Serial(varargin)
% CHIPKITSTIMGUI_SERIAL MATLAB code for ChipKitStimGUI_Serial.fig
% CHIPKITSTIMGUI_SERIAL, by itself, creates a new CHIPKITSTIMGUI_SERIAL or raises the existing
% singleton*.
%
% H = CHIPKITSTIMGUI_SERIAL returns the handle to a new CHIPKITSTIMGUI_SERI... |
github | shayo/Kofiko-master | DataBrowser.m | .m | Kofiko-master/Apps/DataBrowser/DataBrowser.m | 67,644 | utf_8 | a5ef5af37d66654ed162e7011406a4a4 | function varargout = DataBrowser(varargin)
%
% Copyright (c) 2008 Shay Ohayon, California Institute of Technology.
% This file is a part of a free software. you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation (see GPL.txt)
% DATABR... |
github | shayo/Kofiko-master | DataBrowserPopulation.m | .m | Kofiko-master/Apps/DataBrowser/DataBrowserPopulation.m | 13,285 | utf_8 | 7aa68e406dbfa76aec6afc6c6f4d9411 | function varargout = DataBrowserPopulation(varargin)
% DATABROWSERPOPULATION MATLAB code for DataBrowserPopulation.fig
% DATABROWSERPOPULATION, by itself, creates a new DATABROWSERPOPULATION or raises the existing
% singleton*.
%
% H = DATABROWSERPOPULATION returns the handle to a new DATABROWSERPOPULATI... |
github | shayo/Kofiko-master | uiinspect.m | .m | Kofiko-master/Apps/DataBrowser/uiinspect.m | 105,246 | utf_8 | af977ad9c164aacc0bbbb60d81de4bb9 | function hFig = uiinspect(obj, fig)
% uiinspect Inspect an object handle (Java/COM/HG) and display its methods/props/callbacks in a unified window
%
% Syntax:
% hFig = uiinspect(obj, hFig) % hFig input argument is optional
%
% Description:
% UIINSPECT(OBJ) inspects an object handle (e.g., Java, COM, Handle
% ... |
github | shayo/Kofiko-master | ps2pdf.m | .m | Kofiko-master/Apps/DataBrowser/ps2pdf.m | 15,997 | utf_8 | 8ee9947ed9a7ed50b48b6c0230c9806c | function ps2pdf(varargin)
%PS2PDF Function to convert a PostScript file to PDF using Ghostscript
%
% Converts a postscript file into PDF. The resulting PDF file will contain
% one page for each page defined in the postscript files, so a multi-page
% postscript file, like those generated by using the '-append' option... |
github | shayo/Kofiko-master | PLX_To_Kofiko.m | .m | Kofiko-master/Apps/PLX_To_Kofiko/PLX_To_Kofiko.m | 6,554 | utf_8 | 6e508919b82263b442fd835fc62ab31b | function varargout = PLX_To_Kofiko(varargin)
% PLX_TO_KOFIKO M-file for PLX_To_Kofiko.fig
% PLX_TO_KOFIKO, by itself, creates a new PLX_TO_KOFIKO or raises the existing
% singleton*.
%
% H = PLX_TO_KOFIKO returns the handle to a new PLX_TO_KOFIKO or the handle to
% the existing singleton*.
%
% ... |
github | shayo/Kofiko-master | fnRecursiveParse.m | .m | Kofiko-master/Apps/Common/fnRecursiveParse.m | 3,298 | utf_8 | d5ca776cbc74c49af0459c3099a94e1d | function strctConfig = fnRecursiveParse(strctRAW,strctConfig,strRoot, iDepth,bAugmentDepth,iParentIndex)
iNumElements = length(strctRAW);
for iElementIter=1:iNumElements
if strcmpi(strctRAW(iElementIter).Name,'#comment') || strcmpi(strctRAW(iElementIter).Name,'#text')
continue;
end;
iNumAttri... |
github | shayo/Kofiko-master | SessionBrowser.m | .m | Kofiko-master/Apps/SessionBrowser/SessionBrowser.m | 56,668 | utf_8 | 446934e7b08417af05097d3f1e9f1964 | function varargout = SessionBrowser(varargin)
%
% Copyright (c) 2008 Shay Ohayon, California Institute of Technology.
% This file is a part of a free software. you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation (see GPL.txt)
% SES... |
github | shayo/Kofiko-master | fnDrawEllipse.m | .m | Kofiko-master/Apps/SpikeSorter/fnDrawEllipse.m | 1,654 | utf_8 | aefc7c2c275f731cafe44442b942ebd1 | function ahHandles = fnDrawEllipse(astrctEllipse, a2fColors)
%
% Copyright (c) 2008 Shay Ohayon, California Institute of Technology.
% This file is a part of a free software. you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation (see ... |
github | shayo/Kofiko-master | SpikeSorter.m | .m | Kofiko-master/Apps/SpikeSorter/SpikeSorter.m | 97,751 | utf_8 | 5cffda2b2946bb87455b24e68e657720 | function varargout = SpikeSorter(varargin)
% SPIKESORTER M-file for SpikeSorter.fig
% SPIKESORTER, by itself, creates a new SPIKESORTER or raises the existing
% singleton*.
%
% H = SPIKESORTER returns the handle to a new SPIKESORTER or the handle to
% the existing singleton*.
%
% SPIKESORTER('C... |
github | shayo/Kofiko-master | NanoStimulatorGUI.m | .m | Kofiko-master/Apps/NanoStimulatorGUI/NanoStimulatorGUI.m | 23,311 | utf_8 | c543aa9b93b03ca6679753ea21072e5d | function varargout = NanoStimulatorGUI(varargin)
% NANOSTIMULATORGUI MATLAB code for NanoStimulatorGUI.fig
% NANOSTIMULATORGUI, by itself, creates a new NANOSTIMULATORGUI or raises the existing
% singleton*.
%
% H = NANOSTIMULATORGUI returns the handle to a new NANOSTIMULATORGUI or the handle to
% t... |
github | shayo/Kofiko-master | RemoteClient.m | .m | Kofiko-master/Apps/RemoteClient/RemoteClient.m | 15,658 | utf_8 | 870489685713a6b4e1d90af7e700a8d0 | function varargout = RemoteClient(varargin)
% REMOTECLIENT M-file for RemoteClient.fig
% REMOTECLIENT, by itself, creates a new REMOTECLIENT or raises the existing
% singleton*.
%
% H = REMOTECLIENT returns the handle to a new REMOTECLIENT or the handle to
% the existing singleton*.
%
% REMOTEC... |
github | shayo/Kofiko-master | BlockDesign.m | .m | Kofiko-master/Apps/StandaloneParadigms/BlockDesign/BlockDesign.m | 18,755 | utf_8 | b9bd86f67f09b62c2a031577ff960885 | function varargout = BlockDesign(varargin)
% BLOCKDESIGN M-file for BlockDesign.fig
% BLOCKDESIGN, by itself, creates a new BLOCKDESIGN or raises the existing
% singleton*.
%
% H = BLOCKDESIGN returns the handle to a new BLOCKDESIGN or the handle to
% the existing singleton*.
%
% BLOCKDESIGN('C... |
github | shayo/Kofiko-master | RegisterGUI.m | .m | Kofiko-master/Apps/RegisterGUI/RegisterGUI.m | 12,829 | utf_8 | 913e592d953dfa1ca9ea569d1aa3c0ca | function varargout = RegisterGUI(varargin)
% REGISTERGUI M-file for RegisterGUI.fig
% REGISTERGUI, by itself, creates a new REGISTERGUI or raises the existing
% singleton*.
%
% H = REGISTERGUI returns the handle to a new REGISTERGUI or the handle to
% the existing singleton*.
%
% REGISTERGUI('C... |
github | shayo/Kofiko-master | StimulusServer.m | .m | Kofiko-master/Apps/StimulusServer/StimulusServer.m | 7,115 | utf_8 | 632244a254071c6d3f029fb532552bc0 | function StimulusServer(strXMLConfigFile)
clear global
dbstop if error
global g_strctPTB g_strctServerCycle g_strctConfig g_strctNet g_bVERBOSE g_bSIMULATE g_strctSoundMedia
g_bVERBOSE = true; % this will display logged messages on screen
if ~exist('.\Config\StimServerConfigForDifferentRigs','dir')
fprintf('Criti... |
github | shayo/Kofiko-master | fnStimulusServerCycle.m | .m | Kofiko-master/Apps/StimulusServer/fnStimulusServerCycle.m | 10,174 | utf_8 | 0a9f255ca4f760766997892822257da4 | function fnStimulusServerCycle()
global g_strctServerCycle g_strctNet g_strctPTB g_strctConfig g_strctSoundMedia
fCurrTime = GetSecs;
g_strctServerCycle.m_iNumCycles = g_strctServerCycle.m_iNumCycles + 1;
if fCurrTime-g_strctServerCycle.m_fCycleTimer > g_strctServerCycle.m_fCycleTimerRateMS/1e3
% fprintf('%d\n',g_... |
github | shayo/Kofiko-master | Kofiko.m | .m | Kofiko-master/Apps/Kofiko/Kofiko.m | 56,867 | utf_8 | 8fa024f52ae52da7f919290adb3f2deb | function Kofiko(strXMLConfigFileName, strctRegisterConfig)
%
% Copyright (c) 2008 Shay Ohayon, California Institute of Technology.
% This file is a part of a free software. you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation (see GP... |
github | shayo/Kofiko-master | fnMyStructToXML.m | .m | Kofiko-master/Apps/Kofiko/fnMyStructToXML.m | 3,708 | utf_8 | 434ee046f7537e73648c93b22b494fcd | function fnMyStructToXML(strctConfig, strFilename)
hFileHandle = fopen(strFilename,'w+');
Depth = 0;
fprintf(hFileHandle,'<Config>\n');
fnRecursivePrint(strctConfig, Depth, hFileHandle)
fprintf(hFileHandle,'</Config>\n');
fclose(hFileHandle);
return;
function fnRecursivePrint(strctConfig, Depth, hFileHandle)
acFieldN... |
github | shayo/Kofiko-master | fnResampleKofikoToPlex.m | .m | Kofiko-master/Apps/Kofiko/fnResampleKofikoToPlex.m | 4,668 | utf_8 | b535fcdfaef489730ca5576ea7eccb7d | function Values = fnResampleKofikoToPlex(strctTsVar, afPlexonTime, strctSession)
%
% Copyright (c) 2008 Shay Ohayon, California Institute of Technology.
% This file is a part of a free software. you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Softw... |
github | shayo/Kofiko-master | fnMyUIControlEdit.m | .m | Kofiko-master/Apps/Kofiko/fnMyUIControlEdit.m | 884 | utf_8 | bc765cdacc53aa9b1eba8396f7aa92f2 | function hHandle = fnMyUIControlEdit(varargin)
% Access undocumented java callbacks... :)
hHandle = uicontrol(varargin{:});
%
% while (1)
% jHandle = java(findjobj(hHandle));
% if isempty(jHandle)
% drawnow
% WaitSecs(0.001);
% else
% break;
% end
% end
% jbh = handle(jHandle,'... |
github | shayo/Kofiko-master | fnDrawAttentionStimServer.m | .m | Kofiko-master/Apps/Kofiko/fnDrawAttentionStimServer.m | 1,506 | utf_8 | fb55bcfe2df228be9f6c2184818758f9 | function fnDrawAttentionStimServer()
%
% Copyright (c) 2008 Shay Ohayon, California Institute of Technology.
% This file is a part of a free software. you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation (see GPL.txt)
global g_strct... |
github | shayo/Kofiko-master | fnShutDown.m | .m | Kofiko-master/Apps/Kofiko/fnShutDown.m | 3,220 | utf_8 | 5ca128d5a407413fea63691de29bbe80 | function fnShutDown()
%
% Copyright (c) 2008 Shay Ohayon, California Institute of Technology.
% This file is a part of a free software. you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation (see GPL.txt)
global g_strctDAQParams g_str... |
github | shayo/Kofiko-master | fnMyROI.m | .m | Kofiko-master/In Development/fnMyROI.m | 7,982 | utf_8 | 8954e71b2b351f1943e4f0eb1bdd0a44 | function varargout = fnMyROI(varargin)
%ROIPOLY Select polygonal region of interest.
% Use ROIPOLY to select a polygonal region of interest within an
% image. ROIPOLY returns a binary image that you can use as a mask for
% masked filtering.
%
% BW = ROIPOLY creates an interactive polygon tool, associated wit... |
github | shayo/Kofiko-master | test_serial.m | .m | Kofiko-master/In Development/ISCAN Serial/test_serial.m | 1,735 | utf_8 | b3de5cd1e448d19a264ad2926fd04ecb | function [ output_args ] = test_serial( input_args )
%TEST_SERIAL test serial communication between PTB scripts and ISCAN
% So far only serial trigger has been implemented...
try
use_serial = 1;
iscan_active = 0;
if use_serial == 1,
port = FindSerialPort([], 1, 1);
if (~isempty(port)),
configString = 'Len... |
github | JohannesPfeifer/DSGE_mod-master | plot_NBER_recessions.m | .m | DSGE_mod-master/Jermann_Quadrini_2012/Jermann_Quadrini_2012_RBC/plot_NBER_recessions.m | 2,219 | utf_8 | 170e77ded0d4ffad56c99ff942804ce9 | function plot_NBER_recessions(plothandle,legend_strings)
% function plot_NBER_recessions(plothandle,legend_strings)
% Plots NBER recessions as shaded areas into background of a graph
% Inputs:
% plothandle: [array of plot-handles] existing plot handles
% t... |
github | JohannesPfeifer/DSGE_mod-master | bpf.m | .m | DSGE_mod-master/Jermann_Quadrini_2012/Jermann_Quadrini_2012_RBC/bpf.m | 2,784 | utf_8 | d3bdf00081e83a1cc8f14220cb4ad73f | function yf=bpf(y,up,dn,K)
% function yf=bpf(y,up,dn,K)
% Program to compute band-pass filtered series
% Inputs are
% y: data (rows = observations, columns=series)
% up: period corresponding to highest frequency (e.g., 6)
% dn: period corresponding to lowest frequency (e.g., 32)
% K: number of terms in approx... |
github | JohannesPfeifer/DSGE_mod-master | Jermann_Quadrini_2012_RBC_steadystate.m | .m | DSGE_mod-master/Jermann_Quadrini_2012/Jermann_Quadrini_2012_RBC/Jermann_Quadrini_2012_RBC_steadystate.m | 3,352 | utf_8 | a240023807ba58cc270c2222ebb043f7 | function [ys,params,check] = Jermann_Quadrini_2012_RBC_steadystate(ys,exo,M_,options_)
% [ys,params,check] = Jermann_Quadrini_2012_RBC_steadystate(ys,exo,M_,options_)
% computes the steady state for the Jermann_Quadrini_2012_RBC.mod and uses a numerical
% solver to do so
% Inputs:
% - ys [vector] vector of in... |
github | JohannesPfeifer/DSGE_mod-master | Jermann_Quadrini_2012_NK_steadystate.m | .m | DSGE_mod-master/Jermann_Quadrini_2012/Jermann_Quadrini_2012_NK/Jermann_Quadrini_2012_NK_steadystate.m | 3,543 | utf_8 | 1dac6bff1c5982458dac798bc8bb16af | function [ys,check] = Jermann_Quadrini_2012_NK_steadystate(ys,exo)
% function [ys,check] = Jermann_Quadrini_2012_NK_steadystate(ys,exo)
% computes the steady state for the Jermann_Quadrini_2012_NK.mod and uses a numerical
% solver to do so
% Inputs:
% - ys [vector] vector of initial values for the steady stat... |
github | kzampog/spatial-relations-master | dtw.m | .m | spatial-relations-master/Utilities/dynamic_time_warping_v2.0/dtw.m | 1,022 | utf_8 | bc5a46231668bac35a6d2884c8e22b26 | % Copyright (C) 2013 Quan Wang <wangq10@rpi.edu>,
% Signal Analysis and Machine Perception Laboratory,
% Department of Electrical, Computer, and Systems Engineering,
% Rensselaer Polytechnic Institute, Troy, NY 12180, USA
% dynamic time warping of two signals
function d = dtw(s,t,w)
% s: signal 1, size is ns*k, row f... |
github | kzampog/spatial-relations-master | pclviewer.m | .m | spatial-relations-master/Utilities/matpcl/pclviewer.m | 1,258 | utf_8 | 85e3a824f1dd7fdbf62ad75e5793a428 | %PCLVIEWER View a point cloud using PCL
%
% PCLVIEWER(P) writes the point cloud P (MxN) to a temporary file and invokes
% the PCL point cloud viewer for fast display and visualization. The columns of P
% represent the 3D points.
%
% If M=3 then the rows are x, y, z.
% If M=6 then the rows are x, y, z, R, G, B where R,... |
github | kzampog/spatial-relations-master | loadpcd.m | .m | spatial-relations-master/Utilities/matpcl/loadpcd.m | 8,456 | utf_8 | 329563822222c80c2b7190cff9b67e72 | %LOADPCD Load a point cloud from a PCD format file
%
% P = LOADPCD(FNAME) is a set of points loaded from the PCD format
% file FNAME.
%
% For an unorganized point cloud the columns of P represent the 3D points,
% and the rows are: x, y, z, r, g, b, a depending on the FIELDS in the file.
%
% For an organized point clo... |
github | kzampog/spatial-relations-master | lzfd.m | .m | spatial-relations-master/Utilities/matpcl/lzfd.m | 2,169 | utf_8 | 1280ce0a291d2c9d98b06a4673a98535 | %LZFD LZF decompression
%
% OUT = LZFD(IN) is the decompressed version of the uint8 array IN.
%
% OUT = LZFD(IN, LEN) as above but sets the internal working buffer to length
% LEN which should exceed the expected uncompressed data size.
%
% Notes::
% - LZF is an algorithm that is efficient and gives reasonable compres... |
github | kzampog/spatial-relations-master | lspcd.m | .m | spatial-relations-master/Utilities/matpcl/lspcd.m | 2,071 | utf_8 | e67de9778584a673b9569720ea4c72f9 | %LSPCD List attributes of PCD format files
%
% LSPCD() list the attributes of all .PCD files in the current folder.
%
% LSPCD(FILESPEC) as above but list only files that match FILESPEC which
% might contain a directory name and/or a wildcard.
%
%
% See also pclviewer, loadpcd.
%
% Copyright (C) 2013, by Peter I. Corke... |
github | kzampog/spatial-relations-master | savepcd.m | .m | spatial-relations-master/Utilities/matpcl/savepcd.m | 4,547 | utf_8 | b6fc9de72f9c31f773ed98eb76072db1 | %SAVEPCD Write a point cloud to file in PCD format
%
% SAVEPCD(FNAME, P) writes the point cloud P to the file FNAME as an
% as a PCD format file.
%
% SAVEPCD(FNAME, P, 'binary') as above but save in binary format. Default
% is ascii format.
%
% If P is a 2-dimensional matrix (MxN) then the columns of P represent the
%... |
github | kzampog/spatial-relations-master | vert2lcon.m | .m | spatial-relations-master/Utilities/polyhedra/vert2lcon.m | 5,509 | utf_8 | 0e0672d8da1fccdde69a31a8241cdfa6 | function [A,b,Aeq,beq]=vert2lcon(V,tol)
%An extension of Michael Kleder's vert2con function, used for finding the
%linear constraints defining a polyhedron in R^n given its vertices. This
%wrapper extends the capabilities of vert2con to also handle cases where the
%polyhedron is not solid in R^n, i.e., where the pol... |
github | kzampog/spatial-relations-master | lcon2vert.m | .m | spatial-relations-master/Utilities/polyhedra/lcon2vert.m | 13,959 | utf_8 | e5d819f546eee711cf4d6d1187198aae | function [V,nr,nre]=lcon2vert(A,b,Aeq,beq,TOL,checkbounds)
%An extension of Michael Kleder's con2vert function, used for finding the
%vertices of a bounded polyhedron in R^n, given its representation as a set
%of linear constraints. This wrapper extends the capabilities of con2vert to
%also handle cases where the pol... |
github | kzampog/spatial-relations-master | showPointCloud.m | .m | spatial-relations-master/Spatial Relations/showPointCloud.m | 10,734 | utf_8 | 0e91560892c6342a2fb839eb76a71431 | function ax = showPointCloud(varargin)
%showPointCloud Plot 3-D point cloud.
% showPointCloud(ptCloud) displays points with locations and colors
% stored in the pointCloud object ptCloud.
%
% showPointCloud(xyzPoints) displays points at the locations that are
% contained in an M-by-3 or M-by-N-by-3 xyzPoints m... |
github | adririquelme/SMRTool-master | gui_about.m | .m | SMRTool-master/gui_about.m | 4,564 | utf_8 | 6ee6d45c2a7df76484461cc4074bee33 | function varargout = gui_about(varargin)
% Copyright (C) {2015} {Adrián Riquelme Guill, adririquelme@gmail.com}
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of... |
github | adririquelme/SMRTool-master | gui_about_mac.m | .m | SMRTool-master/gui_about_mac.m | 4,652 | utf_8 | df82c63a9dc2a81d3318a37d62f97dd0 | function varargout = gui_about_mac(varargin)
% Copyright (C) {2015} {Adrin Riquelme Guill, adririquelme@gmail.com}
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version... |
github | adririquelme/SMRTool-master | SMRTool_v207_mac.m | .m | SMRTool-master/SMRTool_v207_mac.m | 47,495 | utf_8 | 0dca5b63dd09f3b8a587f4c3656ecdd8 | function varargout = SMRTool_v207_mac(varargin)
% Copyright (C) {2015} {Adrin Riquelme Guill, adririquelme@gmail.com}
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either versi... |
github | adririquelme/SMRTool-master | gui_wedgescalculator.m | .m | SMRTool-master/gui_wedgescalculator.m | 16,638 | utf_8 | 9bf7a64a6c1320dab080bea1d882c519 | function varargout = gui_wedgescalculator(varargin)
% Copyright (C) {2015} {Adrián Riquelme Guill, adririquelme@gmail.com}
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either v... |
github | CalSimCalLite/CalLiteGUI-master | createDSSAttr.m | .m | CalLiteGUI-master/CalGUI/Model_w2/vscript/lib/vista/scripts/matlab/createDSSAttr.m | 3,792 | utf_8 | 4a58ed67c6338a1082a72857c964f3b8 | % Copyright (C) 2003 State of California, Department of
% Water Resources.
% This program is licensed to you under the terms of the GNU General
% Public License, version 2, as published by the Free Software
% Foundation. More license details are available at the end of this file
function attr ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.