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 | mpf/asp-master | BPprimal.m | .m | asp-master/BPprimal.m | 25,374 | utf_8 | a8fe0b7bc1232d09601bf15fd8342ca7 | function [x, y, inform] = BPprimal( A, b, delta, lambda, x, options, inform )
% [x, y, inform] = BPprimal( A, b, delta, lambda, x, options, inform );
%
% Solve the regularized basis pursuit denoise (BPDN) problem
%
% minimize ||x||_1 + 1/2 delta x'x + 1/2 lambda y'y
% x,y
% subject to Ax + ... |
github | mpf/asp-master | as_l1l1.m | .m | asp-master/as_l1l1.m | 3,730 | utf_8 | 6e35d55a771e5a79f9f7029c64c211f2 | function [x,r,inform] = as_l1l1(A, b, lambda, opts, inform)
%AS_L1L1 Solve the one-norm regularized one-norm misfit problem.
%
% [X,R,INFORM] = AS_L1L1(A,B,LAM) solves the problem
%
% (L1-L1) minimize_x LAM ||x||_1 + ||Ax-B||_1.
%
% Setting LAM = 0 or LAM = [] (or excluding it) yields a basis
% pursuit solu... |
github | mpf/asp-master | BPdual.m | .m | asp-master/BPdual.m | 24,660 | utf_8 | 9fdece97c8563e0df0f21e013dc8924d | function [active,state,x,y,S,R,inform] = BPdual(...
A,b,bl,bu,lambdain,active,state,y,S,R,opts)
% BPdual solves the optimization problem
%
% DP: minimize_y - b'y + 1/2 lambda y'y
% subject to bl <= A'y <= bu
%
% using given A,b,bl,bu,lambda. When bl = -e, bu = e = ones(n,1),
% DP is the ... |
github | mpf/asp-master | as_ktopy.m | .m | asp-master/as_ktopy.m | 2,430 | utf_8 | dda93f036c79407da6c7f81a0fa96b0c | function [x,inform] = as_ktopy(A, b, k, opts)
%AS_KTOPY Apply homotopy to obtain a k-sparse solution.
%
% [X,INFORM] = AS_KTOPY(A,B,K) applies homotopy to the problem
%
% (BPDN) minimize_x 1/2 ||Ax - B||_2^2 + LAM ||x||_1
%
% with a decreasing sequence of LAM. It exits when the iterate is
% k-sparse.
%
% ... |
github | mpf/asp-master | as_gl1.m | .m | asp-master/as_gl1.m | 3,453 | utf_8 | a93c77613c1dc7130fdc1026f7c1b613 | function [x,r,inform] = as_gl1(A, b, lambda, opts, inform)
%AS_GL1 Solve the "generalized" one-norm regularized LS problem.
%
% [X,R,INFORM] = AS_GL1(A,B,b,LAM) solves the problem
%
% (GL1) minimize_x LAM ||Bx||_1 + 1/2||Ax-b||_2^2.
%
% Setting LAM = 0 or LAM = [] (or excluding it) yields a solution
% where... |
github | mpf/asp-master | as_wls.m | .m | asp-master/as_wls.m | 3,522 | utf_8 | d7ac4397618810bd9852e81243bfd5df | function [x,r,inform] = as_wls(A, b, d, lambda, opts, inform)
%AS_GL1 Solve the "weighted" regularized LS problem.
%
% [x,R,INFORM] = AS_WLS(A,b,d,lambda) solves the problem
%
% (WLS) minimize_x lambda ||x||_1 + 1/2||D^(-1)(Ax-b)||_2^2,
%
% where D = diag(d) and d is a vector of nonnegative weights. Setting L... |
github | mpf/asp-master | as_omp.m | .m | asp-master/as_omp.m | 8,192 | utf_8 | a775c625d398401c3eb171e9d700f50c | function [active,state,x,r,S,R,inform] = as_omp(A,b,lambda,active,state,r,S,R,opts)
%AS_OMP Orthogonal matching pursuit for sparse Ax=b.
%
% OMP applies the orthogonal matching pursuit (OMP) algorithmn to
% estimate a sparse solution of the underdetermined system Ax=b.
%
% Solve
% [active,state,x,r,S,R,inform] = as_om... |
github | mpf/asp-master | demo_seqcs.m | .m | asp-master/demos/demo_seqcs.m | 1,507 | utf_8 | 24b3aaa57f656fd45394cdf1af268860 | function inform = demo_seqcs
%DEMO_SEQCS Demo the routine as_seqcs.
%
% See also AS_SEQCS.
% BPdual Toolbox
% Copyright 2010, Michael P. Friedlander and Michael A. Saunders
% http://www.cs.ubc.ca/labs/scl/bpdual
%
% $Id: demo_seqcs.m 519 2010-04-21 16:36:30Z mpf $
% "New" way of resetting randn and rand
rng('defau... |
github | mpf/asp-master | rank1triu.m | .m | asp-master/private/rank1triu.m | 1,365 | utf_8 | 419c720ee98a9ab01854401754e14d81 | function R = rank1triu(R, u, v)
% rank1triu triangularize Q*(R + u v'), where R is triangular; discard Q
%
% R = rank1triu(R,u,v)
% 12 Aug 07: First version of rank1triu.
%% $Id$
[m,n] = size(R); % R should be square
if n==0
return
end
G = zeros(2,2); % Preallocate Givens matrix.
% Backward sweep to reduce u(... |
github | mpf/asp-master | l2maxline.m | .m | asp-master/private/l2maxline.m | 11,388 | utf_8 | a8eb0ea4fe9bded76d3f506c06757a13 | function [tStep,state,k,iz,tBreak] = ...
l2maxline(g,dy,dz,z,bl,bu,lam,rho,state,angles)
% Linesearch on the piecewise-quadratic function
%
% q(t) = t c'dy + 0.5 lam t^2 dy'dy
% + rho sum[ max(0, bl - (z + t dz) ) ]
% + rho sum[ max(0, -bu + (z + t dz) ) ]
%
% The gradient is given by
%
% q'(t) = c'... |
github | mpf/asp-master | testASP.m | .m | asp-master/tests/testASP.m | 805 | utf_8 | 3ac1a59e4008da64687f7a4120961fff | function tests = testASP
tests = functiontests(localfunctions);
end
function test_asp_bpdn(testCase)
m = 600; n = 2560; k = 20; % No. of rows, columns, and nonzeros
p = randperm(n); p = p(1:k); % Position of nonzeros in x
x = zeros(n,1); % Generate sparse solution
x(p) = randn(k,1);
A = randn(m,n); ... |
github | ganggit/dlmmc-master | dtmmc_constrains.m | .m | dlmmc-master/dtmmc_constrains.m | 8,012 | utf_8 | 2c9939e6b7187015b8f6961a7432fd2e | % this function is initially written by Hong Zhen, hzeng@seu.edu.cn
% modified by Gang Chen with deep transductive learning
function [clusterLabel, W, CCCP_objFunVal, elapsedTime]=dtmmc_constrains(train_X,network, nClusters, lambda, cOne, T, option)
if ~isfield(option,'initMethod')
initMethod = 'pda';
else
... |
github | ganggit/dlmmc-master | mmc_grad_func.m | .m | dlmmc-master/mmc_grad_func.m | 11,287 | utf_8 | 518bf9eec8565b9d4c5731434b3c92ea | function [objFunVal, grad] = mmc_grad_func(x, train_X,network, nClusters,...
Y_t, Z_minus_t, Z_plus_t, ...
I_NonMC_vec,... % i\in U
I_C_vec, J_C_vec,... %(i,j)\in ... |
github | ganggit/dlmmc-master | mmc_grad_func2.m | .m | dlmmc-master/mmc_grad_func2.m | 11,996 | utf_8 | e55e799be28a59202c83bb92ab8d7a25 | function [objFunVal, grad] = mmc_grad_func(x, train_X,network, nClusters,...
Y_t, Z_minus_t, Z_plus_t, ...
I_NonMC_vec,... % i\in U
I_C_vec, J_C_vec,... %(i,j)\in ... |
github | ganggit/dlmmc-master | dbn_grbm.m | .m | dlmmc-master/dbn_grbm.m | 5,471 | utf_8 | f6248f2626dc249ff7f90db84b852110 | % this is from guassian restricted boltzmann machine from Charlie Tang, http://www.cs.toronto.edu/~tang/
function [vhW, vb, hb, fvar, errs] = dbn_grbm(X, params)
usps =false;
[numdata d]=size(X);
batch_size = params.batch_size;
nBatches = ceil(numdata/batch_size);
assert(params.v_var > 0);
fstd = ones(1,d)*sqrt(para... |
github | ganggit/dlmmc-master | read_coil.m | .m | dlmmc-master/read_coil.m | 705 | utf_8 | 45c6942c2c40dd144a587e7c525d7c53 |
function readcoil_100
fpath = '/gpfs/scratch/gangchen/GangChen_CVPR/dataset/coil-100/';
suffix = '*.png';
allfiles = dir([fpath, suffix]);
numdata = length(allfiles);
h = 32;
w = 32;
data = zeros(numdata, h*w);
labels = zeros(numdata, 1);
for i =1: numdata
str = allfiles(i).name;
substr = strsplit(s... |
github | ganggit/dlmmc-master | dtmmc_gradient_update.m | .m | dlmmc-master/dtmmc_gradient_update.m | 11,007 | utf_8 | 207958715fa008922efe57b171b09e22 | % this function is initially written by Hong Zhen, hzeng@seu.edu.cn
% modified by Gang Chen with deep transductive learning
function [newW_vec, vWh, objFunVal,network] = dtmmc_gradient_update(train_X,network, nClusters,...
Y_t, Z_minus_t, Z_plus_t, ...
... |
github | ganggit/dlmmc-master | init_layer_dbn.m | .m | dlmmc-master/init_layer_dbn.m | 3,420 | utf_8 | f9216baee6859327526c3bf8bbd6b7d3 | % part of the code is from parametric t-SNE written by Laurens van der Maaten, http://lvdmaaten.github.io/tsne/
% modified by Gang Chen
function network=init_layer_dbn(train_X, layers, L, continous, training, LEARN, modelname)
% learn gaussian RBM for the data
if nargin <6
LEARN = 1;
end
% initialize parameter... |
github | ericbarnhill/barnhill-ij-toolkit-master | Miji.m | .m | barnhill-ij-toolkit-master/matlab/Miji.m | 2,862 | utf_8 | 9399cfd03bbf032b108e1fba4ae7326d | function [mij] = Miji(open_imagej)
%% This script sets up the classpath to Fiji and optionally starts MIJ
% Author: Jacques Pecreaux, Johannes Schindelin, Jean-Yves Tinevez
if nargin < 1
open_imagej = true;
end
%% Get the Fiji directory
fiji_directory = fileparts(fileparts(mfilena... |
github | buzsakilab/buzcoderough-master | CircularMean.m | .m | buzcoderough-master/LFPSpikes/PhaseModulation/CircularMean.m | 3,668 | utf_8 | 240ff0b067d5740959bc862f4ed72ad4 | function [mu, Kappa, pval, Rmean, delta, sigma,confDw,confUp] = CircularMean(theta,varargin)
% [theta, Kappa, pval, Rmean, delta] = CircularMean(t) ciricualr mean, dispersion
% and significance of a circular datasets
%
% INPUTS:
% t: a column vector of angles (in radians) or a n x p matrix, n: samples /
% p:variables... |
github | buzsakilab/buzcoderough-master | PhaseModulation.m | .m | buzcoderough-master/LFPSpikes/PhaseModulation/PhaseModulation.m | 10,027 | utf_8 | 880ea36a1720d9249a65d005d159b1f0 | function [phasedistros,phasebins,phasestats,h] = PhaseModulation(spikes,lfp,passband,intervals,lfpfreq,method,plotting)
% [phasedistros,phasebins,phasestats,h] = PhaseModulation(spikes,lfp,passband,intervals,lfpfreq,method,plotting)
%
% Calculates distribution of spikes over various phases from a specified
% cycle of ... |
github | buzsakilab/buzcoderough-master | LoadBinaryChunk.m | .m | buzcoderough-master/EphysPreprocessing/AutoClustering/LoadBinaryChunk.m | 4,501 | iso_8859_13 | ea51ea77befb3680ba8e93daed115de1 | %LoadBinaryChunk - Load data chunck from an open binary file.
%
% USAGE
%
% data = LoadBinaryChunk(fid,<options>)
%
% fid file id (obtained via fopen)
% <options> optional list of property-value pairs (see table below)
%
% ====================================================================... |
github | buzsakilab/buzcoderough-master | LoadBinary.m | .m | buzcoderough-master/EphysPreprocessing/AutoClustering/LoadBinary.m | 6,343 | iso_8859_13 | cb8964764cdd1f4a12c61ed186dbef15 | %LoadBinary - Load data from a binary file.
%
% USAGE
%
% data = LoadBinary(filename,<options>)
%
% filename file to read
% <options> optional list of property-value pairs (see table below)
%
% =========================================================================
% Properties Values
%... |
github | buzsakilab/buzcoderough-master | LoadSpikeWaveforms.m | .m | buzcoderough-master/EphysPreprocessing/AutoClustering/LoadSpikeWaveforms.m | 871 | iso_8859_13 | 8bbfa0dd143ae134c8fbd50831221d7e | %LoadSpikeWaveforms - Read spike waveforms from file.
%
% USAGE
%
% waveforms = LoadSpikeWaveforms(filename,nChannels,nSamples)
%
% filename spike waveform file name
% nChannels number of channels in electrode group
% nSamples number of samples per waveform
% Copyright ... |
github | buzsakilab/buzcoderough-master | IcsiStat.m | .m | buzcoderough-master/EphysPreprocessing/AutoClustering/IcsiStat.m | 1,420 | utf_8 | 7c1bf8ed5b5053180f24b0297f2e36c2 | function [h px py] = IcsiStat(rgx,rgy,icsi,tR,tC,tMax)
% USAGE:
% [h px py] = IcsiStat(rgx,rgy,icsi,tR,tC,tMax)
%
% IcsiStat computes some statistics on the common inter-spike interval
% (based on Fee et al., 1996)
% INPUTs:
% rgx: 1st spike train
% rgy: 2nd spike train
% icsi: common isi comted wi... |
github | buzsakilab/buzcoderough-master | dendrogram_struct.m | .m | buzcoderough-master/EphysPreprocessing/AutoClustering/dendrogram_struct.m | 8,991 | utf_8 | a86f7fde7802197ef44886c28fda434e | function [T, perm] = dendrogram_struct(Z,varargin)
%DENDROGRAM Generate dendrogram plot.
% DENDROGRAM(Z) generates a dendrogram plot of the hierarchical binary
% cluster tree represented by Z. Z is an (M-1)-by-3 matrix, generated by
% the LINKAGE function, where M is the number of objects in the original
% dat... |
github | buzsakilab/buzcoderough-master | ConvertSpykingCircus2Neurosuite.m | .m | buzcoderough-master/EphysPreprocessing/SpikeFileConversions/ConvertSpykingCircus2Neurosuite.m | 21,963 | utf_8 | edfcea17e2bda2511d57ffb1dd0d6632 | function ConvertSpykingCircus2Neurosuite(shank,basepath,basename)
% Converts .kwik/kwx files from Klusta into klusters-compatible
% fet,res,clu,spk files. Works on a single shank of a recording, assumes a
% 16bit .dat and an .xml file is present in "basepath" (home folder) and
% that they are named basename.dat a... |
github | buzsakilab/buzcoderough-master | ConvertKilosort2Neurosuite.m | .m | buzcoderough-master/EphysPreprocessing/SpikeFileConversions/ConvertKilosort2Neurosuite.m | 7,239 | utf_8 | aa0082940ecd624de648e1b71c8f8f90 | function ConvertKilosort2Neurosuite(basepath,basename,rez)
% Converts .kwik/kwx files from Klusta into klusters-compatible
% fet,res,clu,spk files. Works on a single shank of a recording, assumes a
% 16bit .dat and an .xml file is present in "basepath" (home folder) and
% that they are named basename.dat and base... |
github | buzsakilab/buzcoderough-master | ConvertKlusta2Neurosuite.m | .m | buzcoderough-master/EphysPreprocessing/SpikeFileConversions/ConvertKlusta2Neurosuite.m | 21,956 | utf_8 | 2110ddb00c4b834ab94065c51f3cede3 | function ConvertKlusta2Neurosuite(shank,basepath,basename)
% Converts .kwik/kwx files from Klusta into klusters-compatible
% fet,res,clu,spk files. Works on a single shank of a recording, assumes a
% 16bit .dat and an .xml file is present in "basepath" (home folder) and
% that they are named basename.dat and base... |
github | buzsakilab/buzcoderough-master | circ_kuipertest.m | .m | buzcoderough-master/Packages/CircStat2012a/circ_kuipertest.m | 3,076 | utf_8 | 17975f8427b61f430b01b39bea0a0b92 | 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 c... |
github | buzsakilab/buzcoderough-master | circ_clust.m | .m | buzcoderough-master/Packages/CircStat2012a/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 | buzsakilab/buzcoderough-master | circ_raotest.m | .m | buzcoderough-master/Packages/CircStat2012a/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 | buzsakilab/buzcoderough-master | circ_cmtest.m | .m | buzcoderough-master/Packages/CircStat2012a/circ_cmtest.m | 2,127 | utf_8 | b8057e2fbbbaef56584aa347fe5c81cd | 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 pop... |
github | buzsakilab/buzcoderough-master | circ_wwtest.m | .m | buzcoderough-master/Packages/CircStat2012a/circ_wwtest.m | 4,669 | utf_8 | 2fa4cad8c08ca9d37b358392c2a3fa99 | 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 m... |
github | buzsakilab/buzcoderough-master | makeFigure.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/Graphics/makeFigure.m | 8,906 | utf_8 | 49a425b4c0c1589599bbfbf361c99903 | function makeFigure(fh)
%
% fh must return structure array (one element per figure with the following fields
%
% n(needed): the data to plot, intended as the y-axis for 'plot' and 'errorbar'
% plots, the height of the bars for 'hist' plots, and the data to be
% colorcoded for 'image' plots
% x(optional): data for the ... |
github | buzsakilab/buzcoderough-master | rose_ap.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/Graphics/rose_ap.m | 2,404 | utf_8 | 82bd2023fcb6f1d3fa35ef83a06ba150 | function [tout,rout] = rose(varargin)
%ROSE Angle histogram plot.
% ROSE(THETA) plots the angle histogram for the angles in THETA.
% The angles in the vector THETA must be specified in radians.
%
% ROSE(THETA,N) where N is a scalar, uses N equally spaced bins
% from 0 to 2*PI. The default value for N is 2... |
github | buzsakilab/buzcoderough-master | IsPositiveInteger.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStuff/IsPositiveInteger.m | 799 | utf_8 | 0c3c0e139918222dfd8674d5c4123e2c | %IsPositiveInteger - Test if array contains only positive integers.
%
% USAGE
%
% test = IsPositiveInteger(x,strict)
%
% x array to test
% strict optionally, test for strictly positive integers
% (default = 'off')
% Copyright (C) 2004-2006 by Michael Zugaro
%
% This pr... |
github | buzsakilab/buzcoderough-master | LoadSPK.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStuff/LoadSPK.m | 3,416 | iso_8859_13 | 93e0ac6a527349041d06526f0730a897 | %LoadSpikeWaveforms - Read spike waveforms from file.
%
% USAGE
%
% waveforms = LoadSpikeWaveforms(filename,nChannels,nSamples)
%
% filename spike waveform file name
% nChannels number of channels in electrode group
% nSamples number of samples per waveform
% Copyright (C) ... |
github | buzsakilab/buzcoderough-master | DestroyPattern.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStuff/DestroyPattern.m | 1,298 | utf_8 | b3392c8ea92c78ae0b963565c582e41c | function SO = DestroyPattern(S,binSize,varargin)
% SO = DestroyPattern(ts,binSize,epoch) returns a ts object SO whose timestamps in the intervalSet epoch are shuffled in bins of size *binSize*
% INPUT:
% S : a ts object or a tsdArray
% binSize : size of the bins which will be shuffled
% optionnal:
% epoch : the... |
github | buzsakilab/buzcoderough-master | JitterPattern.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStuff/JitterPattern.m | 1,098 | utf_8 | e61fed53a03aaea8b53d218cc5ff6d17 | function SO = JitterPattern(S,bound,varargin)
% SO = JitterPattern(ts,bound,epoch) returns a ts object SO whose timestamps in the intervalSet epoch are shifted by a jitter belonging to the interval [-bound bound];
% INPUT:
% S : a ts object or a tsdArray
% bound : absolute bound for the jitters in the timestamps u... |
github | buzsakilab/buzcoderough-master | modRationFit.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStuff/modRationFit.m | 636 | utf_8 | f1497c7e91bd1fb1c83d3519b214963c | function [modRatio, prefPh, fitCurve, H]= modRatioFit(phase)
[H,X] = hist(phase,100);
[estimates, model] = fitPhaseHist(2*pi*X,H);
[sse, fitCurve] = model(estimates);
prefPh = estimates(3);
modRatio = estimates(2)/estimates(1);
end
function [estimates, model] = fitPhaseHist(xdata, ydata)
start_point = rand(1, 3)... |
github | buzsakilab/buzcoderough-master | statsfminbx_OLD.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStuff/statsfminbx_OLD.m | 39,204 | utf_8 | 0ac64eac89e110ea591eb7eb2757bbeb | function[x,FVAL,LAMBDA,EXITFLAG,OUTPUT,GRAD,HESSIAN] = ...
statsfminbx(funfcn,x,l,u,options,defaultopt,computeLambda,varargin)
%SFMINBX Nonlinear minimization with box constraints.
%
% Locate a local minimizer to
%
% min { f(x) : l <= x <= u}.
%
% where f(x) maps n-vectors to scalars.
% Copyrig... |
github | buzsakilab/buzcoderough-master | CosineFit.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStuff/CosineFit.m | 634 | utf_8 | 5632750672336a355f26a83c10192ebe | function [modRatio, prefPh, offSet, sse]= CosineFit(phase,linVar)
[estimates, model] = fitPhase(phase,linVar);
[sse, fitCurve] = model(estimates);
prefPh = estimates(3);
modRatio = estimates(2)/estimates(1);
offSet = estimates(1);
end
function [estimates, model] = fitPhase(xdata, ydata)
start_point = rand(1, 3);
... |
github | buzsakilab/buzcoderough-master | factoran_ad.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStuff/factoran_ad.m | 18,587 | utf_8 | b5a8a029db13c898420182fca8d77e2b | function [Lambda, Psi, T, stats, F] = factoran(X, m, varargin)
%FACTORAN Maximum Likelihood Common Factor Analysis.
% LAMBDA = FACTORAN(X, M) returns maximum likelihood estimates of the
% factor loadings, LAMBDA, in a common factor analysis model with M
% factors. Rows of the N-by-D data matrix X correspond to o... |
github | buzsakilab/buzcoderough-master | performance.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStuff/performance.m | 175 | utf_8 | c273b9b85e9f36251dfdc935af7d6334 |
function perf = performance(A,dset)
for i=1:length(dset)
A = getResource(A,'CorrectError',dset{i})
ce = Data(correctError{1});
perf(i) = sum(ce)/length(ce);
end
end |
github | buzsakilab/buzcoderough-master | HarrisLogLhood.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsCompute/HarrisLogLhood.m | 126 | utf_8 | 810feb3861daba77bf126c8040be21ba | function L = HarrisLogLhood(s,Q)
sa = s*w;
n = Q(:,cellIx);
end
function y = g(x)
if x<0
y = exp(x);
else
y = x+1;
end |
github | buzsakilab/buzcoderough-master | LocalMinima.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsCompute/LocalMinima.m | 3,446 | utf_8 | b092703bb7f416582dda6e2dee5a1223 | % mins = LocalMinima(x, NotCloserThan, LessThan)
%
% finds positions of all local minima in input array
% in the case that it goes down, stays level, then goes up,
% the function finds the earliest point of equality
%
% second optional argument gives minimum distance between
% two minima - if 2 are closer than this, it... |
github | buzsakilab/buzcoderough-master | CrossValidationPeerCheck_Cells.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsInfo/CrossValidationPeerCheck_Cells.m | 1,724 | utf_8 | a73a088aa305ff6837af48acb51c8ed9 | % function [L weights] = CrossValidationPeerCheck(S,Q,ep)
function [L,weights] = CrossValidationPeerCheck_Cells(S,Q,ep)
nbEp = 10;
epV = regIntervals(ep,nbEp);
fprintf('Launching Cross-validated Peer info\n')
dQ = Data(Q);
nbC = size(dQ,2);
L = NaN(nbEp,nbC);
weights = zeros(nbC,nbEp,nbC-1);
% compTime = zeros(nbC,n... |
github | buzsakilab/buzcoderough-master | CrossValidationAssemblyPrediction_Ctrl.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsInfo/CrossValidationAssemblyPrediction_Ctrl.m | 2,239 | utf_8 | 0f8bfdebfbb71c188f177ac7ac3337d1 | % function [L weights] = CrossValidationPeerCheck(S,Q,ep)
function [L,weights] = CrossValidationAssemblyPrediction_Cells(Starget,Qtarget,Sref,Qref,angBin,ang,ep,lambda,bins)
nbEp = 10;
epV = regIntervals(ep,nbEp);
fprintf('Launching Cross-validated Peer info\n')
nbC = length(Starget);
nbCref = length(Sref);
dQ = Dat... |
github | buzsakilab/buzcoderough-master | CrossValidationPeerCheck_Cells_Test.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsInfo/CrossValidationPeerCheck_Cells_Test.m | 1,754 | utf_8 | d02503e4a1f8963e073b8a0dd7bb7bec | % function [L weights] = CrossValidationPeerCheck(S,Q,ep)
function [L,weights] = CrossValidationPeerCheck_Cells(S,Q,ep)
nbEp = 10;
epV = regIntervals(ep,nbEp);
fprintf('Launching Cross-validated Peer info\n')
Q = Restrict(Q,ep);
dQ = Data(Q);
nbC = size(dQ,2);
L = NaN(nbEp,nbC);
weights = zeros(nbC,nbEp,nbC-1);
% com... |
github | buzsakilab/buzcoderough-master | Compute_BorderScore.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsInfo/Compute_BorderScore.m | 3,467 | utf_8 | d57daf61f41751f40ceac41229fc40a2 | % Compute border score as in Solstad 2008 (works with square matrix)
%
% USAGE
%
% Compute_BorderScore(pf,bx,by,<options>)
%
% pf place field (#by x #bx)
% bx x-axis bins
% by y-axis bins
% <options> optional list of property-value pairs (see table below)
%
% ... |
github | buzsakilab/buzcoderough-master | MultimodalTest (Horacio Rotstein's conflicted copy 2013-08-30).m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStats/MultimodalTest (Horacio Rotstein's conflicted copy 2013-08-30).m | 2,458 | utf_8 | 72a04f9059500f5ca5a03bae8e3b009f | %function [ptab,map] = MultimodalTest(data, max_k, Verbose)
%Silverman's method for testing succesive hypotheses
%that a dataset has 1, 2, 3,..., max_k modes.
%
% from A Sirota toolbox
function [ptab,htab] = MultimodalTest(data,max_k)
hrange = [0.001:0.001:1];
boot_iterations=200;
%max_k = 1;
m1=max(data); %rescale ... |
github | buzsakilab/buzcoderough-master | CircularMean.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStats/CircularMean.m | 3,667 | utf_8 | c666065bedd245a6dfae29a0219c08cc | function [mu, Kappa, pval, Rmean, delta, sigma,confDw,confUp] = CircularMean(theta,varargin)
% [theta, Kappa, pval, Rmean, delta] = CircularMean(t) ciricualr mean, dispersion
% and significance of a circular datasets
%
% INPUTS:
% t: a column vector of angles (in radians) or a n x p matrix, n: samples /
% p:variables... |
github | buzsakilab/buzcoderough-master | MultinomialConfidenceIntervals.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStats/MultinomialConfidenceIntervals.m | 2,002 | UNKNOWN | 096bf41f2e57a76f8f83ed72a180ab3c | %MultinomialConfidenceIntervals - Simultaneous multinomial confidence intervals.
%
% Confidence intervals computed simultaneously on all cells using the method of
% Fitzpatrick and Scott (1987). This provides better estimates of the confidence
% intervals than the common (but erroneous) method where each cell is treate... |
github | buzsakilab/buzcoderough-master | MultimodalTest.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStats/MultimodalTest.m | 2,507 | utf_8 | 4ec86103e82243624d4edf6620bce60e | %function [ptab,map] = MultimodalTest(data, max_k, Verbose)
%Silverman's method for testing succesive hypotheses
%that a dataset has 1, 2, 3,..., max_k modes.
% from A Sirota toolbox, changed by Adrien Peyrache, 2011
function [ptab,htab] = MultimodalTest(data,max_k)
hrange = [0.001:0.001:1];
boot_iterations=200;
%ma... |
github | buzsakilab/buzcoderough-master | KMeansFra.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStats/KMeansFra.m | 2,203 | utf_8 | dc6d814adafa7c4658f72d21ab3fabfe |
%KMEANS K-means clustering
%
% [c s] = KMEANS(x,k)
% [c s] = KMEANS(x,k, x0)
% [c s] = KMEANS(x,k, x0)
%
% K-means clustering for one dimensional data, x. k is the number of
% clusters, and x0 if given is the inital centroid for the clusters.
%
% On return c[i] is the centroid of ... |
github | buzsakilab/buzcoderough-master | kmeans_md.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsStats/kmeans_md.m | 2,476 | utf_8 | 9609bbd24e4dc9a5e88cd5bbe3312660 |
%KMEANS_MD K-means clustering
%
% [c s] = KMEANS_MD(x,k)
% [c s] = KMEANS_MD(x,k, x0)
% [c s] = KMEANS_MD(x,k, x0)
%
% K-means clustering for multi dimensional data, x (each row is a
% sample) . k is the number of
% clusters, and x0 if given is the inital centroid for the clusters... |
github | buzsakilab/buzcoderough-master | ThetaModulation.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsEEG/ThetaModulation.m | 573 | utf_8 | 570407c86f2146199abbd6446102ab19 | function [modRatio, prefPh, fitCurve, H]= ThetaModulation(phase)
[H,X] = hist(phase,100);
[estimates, model] = fitPhaseHist(2*pi*X,H);
[sse, FitCurve] = model(estimates);
function [estimates, model] = fitPhaseHist(xdata, ydata)
start_point = rand(1, 3);
model = @fitFct;
estimates = fminsearch(model, start_point);
... |
github | buzsakilab/buzcoderough-master | loadSpikes.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsIO/loadSpikes.m | 1,538 | utf_8 | 3886ea129afaf68f5e5c7f974becb968 | function S = LoadSpikes(tfilelist)
% S = LoadSpikes(tfilelist)
% inp: tfilelist is a cellarray of strings, each of which is a
% tfile to open. Note: this is incompatible with version unix3.1.
% out: Returns a cell array such that each cell contains a ts
% object (timestamps which correspond to times at which the c... |
github | buzsakilab/buzcoderough-master | LoadBinaryChunk.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsIO/LoadBinaryChunk.m | 4,513 | iso_8859_13 | b4937a4894c7a8c533c0a594915e0578 | %LoadBinaryChunk - Load data chunck from an open binary file.
%
% USAGE
%
% data = LoadBinaryChunk(fid,<options>)
%
% fid file id (obtained via fopen)
% <options> optional list of property-value pairs (see table below)
%
% ====================================================================... |
github | buzsakilab/buzcoderough-master | LoadTTlipa.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsIO/LoadTTlipa.m | 1,915 | utf_8 | 520021715ef5a79c4988c6dec5758fe9 | function TT = LoadTT(fn)
% TT = LoadTT(fn)
%
% Loads an NSMA TT file.
%
% INPUTS:
% fn -- .tt file
%
% OUTPUTS:
% TT is a tsd structure
% where data = nSpikes x nSamplesPerSpike x nTrodes
%
% uses mex file LoadTT0(fn) to do the main read.
%
% ADR 1998
% version L5.0
% status PROMOTED
[fdir,fname,fext] = fil... |
github | buzsakilab/buzcoderough-master | LoadBinary.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsIO/LoadBinary.m | 6,353 | iso_8859_13 | 43551cc94593ebd1027e1e04de7e2d1c | %LoadBinary - Load data from a binary file.
%
% USAGE
%
% data = LoadBinary(filename,<options>)
%
% filename file to read
% <options> optional list of property-value pairs (see table below)
%
% =========================================================================
% Properties Values
%... |
github | buzsakilab/buzcoderough-master | LoadSpikeWaveforms.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsIO/LoadSpikeWaveforms.m | 867 | iso_8859_13 | 1691d735821078d7ff1054e6d8afb510 | %LoadSpikeWaveforms - Read spike waveforms from file.
%
% USAGE
%
% waveforms = LoadSpikeWaveforms(filename,nChannels,nSamples)
%
% filename spike waveform file name
% nChannels number of channels in electrode group
% nSamples number of samples per waveform
% Copyright (C) ... |
github | buzsakilab/buzcoderough-master | readmulti.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsIO/readmulti.m | 1,208 | utf_8 | 36f8e7d408e4f9e99af375bc68878212 | % reads multi-channel recording file to a matrix
% function [eeg] = function readmulti(fname,numchannel,chselect)
% last argument is optional (if omitted, it will read all the
% channels
function [eeg] = readmulti(fname,numchannel,chselect)
if nargin == 2
datafile = fopen(fname,'r');
eeg = fread(datafile,[numcha... |
github | buzsakilab/buzcoderough-master | LoadSpikeWaveF.m | .m | buzcoderough-master/Packages/TStoolbox/Utils/UtilsIO/LoadSpikeWaveF.m | 2,448 | iso_8859_13 | 9700826231895239941c49cd94953730 | %LoadBinary - Load data from a binary file.
%
% USAGE
%
% data = LoadBinary(filename,<options>)
%
% filename file to read
% <options> optional list of property-value pairs (see table below)
%
% =========================================================================
% Properties Values
%... |
github | buzsakilab/buzcoderough-master | CleanWhlForR.m | .m | buzcoderough-master/Packages/TStoolbox/TSobjects/Wrappers/Utils/CleanWhlForR.m | 5,365 | utf_8 | db9393ddd498f91fa2ad11745fa907a4 | % Position file cleaning
%
% [CleanWhl GoodRanges] = CleanWhlFR(Whl, StretchLen, JumpSize,Gap);
%
% "cleans up" a wheel file by interpolating missing stretches
% up to StretchLen long (default 20), for which the endpoints
% don't differ by more than JumpSize, (default 30).
%
% also returns the ranges where the whl fil... |
github | buzsakilab/buzcoderough-master | compilefma.m | .m | buzcoderough-master/Packages/FMAToolbox/compilefma.m | 631 | utf_8 | 670148b1218aeb1609402b9e16586d96 | function compilefma
% compilefma - Compile C/C++ functions in FMAToolbox
% Move to the 'FMAToolbox' directory, compile, and move back
path = fileparts(which('FMAToolbox'));
currentDir = pwd;
cd(path);
processDir;
cd(currentDir);
function processDir
files = dir;
for i = 1:length(files),
if strcmp(files(i).name,'.')... |
github | buzsakilab/buzcoderough-master | isivector.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/isivector.m | 2,128 | iso_8859_13 | 1468dbe277d48ba93d39a34470a2a792 | %isivector - Test if parameter is a vector of integers satisfying an optional list of tests.
%
% USAGE
%
% test = isivector(x,test1,test2,...)
%
% x parameter to test
% test1... optional list of additional tests (see examples below)
%
% EXAMPLES
%
% % Test if x is a vector of doubles
% ... |
github | buzsakilab/buzcoderough-master | isradians.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/isradians.m | 1,190 | iso_8859_13 | cd2a3abc3aae1ce22d178af66ffd0955 | %isradians - Test if parameter is in range [0,2pi] or [-pi,pi].
%
% USAGE
%
% test = isradians(x)
%
% x array to test (NaNs are ignored)
%
% OUTPUT
%
% range 0 if uncertain (issues a warning)
% 1 for [-pi,pi]
% 2 for [0,2pi]
% SEE ALSO
%
% See als... |
github | buzsakilab/buzcoderough-master | isiscalar.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/isiscalar.m | 1,623 | iso_8859_13 | 6b14f01efdb2893077da44a97760eecd | %isiscalar - Test if parameter is a scalar (integer) satisfying an optional list of tests.
%
% USAGE
%
% test = isiscalar(x,test1,test2,...)
%
% x parameter to test
% test1... optional list of additional tests
%
% EXAMPLES
%
% % Test if x is a scalar (double)
% isiscalar(x)
%
% % ... |
github | buzsakilab/buzcoderough-master | islvector.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/islvector.m | 1,685 | iso_8859_13 | 0dfac49b5831a12166d7cfbeafcd5445 | %islvector - Test if parameter is a (pseudo) logical vector satisfying an optional list of tests.
%
% USAGE
%
% test = islvector(x,test1,test2,...)
%
% x parameter to test
% test1... optional list of additional tests (see examples below)
%
% EXAMPLES
%
% % Test if x is a logical vector
... |
github | buzsakilab/buzcoderough-master | wrap.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/wrap.m | 985 | iso_8859_13 | 1774c0b4456a9b41f13d215826686904 | %wrap - Set radian angles in range [0,2pi] or [-pi,pi].
%
% USAGE
%
% y = wrap(x,range)
%
% x angles in radians
% range optional: 1 for [-pi,pi] (default)
% 2 for [0,2pi]
%
% SEE ALSO
%
% See also isradians, clinspace.
%
% Copyright (C) 2010-2011 by Mic... |
github | buzsakilab/buzcoderough-master | glinspace.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/glinspace.m | 1,460 | iso_8859_13 | 0662bd3d5bf2675b5274fb2a0805ac7b | %glinspace - Gamma-corrected linearly spaced vector.
%
% USAGE
%
% x = glinspace(d1,d2,gamma,n)
%
% d1 start value
% d2 stop value
% gamma gamma value
% n number of values
%
% SEE ALSO
%
% See also glinspace.
%
% Copyright (C) 2013 by Michaël Zugaro
%
%... |
github | buzsakilab/buzcoderough-master | isimatrix.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/isimatrix.m | 1,711 | iso_8859_13 | 301153c731a86f3cf9ab2cd3471a5d60 | %isimatrix - Test if parameter is a matrix of integers (>= 2 columns).
%
% USAGE
%
% test = isimatrix(x,test1,test2,...)
%
% x parameter to test
% test1... optional list of additional tests
%
% EXAMPLES
%
% % Test if x is a matrix of doubles
% isimatrix(x)
%
% % Test if x is a mat... |
github | buzsakilab/buzcoderough-master | clinspace.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/clinspace.m | 1,065 | iso_8859_13 | 011740ea58e9ff0049b933cbbac7a682 | %clinspace - Linearly spaced vector of circular values (angles).
%
% USAGE
%
% x = clinspace(n,range)
%
% n number of values
% range optional: 1 for [-pi,pi[ (default)
% 2 for [0,2pi[
%
% SEE ALSO
%
% See also isradians, wrap.
%
% Copyright (C) 2013 by ... |
github | buzsakilab/buzcoderough-master | int2zstr.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/int2zstr.m | 824 | iso_8859_13 | 9bbb5a47189da653c68890392e52d9e9 | %int2zstr - Convert integer to zero-padded string.
%
% USAGE
%
% s = int2zstr(n,digits)
%
% n integer to convert
% digits optional total number of digits
%
% Copyright (C) 2012 by Michaël Zugaro
%
% This program is free software; you can redistribute it and/or modify
% it under the terms... |
github | buzsakilab/buzcoderough-master | islscalar.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/islscalar.m | 1,077 | iso_8859_13 | af0d9269f1590dee3176575b0083aced | %islscalar - Test if parameter is a (pseudo) logical scalar.
%
% USAGE
%
% test = islscalar(x)
%
% x parameter to test
%
% NOTE
%
% To be considered logical, the scalar should be equal to 0 or 1, but it does
% not need to actually be of class 'logical' (class(x) could be e.g. 'double').
%
% ... |
github | buzsakilab/buzcoderough-master | isdvector.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/isdvector.m | 2,081 | iso_8859_13 | 5ef70521f0fa1b770ada8d42d0fe9bee | %isdvector - Test if parameter is a vector of doubles satisfying an optional list of tests.
%
% USAGE
%
% test = isdvector(x,test1,test2,...)
%
% x parameter to test
% test1... optional list of additional tests (see examples below)
%
% EXAMPLES
%
% % Test if x is a vector of doubles
% ... |
github | buzsakilab/buzcoderough-master | isstring.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/isstring.m | 992 | iso_8859_13 | 3f0150034c5c2e51b50c80fc3828fd12 | %isstring - Test if parameter is an (admissible) character string.
%
% USAGE
%
% test = isstring(x,string1,string2,...)
%
% x item to test
% string1... optional list of admissible strings
%
% SEE ALSO
%
% See also isdmatrix, isdvector, isdscalar, isimatrix, isivector, isiscalar.
%
% Copy... |
github | buzsakilab/buzcoderough-master | minmax.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/minmax.m | 1,032 | iso_8859_13 | f599a63e5113ad52c1ca1931a27e4b29 | %minmax - Show min and max values for any number of variables.
%
% USAGE
%
% minmax(x,y,...)
%
% x,y,... variables
%
% Copyright (C) 2012 by Michaël Zugaro
%
% 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... |
github | buzsakilab/buzcoderough-master | sz.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/sz.m | 781 | iso_8859_13 | b8d7e92899139ba415b2a2299886e902 | %sz - Show sizes for any number of variables.
%
% USAGE
%
% sz(x,y,...)
%
% x,y,... variables
%
% Copyright (C) 2011-2012 by Michaël Zugaro
%
% 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 F... |
github | buzsakilab/buzcoderough-master | islmatrix.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/islmatrix.m | 1,149 | iso_8859_13 | 2e0a52b0be376a939b2c68ef383358b2 | %islmatrix - Test if parameter is a logical matrix (>= 2 columns).
%
% USAGE
%
% test = islmatrix(x)
%
% x parameter to test
%
% NOTE
%
% To be considered logical, the matrix should contain only values 0 and 1, but it
% does not need to actually be of class 'logical' (class(x) could be e.g. '... |
github | buzsakilab/buzcoderough-master | isdscalar.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/isdscalar.m | 1,575 | iso_8859_13 | 01e7b8dfec919c2f708c7a25d96262e3 | %isdscalar - Test if parameter is a scalar (double) satisfying an optional list of tests.
%
% USAGE
%
% test = isdscalar(x,test1,test2,...)
%
% x parameter to test
% test1... optional list of additional tests
%
% EXAMPLES
%
% % Test if x is a scalar (double)
% isdscalar(x)
%
% % T... |
github | buzsakilab/buzcoderough-master | issamples.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/issamples.m | 1,669 | iso_8859_13 | 53455bece654559900b0bcfda3e16147 | %issamples - Test if parameter is a list of samples satisfying an optional list of tests.
%
% A list of samples is a vector or matrix of doubles containing at least one column
% for timestamps, and optionally more for continuous variables.
%
% USAGE
%
% test = issamples(x,test1,test2,...)
%
% x pa... |
github | buzsakilab/buzcoderough-master | isdmatrix.m | .m | buzcoderough-master/Packages/FMAToolbox/Helpers/isdmatrix.m | 1,656 | iso_8859_13 | ba7943baf9c16023dd749f34097850df | %isdmatrix - Test if parameter is a matrix of doubles (>= 2 columns).
%
% USAGE
%
% test = isdmatrix(x,test1,test2,...)
%
% x parameter to test
% test1... optional list of additional tests
%
% EXAMPLES
%
% % Test if x is a matrix of doubles
% isdmatrix(x)
%
% % Test if x is a matr... |
github | buzsakilab/buzcoderough-master | view_ui.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/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 | buzsakilab/buzcoderough-master | savexml.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/xmltree/savexml.m | 4,260 | utf_8 | a9855b46d71480584fd217d37bb9e70b | 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 | buzsakilab/buzcoderough-master | struct2xml.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/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 | buzsakilab/buzcoderough-master | mat2xml.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/xmltree/mat2xml.m | 3,132 | utf_8 | 984a4ca0ffc0ac4f6e334b30291f27ee | 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 | buzsakilab/buzcoderough-master | loadxml.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/xmltree/loadxml.m | 3,841 | utf_8 | f4fe3b3d93e5743d7a295e82f9d7d658 | 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 | buzsakilab/buzcoderough-master | delete.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/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 | buzsakilab/buzcoderough-master | save.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/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 | buzsakilab/buzcoderough-master | branch.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/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 | buzsakilab/buzcoderough-master | flush.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/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 | buzsakilab/buzcoderough-master | copy.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/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 | buzsakilab/buzcoderough-master | convert.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/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 | buzsakilab/buzcoderough-master | editor.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/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 | buzsakilab/buzcoderough-master | find.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/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 | buzsakilab/buzcoderough-master | view.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/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 | buzsakilab/buzcoderough-master | xml_parser.m | .m | buzcoderough-master/Packages/FMAToolbox/ExternalFunctionsForFMAToolbox/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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.