sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
50997f97dc21d481a2df5af394ec1af35a69da44ea8535c2123a925c25ea9ce2 | MATLAB | 1,009 | 31 | function [meanwave_intensities,medwave_intensities,wavelength_identities]=avg_acrosspocks(manual_intensities,info)
% function to average/ or take the median of all the powers at a given
% wavelength
subset=info.subset_pockels;
numpocks=length(info.pockels);
numwaves=size(manual_intensities,2)/numpocks;
meanwave_in... |
e1b6253c4c985f9a98454810a718b148537baa1c270d095e39197dfd443beb7d | MATLAB | 1,009 | 31 | function ml_cai_io_scopewriteavi_all( framesToWrite, outputFolder, filenamePrefix, filenameSuffix )
numFramesPerVideo = 1000;
numFramesToWrite = size(framesToWrite, 3);
if numFramesToWrite < 1
error('No frames to write.');
else
fprintf('Writing %d frames to file.\n', numFramesToWr... |
c6c9baa1ea7fb97532ab79fe2a1850f68bfab3e39411511b272c6fd397f2cd4f | MATLAB | 1,010 | 39 | classdef RGBImage < types.core.Image & types.untyped.DatasetClass
% RGBIMAGE A color image.
methods
function obj = RGBImage(varargin)
% RGBIMAGE Constructor for RGBImage
obj = obj@types.core.Image(varargin{:});
p = inputParser;
p.KeepUnmatched = true;
p.P... |
f9b8bfee86562186ab824cfa51be4ed404cb51c890a1a279a3ba0bc556bff4f3 | MATLAB | 1,011 | 31 | function [] = checkKeyPress(triggerKey)
% We use KbCheck in a while loop instead of KbWait, as KbWait is
% reported to be unreliable and would need a device input as well.
%
% We can either wait for any key press (if triggerKey = 'any') or we
% can wait for a specific trigger key (if triggerKey has any other
% value)
%... |
9bba5e43ee96e07714b21aa82de667607a42a09d62e2007b5f761106946c18f2 | MATLAB | 1,012 | 29 | function [fb] = fbCreate(numOrient,startSigma,numScales,scaling,elong)
% function [fb] = fbCreate(numOrient,startSigma,numScales,scaling,elong)
%
% Create a filterbank containing numOrient even and odd-symmetric
% filters and one center-surround filter at numScales scales.
%
% The even-symmetric filter is a Gauss... |
18114abe83c5c02da43f5d4e40ee91b30aa43c292f2654c8425a02df8e5a445e | MATLAB | 1,013 | 44 |
function input_info = cnn_layer_path_merge_backward(input_info, layer, work_info_batch, output_info)
assert(input_info.is_group_data);
child_num=length(input_info.data_child_groups);
data_counter=0;
for g_idx=1:child_num
one_input_info=input_info.data_child_groups{g_idx};
if one_input_info.is_g... |
fb78dcab7ce8d4dc37e789ceeda16158ff28684693d37a400f44d5c2782574c6 | MATLAB | 1,014 | 34 | function[img]=get_images(wsFall,Fall,red_wavelength_stack)
wsRef=wsFall.ops.meanImg;
%w-series ref image (can make whatever you want)
fRef=Fall.ops.meanImg_chan2; % functionla ref image
fRef_red=Fall.ops.meanImgE;
[max_proj,sum_proj]=make_maxproj(red_wavelength_stack); % make a max_projection and sum_projection for... |
250fc9f9acb6375c367f989340055423fb3d58940a722c5327e2cf9139690bc8 | MATLAB | 1,016 | 39 | function cleanticks(ax, nkeep, ah)
% CLEANTICKS clean up tick labels
% CLEANTICKS removes central tick labels from y axis
% CLEANTICKS('y') removes central tick labels from y axis
% CLEANTICKS('x') removes central tick labels from x axis
% CLEANTICKS('x', nkeep) only keeps every 2nth tick
if ~exist('ax','va... |
277fd2f031f07e4df4e3a24bbb562eaa945dbc7536b8952323936f9ff0c3a9a6 | MATLAB | 1,016 | 24 | % f_NotchIIRfilter.m
%
% Copyright (C) 2015, Miguel Navarrete
%
% 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 3 of the License, or
% (at your option) any lat... |
1e7e693ecaf30309612796c33757dea9c7d3d79405c95bd66849d89af637b329 | MATLAB | 1,017 | 26 | % Reads, sets or clears specified bits in a filter mask structure
%
% Implemented through SONFControl.dll
%
% [VAL FILTERMASK]=SONFCONTROL(FILTERMASK, LAYER, ITEM, ACTION)
%
% INPUTS: FILTERMASK, filter mask structure
% LAYER, the layer to change (0 to 3) or 'ALL' for all layers
% ITEM, the item to ... |
92eed70ac0010bc56242db2be998811b6d5792302d001fca82e58079019f7a7a | MATLAB | 1,017 | 42 | function ind = shiftind(data,shift)
% SHIFTIND -
%
%
% Synopsis:
%
% Description:
%
% Examples:
%
% See also:
%
% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>
%
% Department of Physics, Department of Neurobiology
% University of Kuopio, FINLAND
%
% This program may be used under the terms ... |
e3c5298ec37d71671e2fcfab66c1b03a0ac2557bb780bdeb4f717ecdc977d1da | MATLAB | 1,018 | 42 | %
% Compute a network decomposition on the full network.
%
% PARAMETERS
% $network
% $decomposition
%
% INPUT FILES
% dat/data.$network.mat
% dat/info.$network
% dat/meansi.$network.mat
%
% OUTPUT FILES
% dat/decomposition{,_map}.$decomposition.$network.mat
% .D Eigenvalues / Singular value / Middle matrix
% .U Ei... |
a5e29071bd536f9157f523a921def2b1294b946be1270197ac803e2c530f3254 | MATLAB | 1,019 | 35 | function results = vl_test_roc(varargin)
% VL_TEST_ROC
vl_test_init ;
function s = setup()
s.scores0 = [5 4 3 2 1] ;
s.scores1 = [5 3 4 2 1] ;
s.labels = [1 1 -1 -1 -1] ;
function test_perfect_tptn(s)
[tpr,tnr] = vl_roc(s.labels,s.scores0) ;
vl_assert_almost_equal(tpr, [0 1 2 2 2 2] / 2) ;
vl_assert_almost_equal(tnr,... |
3f7c92ff7fd6986301539ebed4b23605c0625800c3a877df6d0ddb6d9453e8b1 | MATLAB | 1,020 | 40 | function[ChanList]=SONChanList(fid)
% SONCHANLIST returns a structure with details of active channels in a SON file
%
% LIST=SONCHANLIST(FID)
%
% FID is the file handle.
% List is a structure with field for the channel number, kind, title,
% comment and the number of physical port data were collected from
% Malcolm L... |
459d3b9bb0dfb3880409ca9ab9ccdcb99a04650e62e0cb0fe8df94601b2be20c | MATLAB | 1,020 | 35 | function FlyTrackerWrapper(outmoviefile,num_cores,options)
p = mfilename('fullpath');
p = fileparts(p);
addpath(genpath(p));
if nargin < 2 || isempty(num_cores),
num_cores = maxNumCompThreads;
else
num_cores = min(num_cores,maxNumCompThreads);
end
fprintf('num_cores = %d\n',num_cores);
options_def.num_cores = ... |
ee72ab8576f1bf6f4008ead1654050fad31d8330de06faae613b5692f1a87f84 | MATLAB | 1,021 | 42 | % mglTestGluDisk: an automated and/or interactive test for rendering.
%
% usage: mglTestGluDisk(isInteractive)
% by: Benjamin Heasly
% date: 03/10/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Test rendering various sizes and shapes of disks.
% usa... |
2b7ff0d921d5fb71a1cb8214dd851442d0f1756263643b2232ae9a5beeaa6223 | MATLAB | 1,022 | 17 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% If you use this code, then please cite:
% 1.- Ana P. Millan, et al. "Individualized epidemic spreading models
% predict epilepsy surgery outcomes: a pseudo-prospective study."
% medRxiv (2023): 2023-03. doi: https://doi.org/10.1101/2023.03.16.232873... |
4afbc793c43490c6a5145f16908adc774618a8e1054ee653f6b388497c00f101 | MATLAB | 1,022 | 30 | function [ out ] = aux_afterPoint( obj, str )
% Remove all text before point
%
% Syntax:
% out = AUX_AFTERPOINT( obj, str );
%
% Input parameters:
% * obj - object containg data
% * str
%
% Output parameters:
% out
%
% Example:
% out = AUX_AFTERPOINT( str );
%
% Adapted from Yohann Thenaisie 20.12.2020 - La... |
93b014dc744a2319a0029f03f1987e9ec03f0318b5682cb5605579bc34d9a709 | MATLAB | 1,022 | 42 | % f_GetSignalNamesArray(pstr_ChannStr)
%
function [v_SignalNamesCell] = ...
f_GetSignalNamesArray(...
pstr_SignalStr, ...
ps_MakeUpper)
if nargin < 1
return;
end
if ~exist('ps_MakeUpper', 'var') || isempty(ps_MakeUpper)
ps_MakeUpper = 1;
end
clear v_SignalName... |
962d77ded21ab7d9a709e0f0829632ba754d79ece7c8b87fb6a2768276740988 | MATLAB | 1,022 | 31 | function plotERDERS(datar1,labelr1,lower,higher,sampleRate,butterOrder,smoothPara)
%input datar1:3D event EEG data, data format:[sample points*channels* trials]
% labelr1:datar1 label
% lower:High pass filtering parameter settings
% higher:Low pass filtering parameter settings
% sampleRate:the samp... |
f6d1e1640d025307b81be8697dbedca61e693a665fcefe6d2af53f4963e4e659 | MATLAB | 1,022 | 37 | plotTimes1 = [-1.5 -1];
plotTimes2 = [-1 -0.5];
whichND = 0;
thisTrialTimes = trialTimes{1};
% get indices for start and end time points of comparison, first
% time period
startInd1 = find(plotTimes1(1) <= thisTrialTimes, 1, 'first');
endInd1 = find(plotTimes1(2) >= thisTrialTimes, 1, 'last');
% get indices for sta... |
e54f9e929565f6f4ea3656a300924e1a7f55b0cb19c4565b105cd81de61f13c0 | MATLAB | 1,023 | 40 | function results = vl_test_liop(varargin)
% VL_TEST_SIFT
vl_test_init ;
function s = setup()
randn('state',0) ;
s.patch = randn(65,'single') ;
xr = -32:32 ;
[x,y] = meshgrid(xr) ;
s.blob = - single(x.^2+y.^2) ;
function test_basic(s)
d = vl_liop(s.patch) ;
function test_blob(s)
% with a blob, all local intensity ord... |
3751dad7df017d5c2e7861f6230e4c50e60d3007ee9827e6af948f030789a3c1 | MATLAB | 1,025 | 31 | classdef WEARABLE_EXTERNAL < RECORDINGMODE_COMMONMETHODS
% Object with properties and methods to analyse external wearable data
%
% Available at: https://github.com/NCN-Lab/DBScope
% For referencing, please use: Andreia M. Oliveira, Eduardo Carvalho, Beatriz Barros, Carolina Soares, Manuel Ferreira-Pint... |
8e1620df848d3e5819bd7d54324989f8e2dc74d426428652099f86d3a4980f6f | MATLAB | 1,025 | 37 | % removeTaskFunctionHandles.m
%
% $Id$
% usage: removeTaskFunctionHandles()
% by: justin gardner
% date: 09/19/06
% purpose: removes the function handles from task, since
% if you load up in another system matlab gives
% warnings
% copyright: (c) 2006 Justin Gardner... |
d82c73e3d275320f72adc606cc7abacb54150b36a97bbfda756e433391f2946b | MATLAB | 1,025 | 36 | function tests = tutorialTest()
tests = functiontests(localfunctions);
end
function setupOnce(testCase)
rootPath = fullfile(fileparts(mfilename('fullpath')), '..', '..');
testCase.applyFixture(matlab.unittest.fixtures.PathFixture(rootPath));
tutorialPath = fullfile(rootPath, 'tutorials');
addpath(tutorialPath);
testCa... |
f3dc6c0d7bc865fb7cccf1031f5aed2c39cf948bffe69f26efcb0d1700de1340 | MATLAB | 1,025 | 27 | % netBurstDetection_save.m
% saves the result of NB detection
function netBurstDetection_save(inputFolder, outputFolder, userParameters, NB, NBpattern)
numExp = find_expnum(inputFolder, '_BurstDetectionMAT');
trialFolders = dir(inputFolder);
trialNames = {trialFolders(:).name};
% discard . and ..
trialNames = trialName... |
3d7a1d73835b75f60214e36c04fc50a00b3ec57e852af4d49b48463b42510edb | MATLAB | 1,027 | 38 | function R2_scaled=scaled_TR_R2(X,Y,normalised_t)
%% scaled_TR_R2 scales trajectories X and Y to a normalised_t lenght and
%% computes their coefficient of determination
%
% INPUTS
%
% X: n-dimensional trajectory. Rows are times, columns are dimensions
%
% Y: n-dimensional trajectory. Rows are times, columns ... |
5db0d2e59be9a3815b57b84fd8ada35bbd4c5a4e187b6d163398edd90d1bd054 | MATLAB | 1,027 | 22 | function bij = prune_nodes(aij, nodes)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% If you use this code, then please cite:
% 1.- Ana P. Millan, et al. "Individualized epidemic spreading models
% predict epilepsy surgery outcomes: a pseudo-prospective study."
% medRxiv (2023): 2023-03. doi: h... |
685aadc37fe87513911e7da093c71d988b2d14d7e84ffddf587ef114d364aec2 | MATLAB | 1,027 | 37 | % mglNoFlushWait.m
%
% $Id:$
% usage: mglNoFlushWait()
% by: justin gardner
% date: 01/20/2013
% purpose: This just waits for the amount of time a frame update should take but does
% not actually flush the screen. Made to be used instead of mglFlush. When you
% want... |
7de9f5ae83d45eb1c42b9a82b0aaf7dc86d1f9deeb6732e1aa02d254410ee37d | MATLAB | 1,027 | 30 | function [sc,of,units,points,preTrig]=SONGetADCInfo(fh, chan)
% SONGETADCINFO Returns information about an ADC data channel
% (scale{,offset{,units{,points{,preTrig}}}})=SONGetADCInfo(fh, chan)
% Inputs FH SON file handle
% CHAN Channel number 0 to SONMaxChan()-1
% ... |
22fb6a1dc1a5c269f488c19614ce9e901d964984780e551445c8b86e0edd1d43 | MATLAB | 1,028 | 47 | %
% Plot the network evolution together with the p-value and tendency.
%
% PARAMETERS
% $NETWORK
% $STATISTIC
% $TYPE full or split
%
% INPUT
% dat/trend.$TYPE.$STATISTIC.$NETWORK.mat
%
% OUTPUT
% plot/trend.$TYPE.$STATISTIC.$NETWORK.eps
%
network = getenv('NETWORK');
statistic = getenv('STATISTIC');
type = geten... |
daf7e50f9b1c5ea763380c07731886f9d1f5deaaf134c6cd5bc9efc1f0269c0e | MATLAB | 1,028 | 28 | % mglMetalSampleTimestamps.m
%
% usage: [cpu, gpu, results] = mglMetalSampleTimestamps(socketInfo)
% by: Benjamin Heasly
% date: 01/30/2024
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Get a CPU-GPU timestamp pair from the same moment.
%
% Retur... |
527d5c753ac959df4a342bdd583c388ec14dc98de44fd8c9777435c89fbfc57a | MATLAB | 1,029 | 30 | % mglFLush: Commit a frame of drawing commands and wait for the next frame.
%
% usage: results = mglFlush(socketInfo)
% by: justin gardner
% date: 09/27/2021
% copyright: (c) 2021 Justin Gardner (GPL see mgl/COPYING)
% purpose: Commit recent drawing commands and wait for the next frame.
% us... |
2f07b088b7880a98fa22833ecc05cc599a9d20d8ab0f1e1c6e98dbbac0b08d49 | MATLAB | 1,031 | 30 | function [] = rename_individual_worm_images(folder_name, beginIndex, endIndex, shift)
% renames the individually saved matrices by shift
if beginIndex > endIndex
return
elseif shift > 0
%shift up
shift_indecies = endIndex:-1:beginIndex;
elseif shift < 0
%shift down
sh... |
14d608aac2ff31a5403983fc7d79ffc894357ac7fe59b7b1a0d47098573f2abe | MATLAB | 1,032 | 47 | function [d dt pred] = bfs_in_mbgl(A,u)
% BFS_IN_MBGL Reimplement the BFS function with MatlabBGL visitors.
%
% [d dt pred] = bfs_in_mbgl(A,u)
%
% See BFS
%
% Example:
% load ../graphs/bfs_example.mat
% d = bfs_in_mbgl(A,1)
ip_d = ipdouble(-ones(num_vertices(A),1));
ip_dt = ipdouble(-ones(num_vertices(A),1));
... |
656c1f4b390f3abfece3639fe7917b3457b849f6365f28d8418ee30261202eac | MATLAB | 1,033 | 65 | %
% Draw the binormalized degree distributions.
%
% This file is not called beta.m because of the builtin function
% beta().
%
% PARAMETERS
% $NETWORK
%
% INPUT
% dat/data.$NETWORK.mat
%
% OUTPUT
% plot/beta.[auv]{,x}.$NETWORK.dat
% a/u/v - All / left / right
% "" / "x" - Normalized / non-normalized
%
network =... |
931fde187156b74db77b82e1d8cf5b47f1e24c66cf09e04f9572b3d4cea790bd | MATLAB | 1,033 | 33 | function h=sequenceness_results_plot(sfAll, sbAll)
nSubj = size(sfAll,1);
time_bin = 10;
cTime = 0:time_bin:60*time_bin;
%% GLM (fwd mean)
sf= sfAll;
npThresh = squeeze(max((mean(sf(:,2:end,2:end),1)),[],3));
npThreshAll = prctile(npThresh,95);
dtp = squeeze(sf(:,1,:));
hh1=shadedErrorBar(cTime, mean(dtp), std(dt... |
2c9d3aa904c795d64e023354d708e6e642a51978d37b4beebc17566ed498b6ff | MATLAB | 1,034 | 41 | % mglTestPolygon: an automated and/or interactive test for rendering.
%
% usage: mglTestPolygon(isInteractive)
% by: Benjamin Heasly
% date: 03/10/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Test rendering a convex polygon.
% usage:
% ... |
6bb2d7e2e3067aad19d1d8fc12befd55cebd557d8ef0b02a6eac78b7b0b23a07 | MATLAB | 1,034 | 27 | function [exist_variance_file dtseries_var_path] = check_exist_variance_file(dtseries_var_path,handles)
exist_variance_file=isfile(dtseries_var_path);
if exist_variance_file==0
[filepath,name,ext] = fileparts(dtseries_var_path);
% alt_dtseries_var_path=[handles.alternative_path_variances filesep n... |
8e1fc92c5ed77ec8183ffa021241756cb91bed466ce644dba4e657abb103b834 | MATLAB | 1,034 | 39 | classdef RGBAImage < types.core.Image & types.untyped.DatasetClass
% RGBAIMAGE A color image with transparency.
methods
function obj = RGBAImage(varargin)
% RGBAIMAGE Constructor for RGBAImage
obj = obj@types.core.Image(varargin{:});
p = inputParser;
p.KeepUnmatc... |
ec8146e8558de168b6eab0b2fb2fae764ea3a5a5064a8275c87703ccd9c52d32 | MATLAB | 1,034 | 28 | %% fig3D
% load data
data_path = '/Users/celia/Documents/two_context_data'; % change this
cal = load(fullfile(data_path, 'calcium_20220516_170618/analysis_results.mat'));
tet = load(fullfile(data_path, 'tetrodes_20220316_100902/analysis_results.mat'));
best_aligned = [cal.analysisResults.BestAligned; tet.analysisResul... |
03f37d676db5a20d7374106e2a6c358a777d265e5fd5848bb4ed4a607ec737ba | MATLAB | 1,035 | 42 | % mglTestPoints: an automated and/or interactive test for rendering.
%
% usage: mglTestPoints(isInteractive)
% by: Benjamin Heasly
% date: 03/10/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Test rendering some points.
% usage:
% % You ... |
17af486b1fae809c9c497ece4ac5e3ca52fcedce9686d687c7fc3f9dde890e73 | MATLAB | 1,035 | 41 | function [precisionType,nBytes] = TDMS_getTypeSeekSizes
%TDMS_getTypeSeekSizes Returns information for fread and fseek
%
% [precisionType,nBytes] = TDMS_getTypeSeekSizes
%
% For internal use
%
% precisionType : the string that goes to fread
% nBytes : gets multiplied by # of values to know how many byte... |
1f9ece6d355999b2a8f11fe4dbb068b402347dbcc237ad2e5f553f1af2bf47a4 | MATLAB | 1,036 | 26 | function [edges_s,edge_type,myosin2,P] = remove_small_myosin2(r_s,edges_s,edge_type,myosin2,P)
% check the length of the myosin rods
aux = find(edge_type == 4);
d = r_s(edges_s(aux,1),:) - r_s(edges_s(aux,2),:);
d = sqrt(dot(d,d,2));
aux_r = find(d < P.min_r2);
% remove those myosin rods that ar... |
8309f0b44ed65454b9be41c4d46106ca33a88f3abdda028db8d93a51c44fe7dd | MATLAB | 1,037 | 38 | function h = vl_demo_kdtree_plot(kdtree, nodeIndex, xlim, ylim)
% VL_DEMO_KDTREE_PLOT
% Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
% All rights reserved.
%
% This file is part of the VLFeat library and is made available under
% the terms of the BSD license (see the COPYING file).
dim = kdtree.no... |
ccc723b32de843fffe7e4740c3fcb330e9a07a7a1001dc9b23358b8c3977aa85 | MATLAB | 1,037 | 23 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
function [uniquePairs] = unique_groups_sessions_to_groups(SessionsToGroups)
% This mess is just to get a Nx2 cell array of unique combinations of a
% groupId and a groupLabel.
uniqueGroupLabels = unique(SessionsToGroups.... |
dde661bfea12d5397f41816cc20191f5cb959ae139e4003b59e02bdab24da1b2 | MATLAB | 1,037 | 34 | % f_AskSamplesLims.m [Part of HFO Detection Project]
% Written by:
% Miguel G. Navarrete Mejia
% Electrical Engineering MS candidate
% UNIVERSIDAD DE LOS ANDES
% Colombia, 2012
% mnavarretem@gmail.com
function [ps_SampleIni ps_SampleEnd]= f_AskSamplesLims(ps_SampleRate,...
... |
28d160cd1d57bf19a467e0c2938fce03dd77640d68642a07e915cb0aa5eaac7e | MATLAB | 1,038 | 26 | % searchFolder.m
% by Valentina Pasquale, 2008-03-10
% ARGUMENTS:
% parentDir: the directory which the algorithm searches in (only 1st level, not every subdirectory)
% string: a string that identifies the folder to look for in parentDir
% (e.g. SpikeAnalysis, BurstAnalysis)
% OUTPUT:
% folderPath: the absolute path(s... |
e4922869b821dc22651ec5d08a02a3d00775fb956e0918c58630782474bca152 | MATLAB | 1,038 | 37 | function [] = ExtDataFig01_Example_TimeCourse_OptStim_Song_dPR1
% Code for plotting the example song trace during optogenetic stimulation in Extended Data Fig. 1f.
% TargetFileID = 6;
load('../Data/Summary/Mic_20211228_01_2.mat')
load('../Data/Summary/OptStim_20211228_01.mat')
TargetTrial = 2; % 4-5, 3-2
load('../Dat... |
0cefb77e31518075c7f4d78e82e3942d67a21c297d1f70cbf9ed7dffda494095 | MATLAB | 1,039 | 33 | function[]=SONTest(file)
% SONTEST tests the integrity of a SON File usinf CED's SonFix program.
%
% SONTEST(FILE)
% FILE may be a string or a file identifier
% If FILE contains a directory root but no filename or *.smr, all
% files in the directory will be tested.
% Files currently open for writing within Matlab wil... |
d8066ad6b8ffa8a3cfa62495da2be415ab69de3782201d96ccfdcd7536046dc8 | MATLAB | 1,039 | 45 | % ficTracVelocityNoisePlot.m
%
% quick and dirty script to plot raw FicTrac yaw signal, showing where
% oscillations in velocity calculation come from (slight jitter in position
% signals are amplified)
%
% see FicTracVelocityNoise.fig figure saved in 2PAnalysis-Helen folder
cd('/Volumes/Samsung_2tb/Wilson Lab/RAW DAT... |
05d332131b108c61bbdffee3743cd6a037a280c06358cd2260108b89f9c20d5a | MATLAB | 1,040 | 25 | % SONLASTTIME returns information about the last entry on a channel
% before a specified time
%
% Implemented through SONLastTime.dll
%
%[time, data, markers, markerflag]=...
% SONGETADCDATA(fh, chan, eTime, sTime{, FilterMask})
%
% INPUTS: FH SON File Handle
% CHAN Channel number (1 t... |
32a87e5e4c3a342e606d17bd96a23ad478ba537c46230be744dae22be55d79ac | MATLAB | 1,040 | 39 | % mglGluAnnulus - draw annulus/annuli at location x,y
%
% $Id$
% usage: [ ] = mglGluAnnulus( x, y, isize, osize, color, [nslices], [nloops] )
% by: denis schluppeck
% date: 2007-03-19
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% inputs: x, y, size, color
%... |
6429296a2755ebd09b41b80f1aa78a528a847bc0432296872d7194ad538039ae | MATLAB | 1,040 | 32 | function s = join(d,varargin)
%S=JOIN(D,L) joins a cell array of strings L by inserting string D in
% between each element of L. Meant to work roughly like the
% PERL join function (but without any fancy regular expression
% support). L may be any recursive combination of a list
... |
6de41aa0361fb427a4148b0c1c3f2885836719c9dc2ca5fc62886dc554f1afb3 | MATLAB | 1,041 | 38 | function [params, gamma] = gamma_179(params, state)
% 179-rule DSS gamma function
% [params, gamma] = gamma_179(params, state)
% params Gamma function parameters
% state DSS algorithm state
% gamma Result gamma coefficient
% Copyright (C) 2004, 2005 DSS MATLAB package team (dss@cis.hut.fi).
% Distri... |
b5da9d763a0b1d53dd6c5cb8985d80ce4a09fb8b84c08a3aaaa367d5050b9c86 | MATLAB | 1,041 | 44 | function [xVertices, yVertices] = ml_nlx_user_select_arena_roi( posX, posY, titleStr )
PLOT_CONVEX_HULL = true;
K = 10;
fprintf('ROI reference points will be asked for. Hit enter after points are selected.\n');
h = figure;
plot(posX, posY, 'b.')
hold on
if PLOT_CONVEX_HULL
% If not enough points are g... |
e6895038c6954d374f3d80ba745477c2fbac9bbbae3ba01a477b733b51e82acb | MATLAB | 1,041 | 33 | function h=vl_plotpoint(V,varargin)
% VL_PLOTPOINT Plot 2 or 3 dimensional points
% VL_PLOTPOINT(V) plots the 2 or 3 dimensional points V. V is a 2xK or
% 3xK array, with one point per column.
%
% H=VL_PLOTPOINT(...) returns the handle H of the plot.
%
% VL_PLOTPOINT() is a simple wrapper around the PLOT() and... |
6dd888e24dc6b1faa9b866209bec741ec71f47f1c7fdbf77316ecdd0a98d65f5 | MATLAB | 1,042 | 26 | % Reads, sets or clears specified bits in a filter mask structure
%
% Implemented through SONFControl.dll
%
% [VAL FILTERMASK]=SONFCONTROL(FILTERMASK, LAYER, ITEM, ACTION)
%
% INPUTS: FILTERMASK, filter mask structure
% LAYER, the layer to change (0 to 3) or 'ALL' for all layers
% ITEM, the ... |
f6bf12e92893a18c9a45f1998d9801e4bee44811414d078f14488ac6cd87535e | MATLAB | 1,042 | 30 | function nodes = delnode(nodes,num)
% nodes = delnode(nodes,num)
%
% Function to delete a single node (branch point of blood vessels). Nodes
% are arranged as a structure array with fields:
%
% node.num - identifying number
% node.root - root node, if it exists (0 is no root)
% node.conn - connecti... |
4c1d7c2a558be3ebb98637848d7c2261cec2261bbad7d2cdaff954b2b1999fa4 | MATLAB | 1,043 | 37 | function l = length(tree,r)
% XMLTREE/LENGTH Length Method
% FORMAT l = length(tree,r)
%
% tree - XMLTree object
% r - 'real' if present, returns the real number of nodes in the
% tree (deleted nodes aren't populated)
% l - length of the XML tree (number of nodes)
%_______________________________________... |
8de4f300cc60d4169ef1d643233403d2bf3ec2b77e3c5c8501eb68cc1d749dfd | MATLAB | 1,043 | 34 | % mglRenderingDemo: go through several interactive rendering demos.
%
% usage: mglRenderingDemo(testNames)
% by: Benjamin Heasly
% date: 03/10/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Run all the mgl test scripts in the mglRenderingTests folder.
% ... |
748d2f8f026a07a711d156a23742e0ed173cd1cfb805fc0b6cdfa5aec281071a | MATLAB | 1,045 | 37 | % mglDisplayCursor.m
%
% $Id$
% usage: mglDisplayCursor()
% by: Justin Gardner
% date: 02/10/07
% copyright: (c) 2007 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: display/hide cursor, note that the cursor will be hidden/unhidden only
% when the focus is on the... |
fb44e7dbfd5ff5e488fbe056170506cd1263d43fb47fb5b5ad62fabd79b99475 | MATLAB | 1,046 | 27 | function [ text ] = getBatteryInformation( obj )
% Display information about battery.
%
% Syntax:
% GETBATTERYINFORMATION( obj );
%
% Input parameters:
% * obj - object containg data
%
% Example:
% GETBATTERYINFORMATION( );
%
% Available at: https://github.com/NCN-Lab/DBScope
% For referencing, please use: Andre... |
01d5a20ac3b4e41451dc8dcee52eeb58df45f7d5add9620d1d2db75d980694bc | MATLAB | 1,047 | 30 | function [trialFolders] = ml_cai_io_trialfolders_find(experimentFolder)
% Check if the experiment folder exists (it may not due to user error)
if ~isfolder( experimentFolder )
error("The folder (%s) does not exist so we can not find any trial folders inside of it.", experimentFolder);
end
d = dir( sprintf('%s/H*'... |
52765b7d05c95ed4a1502937882aea43399f3c83ddd8a113e5f897f8e61b8683 | MATLAB | 1,048 | 38 | % slepianWinFilter.m
%
% Implements low pass filtering by convolving input with 0th order Slepian
% window with user specified half bandwidth (in Hz) and sample rate
% (in Hz)
%
% Based off of py.filter_tools.lpf_linear_filter in a2lib from S. Holtz,
% but corrected so input amplitude isn't changed by filtering
%
... |
8997fd233fa4c4b2c3ce4502d9ab11c6139d28f3e2d0c9a608393a8a6ff23174 | MATLAB | 1,048 | 32 | function [s,ds1,ds2,ds3] = spm_sample_priors(b,x1,x2,x3,bg)
% Sample prior probability maps
% FORMAT [s,ds1,ds2,ds3] = spm_sample_priors(b,x1,x2,x3,bg)
% b - a cell array containing the tissue probability
% data (see spm_load_priors)
% x1,x2,x3 - coordinates to sample
% bg - backgrou... |
b2afec26161b624587ca407dbb512585440c80d7463850a60443e55c281f726e | MATLAB | 1,048 | 38 | % mglTestMetalRepeatingDots: an automated and/or interactive test for rendering.
%
% usage: mglTestMetalRepeatingDots(isInteractive)
% by: Benjamin Heasly
% date: 03/17/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Test random dots, repeated by the Meta... |
cb0c2feafaab88e258df35a7a0dc7d1b5f9e6b5d4bb8eec5cbb45b9341e69839 | MATLAB | 1,048 | 48 | %
% Plot one Zipf plot.
%
% PARAMETERS
% p (e*1) Node indexes
% q (e*1) Multiplicities; [] to denote all ones
% letter
%
function zipf_one(p, q, letter)
font_size = 24;
marker_size = 13;
point_style = '.';
colors = konect_colors_letter();
if length(q) == 0
q = 1;
end
degrees = full(sparse(p, 1, q, max(p),... |
50cd17409e71e4f82cc4f2004ade7e7728b932b1e03733ea3e49c164b3ba9718 | MATLAB | 1,049 | 34 | function [ status, text, obj ] = open_mat_files( obj )
% Select workspace to open.
%
% Syntax:
% OPEN_MAT_FILES( obj );
%
% Input parameters:
% * obj - object containg data
%
% Output parameters:
% status
% text
%
% Example:
% OPEN_MAT_FILES( multiple_files );
%
% Available at: https://github.com/NCN-Lab/DB... |
524bbbd71c5defe4901aa8ed742d37cefcba7f45bac92d8f05c7e555d16d4be6 | MATLAB | 1,050 | 36 | function SaveNII(var, fname, example, bgvalue)
% savenii(var, fname, example)
%
% Saves variable "var", sized [x, y, z, m], as a NiFTi file.
% NiFTi filename "fname" must be provided by the user. A NiFTi
% template must be given as well "example". Typically, this is
% the original diffusion-weigthed data to ensure all ... |
85f0814d2656f7aaffb5101110383b04b26982bc85325ee1db4936ea3b3f1f59 | MATLAB | 1,050 | 27 | function plot_cellreg_placemaps(obj, session)
outputFolder = fullfile(session.getAnalysisDirectory(), obj.Config.cellreg_placemaps_plot.outputFolder);
if ~exist(outputFolder, 'dir')
mkdir(outputFolder);
end
numRegCells = session.getNumCells();
fprintf('There are %d registered cells.\n', nu... |
9399e42e7de7182ba603bbca101d8e2b2bf6f4d5bca1a39b400b43d558c38b68 | MATLAB | 1,050 | 39 | classdef GrayscaleImage < types.core.Image & types.untyped.DatasetClass
% GRAYSCALEIMAGE A grayscale image.
methods
function obj = GrayscaleImage(varargin)
% GRAYSCALEIMAGE Constructor for GrayscaleImage
obj = obj@types.core.Image(varargin{:});
p = inputParser;
p... |
f7fb06646721c0d6a53e9bcf48e356f56a370100a2fcb8e3dad55fba9268282a | MATLAB | 1,050 | 39 | function [innermost, inside] = find_innermost_boundary(bnd)
% FIND_INNERMOST_BOUNDARY locates innermost compartment of a BEM model
% by looking at the containment of the triangular meshes describing
% the surface boundaries
%
% [innermost] = find_innermost_boundary(bnd)
%
% with the boundaries described by a struct a... |
f9d070b4e4f5a7b0e66c01362ff61b9b311dfda81cc6ca4ec923096035e44d0f | MATLAB | 1,050 | 38 | % discrete gradient using central difference
% Gx = cdiv(x, voxel_size)
%
% output
% Gx - the gradient (4D matrix with Gx, Gy, Gz)
%
% input
% x - the scalar field
% voxel_size - the size of the voxel
%
% corresponding inverse/transpose operation is cdiv (divengence)
%
% Created by Ludovic de Rochef... |
30c913d5c16a88ed46ab1c29ad1453db6e567aefe1d7af0ce73ef2be06dbd72c | MATLAB | 1,051 | 36 | % sankey demo5
% -----------------------
% @author : slandarer
% 公众号 : slandarer随笔
% 知乎 : slandarer
figure('Name','sankey demo1','Units','normalized','Position',[.05,.2,.5,.56])
links={'a1','A',1.2;'a2','A',1;'a1','B',.6;'a3','A',1; 'a3','C',0.5;
'b1','B',.4; 'b2','B',1;'b3','B',1; 'c1','C',1;
'c2',... |
0db5d5519db72df228780c76fa6171ab53d966b86386080bcf44da892f676f45 | MATLAB | 1,054 | 42 | %
% Compute the row and column means. The halves are saved, to streamline
% normalization.
%
% PARAMETERS
% $network Network name
% $type String
% full On the full dataset
% split On the source set of the split
% training One the training set of the split
%
% INPUT
% dat/data.$network.mat (only FULL)
% dat... |
17738a778b60f499b7bc0faa854d82b815dbf489bb3f75f59822e8db2015b32b | MATLAB | 1,055 | 30 | function [params, s_new] = denoise_tanh(params, s, state)
% Tanh DSS denoising function
% [params, s_new] = denoise_tanh(params, s, state)
% params Function specific modifiable parameters
% state DSS algorithm state
% s Source signal estimate, matrix of row vector signals
% s_new Denoised s... |
ada19b757b45e02490b0e2900507bb91a9273aa2c17b128b948a43089a8efdc6 | MATLAB | 1,055 | 25 | % calculate the mean and variance of arbitery windows using integral image computation
function locSum = calcLocSum(I, gridx, gridy, patchSize)
% if isdouble(I), Ip = I; else Ip = double(I); end
Ip = double(I);
[imh, ~, imc] = size(Ip);
% coordinates of center pixels for computing regional sum in integral image(ca... |
fea49a914583f47d16778f7431e96b64d6efce7826dbd69e736476279a92f5ea | MATLAB | 1,055 | 45 | function hdr = encode_qform0(M,hdr)
% Encode an affine transform into qform
% _______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
%
% $Id: encode_qform0.m 8776 2013-11-14 09:04:48Z roboos $
% Convert from first voxel at [1,1,1] to first ... |
0b40b00db068fbe22e0dc0efd7c670e15654d4d6be2c8ece2b3670ca5190b866 | MATLAB | 1,056 | 27 | function ret=SONWriteMarkBlock(fh, chan, buffer, count)
% SONWRITEMARKBLOCK writes data to a marker channel
%
% Implemented through SONWriteMarkBlock.dll
%
% RET=SONWRITEMARKBLOCK(FH, CHAN, TIMESTAMPS, MARKERS, COUNT)
% INPUTS: FH the SON file handle
% CHAN the target channel
% TIMESTAMPS a vector of i... |
fa1d027c284deac06d918861e6f778e7675b8d19d32a5fe37ce58edc85733342 | MATLAB | 1,056 | 32 | close all
clear all
clc
frameRate_hz = 15;
% Select a video
%limelightFilename = fullfile('C:\Users\fym313\Documents\help_borna_limelight', 'CX3 2523.llii');
%limelightFilename = fullfile('C:\Users\fym313\Documents\help_borna_limelight', 'CX3 2523 Dark.llii');
%limelightFilename = uigetfile();
msg = 'Select the folde... |
29fc418ff6c616b194b654a5bd3b8f9a79daae34cfbde80ef2b64026fc72b65c | MATLAB | 1,057 | 22 |
function fileList = getAllFiles(dirName, fileExtension, appendFullPath)
dirData = dir([dirName '/' fileExtension]); %# Get the data for the current directory
dirWithSubFolders = dir(dirName);
dirIndex = [dirWithSubFolders.isdir]; %# Find the index for directories
fileList = {dirData.name}'; %'# Get a l... |
65f8747228964228c95f8931efcb71437fdafadd59072accb5216d1a789908e1 | MATLAB | 1,057 | 27 | function [colourHist blobSizes] = BlobStructColourHist(blobIndIm, colourIm, cBin)
% function [colourHist blobSizes] = BlobStructColourHist(blobIndIm, colourIm, cBin)
%
% Creates colour histograms for the segments in blobIndIm
%
% blobIndIm: Image with indexes denoting the segments 1...N
% colourIm: ... |
7b77893bbce58202fdaf29e2bc4398fb39e85690e4f70bbe5fb00cb5fb990f51 | MATLAB | 1,057 | 30 | function [sc,of,units,points,preTrig]=SONGetADCInfo(fh, chan)
% SONGETADCINFO Returns information about an ADC data channel
% (scale{,offset{,units{,points{,preTrig}}}})=SONGetADCInfo(fh, chan)
% Inputs FH SON file handle
% CHAN Channel number 0 to SONMaxChan()-1
% ... |
771010af6622f7a7b42db3f809dcad7325c7e73ee9584f06578b09ab40abf5da | MATLAB | 1,058 | 34 | function [params, gamma] = gamma_predictive(params, state)
% Predictive controller learning rate modification rule
% for deflation DSS
% [params, gamma] = gamma_predictive(params, state)
% params Gamma function parameters
% state DSS algorithm state
% gamma Result gamma coefficient
% Copyright (C) 2... |
ebc443a5cc1381ecfb82cb4113216c6c02d8846d400fd238f303b46db6dd802c | MATLAB | 1,058 | 32 | function deleteFilters( obj, indx )
% Delete previously applied filters
%
%Syntax:
% DELETEFILTER( obj, filt_list );
%
% Input parameters:
% * obj - object containg data
% * indx - indices of filters to be deleted
%
% Example:
% DELETEFILTER( indx );
%
% Available at: https://github.com/NCN-Lab/DBScope
% For ... |
30a8bb2de03e7b7fb468287a3528ae12f5035d274e35e651a48ec3f97d81a4b9 | MATLAB | 1,059 | 38 | % mglTestMetalRepeatingQuads: an automated and/or interactive test for rendering.
%
% usage: mglTestMetalRepeatingQuads(isInteractive)
% by: Benjamin Heasly
% date: 03/10/2022
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: Test random quads, repeated by the M... |
79eaed24acdf65d2339550eb6389678f42114a6a14e1cc8c064546d59ed339df | MATLAB | 1,059 | 37 | function [x, y] = RectCenter(r)
% [x,y] = RectCenter(rect);
%
% RectCenter returns the integer x,y point closest to the center of a rect.
%
% See also PsychRects, CenterRectOnPoint.
% 9/13/99 Allen Ingling wrote it.
% 10/6/99 dgp Fixed bug.
% 5/18/08 mk Vectorized.
% 5/30/09 mk Bugfix in vectorization.
if nar... |
c2be4aad222c1ef8cf97f6f63e07cbfe43a136018ebbbce6b74c432c4d42e52d | MATLAB | 1,059 | 31 | clear
file=dir('ACC*uncertain*.mat');
k=1;
for jj=1:length(file)
load(file(jj).name)
n=length(outcome);
n1=fix(n*0.67);
early_g=[find(outcome(1:n1,1)==1);find(outcome(1:n1,1)==2);find(outcome(1:n1,1)==5)];%early phase
late_g=[find(outcome(n1+1:n,1)==1);find(outcome(n1+1:n,1)==2);find(outcome... |
1c00b07a1199441e4b00d028f4e6137e53452d356bb89402ca38c12600f18fd4 | MATLAB | 1,060 | 47 | function [ax] = plotSpikeSample(data,msecs,category)
%plotSpikeSample.m 8/31/22
tickdir = 'out';
dobox = 'off';
dogrid = false;
xUB = max(msecs);
xUBR = round(xUB,-2);
xt = [0:50:xUBR];
clrsMap = containers.Map();
clrsMap('orig') = [1 1 1]*0.6;
clrsMap('fit') = [0.3961 0.1098 0.0863];
clrsMap('res') = [0.0039 0.12... |
364fee774f706cf6127962bfd2a91ef494a1b6e705a35e8c4d672fe631d532c8 | MATLAB | 1,060 | 40 | function[ChanList]=SONChanList(fid)
% SONCHANLIST returns a structure with details of active channels in a SON file
%
% LIST=SONCHANLIST(FID)
%
% FID is the file handle.
% List is a structure with field for the channel number, kind, title,
% comment and the number of physical port data were collected from
% ... |
c334bb1434d3b062193d2e0a2e00385aa039c4d88875e18f8f99602e844edbfe | MATLAB | 1,060 | 45 | %
% Compute a network decomposition on the full network.
%
% PARAMETERS
% $network
% $decomposition
%
% INPUT
% dat/data.$network.mat
% dat/info.$network
% dat/meansi.$network.mat
%
% OUTPUT
% dat/decomposition{,_map}.$decomposition.$network.mat
% .D Eigenvalues / Singular value / Middle matrix
% .U Eigenvectors o... |
97af69d16b03695af9886f145ffffe22c95a7e720ff5ef88957bc02603b772f6 | MATLAB | 1,061 | 38 | % init global variables for EEG-fMRI connectomes
% set serialized_path to cloned repo from https://github.com/jwirsich/eeg-fmri-tle/data
%
% 2022-08-22 Jonathan Wirsich
function [confs, confs_label, groups, eeg_conn_types, bands, atlases, serialized_path] = init_serialized_conf_tle()
co = 0;
co = co +1;
co... |
bf85bc77b27dc0a103a1e34d39c887ec8431d44282f9d804cafde314a090d907 | MATLAB | 1,061 | 44 | function fun = InvProbV2(x,Imat_t,dsr_t,ni,nh,no,tn,delta,data)
wh = reshape(x(1:ni*nh),[ni,nh]);
wo = reshape(x(ni*nh+1:ni*nh+nh*no),[nh,no]);
bh = (x(ni*nh+nh*no+1:ni*nh+nh*no+nh))';
bo = (x(ni*nh+nh*no+nh+1:ni*nh+nh*no+nh+no))';
y_r = reshape(x(ni*nh+nh*no+nh+no+1:ni*nh+nh*no+nh+no+no*tn),[tn,no]);
a = x(n... |
6175689eb20b2f77f1696d1a2464b88c5eeceb636dbd31a8366dc75fd1ece424 | MATLAB | 1,062 | 43 | function [out] = meanangle(in,dim,sens)
% MEANANGLE will calculate the mean of a set of angles (in degrees) based
% on polar considerations.
%
% Usage: [out] = meanangle(in,dim)
%
% in is a vector or matrix of angles (in degrees)
% out is the mean of these angles along the dimension dim
%
% If dim is not specified, th... |
750085757caf33889314b558a548efdddf01a31458164723c56bcdcee6150de8 | MATLAB | 1,062 | 33 | %function for getting IR zones for anophles vidoes
function [Params] = getzones3(Params)
Zones = {};
for foldNumber = 1:length(Params.FilePath)
[Z1,Z2,frame] = gZone2(Params,foldNumber);
%show zone vertices
zFrame = insertShape(frame,'FilledCircle',[Z1 ones(length(Z1),1)*10],'Co... |
d7aaa81eb0186362a2c05f015ad65048a6c3b2706af9cfed68ac521d188d2176 | MATLAB | 1,062 | 45 | function hdr = encode_qform0(M,hdr)
% Encode an affine transform into qform
% _______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
%
% $Id: privateencode_qform0.m 8776 2013-11-14 09:04:48Z roboos $
% Convert from first voxel at [1,1,1] to... |
9b0be77903899c11c14a67244d0bcf5589fc40b34e8922333ae1a0e56469c903 | MATLAB | 1,063 | 45 | function hsl=rgb2hsl(rgb_in)
%Converts Red-Green-Blue Color value to Hue-Saturation-Luminance Color value
%
%Usage
% HSL = rgb2hsl(RGB)
%
% converts RGB, a M [x N] x 3 color matrix with values between 0 and 1
% into HSL, a M [x N] X 3 color matrix with values between 0 and 1
%
%See also hsl2rgb, rgb2hsv, hsv2... |
92edc17fb2f223914a27952ec11362e893240b8960e849e220482b395bc5559d | MATLAB | 1,064 | 40 | function [ciu,valu,mult,indx] = fcn_unique_partitions(ci,val)
%FCN_UNIQUE_PARTITIONS returns unique partitions
%
% [ciu,valu,mult,indx] = fcn_unique_partitions(ci,val) takes a set of
% partitions ci and associated scalar values val and identifies only the
% unique partitions, ciu, the max val for each ciu, a... |
cc428185c4b2db06dbbc78b860286a1538e7542f6c6244ea189e0919f5820f5e | MATLAB | 1,064 | 25 | % SONLASTTIME returns information about the last entry on a channel
% before a specified time
%
% Implemented through SONLastTime.dll
%
%[time, data, markers, markerflag]=...
% SONGETADCDATA(fh, chan, eTime, sTime{, FilterMask})
%
% INPUTS: FH SON File Handle
% CHAN Channel nu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.