sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
e53c463f0de11783a22128869e56dec8d04a026b81d7a1a5bac977a8df0b5fb7 | MATLAB | 10,228 | 272 | % findLegReversals.m
%
% Function to find when leg position in x reaches max and min, i.e.
% reverses direction
% Algorithm: smooth leg position aggressively using sliding window; using
% overlapping windows, find index of max, min; if index of max/min isn't
% the first or last index of the window, flag the window;... |
82bdd77af2742109fe17bd7e2abb2a00a0bfb1d96a6db503a4966ccd86f6703e | MATLAB | 10,268 | 362 | %figS8_eval_synthetic_RPk0nr3.m
%
%%
clear all;
close all;
clc;
%% addpath if not added yet
% assumes script run within local directory
scriptdirs = {pwd;
'..\..\plot';
'..\..\helper_functions';
'..\..\analyze';
};
addpath(scriptdirs{:})
datadir = pwd;
nSS = 1000;
ssfile = 'subsample1000_stdFR_RPk0nr3.mat';
sspath... |
a936b85d7633b3a52c33b61537d38012f519f7f60749c3e72bb58215997d2f49 | MATLAB | 10,269 | 247 | function [HDR,data,t]=matread(HDR,arg2,idxlist)
% MATRREAD Loads (parts of) data stored in Matlab-format
%
% [HDR,data,timeindex]=matread(HDR,block_number, [startidx, endidx])
% This is the recommended use for Matlab-files generated from ADICHT data
% Before using MATREAD, HDR=MATOPEN(filename, 'ADI', ...) must be app... |
a48e962d51c1765b840a6b2d847cfd931757c53ef0cde07b0723bc0e7747f77b | MATLAB | 10,277 | 361 | %figS9_eval_synthetic_RPk0_4nr4.m
%
%%
clear all;
close all;
clc;
%% addpath if not added yet
% assumes script run within local directory
scriptdirs = {pwd;
'..\..\plot';
'..\..\helper_functions';
'..\..\analyze';
};
addpath(scriptdirs{:})
datadir = pwd;
nSS = 1000;
ssfile = 'subsample1000_stdFR_RPk0.4nr4.mat';
ss... |
8c6d3e738b974351b41bebd4251a9317751e823ec7456b55227c91b41ef8b398 | MATLAB | 10,284 | 361 | %figS10_eval_synthetic_RPk0_7nr18.m
%
%%
clear all;
close all;
clc;
%% addpath if not added yet
% assumes script run within local directory
scriptdirs = {pwd;
'..\..\plot';
'..\..\helper_functions';
'..\..\analyze';
};
addpath(scriptdirs{:})
datadir = pwd;
nSS = 1000;
ssfile = 'subsample1000_stdFR_RPk0.7nr18.mat'; ... |
ee9bdf08889dbdec90f54c6ac97ec034813d7ee4a8fe569050cf3ebe635b181f | MATLAB | 10,288 | 276 | function d = readSpikeFile(filename,chans)
%% readSpikeFile.m imports Cambridge Electronic Design Spike2 files
%
% Requires the MATLAB SON library version 2.4 or higher.
%
% -------------------------------------------------------------------------
% Author: Malcolm Lidierth 07/06
% Copyright © The Author & King's Coll... |
02f68d7cfb8ecb5c7e6c053f2a6c74c107076cf2105c7ddfdc7d1f4691706df9 | MATLAB | 10,309 | 285 | function [imageLines,startColumn,endColumn,index_vals1,windowsize,velocity,pixel_size,badvals,meanvel,stdvel,Switch_to_mm,numWorkers,fpscheck,full_analysis,index_length,numavgs, skipamt] = VD_MBF_LSPIV( LineScanTable, nImage, mImage, fpscheck, pixel_size, numWorkers, windowsize)
% LSPIV with parallel processing enable... |
e07ab943f294a7f909cb4a808db4efdd65fbcf0767dde2845379237151d5c088 | MATLAB | 10,335 | 268 | % getMoveNotMoveSpikerate.m
%
% Function to get mean spike rate during moving and not moving periods,
% with transitions excluded.
% Operates on pData files from multiple flies (merges data from pData files
% from same fly but separates data from different flies)
%
% INPUTS:
% cond - struct of conditions that time ... |
b954c69afbbcdcb2ae6ce5ec8e6e69838e428fa336e97ec5c477e7984108ba7f | MATLAB | 10,359 | 358 | %-------------------------------------------------------------------------------------
% lfps.m
% Plots voltage activity for (spatially) local clusters of neurons in the
% cortex (L2)
%
% Requires:
% - files: time_cx_*folder* (for each folder)
% - scripts: sampleparcels.m
% - output folder: 'figures'
%
% Last revised: ... |
1fe82466829e9cd83e4f0a75d178cb926ec7407699652bb4f4d6939689117c9c | MATLAB | 10,360 | 141 | function displayPairingStatistics(cnmf,pcaica,suite2p,est)
clc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Single algorithm statistics
fprintf('Ideal:')
fprintf('Number componants: %d\n', size(est.estact,1))
fprintf('Number paired componants (>0.1,>0.3,>0.5): (%d,%d,%d)\n', sum(e... |
9cbfe4642584d17e6b2dc22abddb163a5e3b3fe5784fe7169b1186bfa6dfcc7c | MATLAB | 10,390 | 236 | function plotPWelch ( obj, varargin )
% PLOTWELCH Plot Pwelch (PSD along frequencies) for each channel
% Use LFP online streaming recordings
%
% Syntax:
% PLOTWELCH( obj, varargin );
%
% Input parameters:
% * obj - object containg data
% * ax (optional) - axis where you want to plot
% * data_type (optional) ... |
b37e7a8156fdd8197322543d9a3ef61c735d1617cfd9a0e068d0ddb4a23d3d0d | MATLAB | 10,398 | 292 | function [status, message]=xlwrite(filename,A,sheet, range)
% XLWRITE Write to Microsoft Excel spreadsheet file using Java
% XLWRITE(FILE,ARRAY) writes ARRAY to the first worksheet in the Excel
% file named FILE, starting at cell A1. It aims to have exactly the same
% behaviour as XLSWRITE. See also XLSWRITE.
%
%... |
bcc6ba5c56b5b1cdecd14f4e72c57408d4730a1460544a8f6093b8ed1bffdda6 | MATLAB | 10,402 | 263 | function [Eval,T_prop,RGB,Mlines] = particlePropertiesEval(map,Class,pxsz,Image, varargin)
% Function to give out particle properties for a HRTEM image segmentation
%
% INPUTS:
% map: Segmentation map, uint8 file
% Class: integer
% Class to analyze
% Recognized Name-Value Pair arguments... |
e82db800b481ce8e77028dd4fb24d42de1db881ef85e2bdfd26ee51ced018454 | MATLAB | 10,404 | 281 | clear
close all
tic
rng(040522)
% setting up the initial configuration
P.y0 = 180;%nm, corresponds with spectrin bundle length
P.x0 = sqrt(P.y0^2 - (P.y0/2)^2);%nm; height of the triangles
P.max_y0 = 17*P.y0/2;
P.max_x0 = P.x0*15;
[r_s,T_s,edges_s,edge_type] = create_mesh(P);
% r_s:position of the nodes, edges_s: e... |
1ec799d5d6818dc0ebc082809ce4f92e474e8feb5f35cec47fbdefdca4326deb | MATLAB | 10,406 | 243 | % presents place fields over trajectories
%modified from amapOF. Oct 2016, ehud.
%
clear all; %close all;
globals; initglobals;
Tstart = tic;
scrsz = get(0,'ScreenSize');
PRINT_ERRORS = 0; PRINT_INFO=0; PRINT_NAN=0;
GDEVELOP=0; % development mode - plot interim plots etc (eg in getSpikes.m)
GDEBUG = 0;
DEBUG ... |
4ce9457f49a97cec70d57acf90d1bc64eadf9bc04723e87b589772a29e867de8 | MATLAB | 10,406 | 158 | % DATA ANALYSIS PIPELINE FOR FIBER PHOTOMETRY EXPERIMENT
% Name: Shock_PooledQuantification
% Cohort: GCAMP or dLight1.3b with shock
% Feb 2023 then March 2024 - Marie Labouesse, marie.labouesse@gmail.com
% 1- POOLED QUANTIFICATION
% loads FP data previously analyzed (with: Shock_DataExtraction then Shock_Pool... |
4f6ad8d901403b6a53917c508f733f14992113f6d9a0351d5f6b324a179a2139 | MATLAB | 10,408 | 275 | function [grad, elec] = bti2grad(hdr, balanceflag)
% BTI2GRAD converts a 4D header to a gradiometer structure that can be
% understood by FieldTrip and Robert Oostenveld's low-level forward and
% inverse routines. This function only works for headers that have been
% read using the READ_4D_HDR function.
%
% Use as:
% ... |
e832cbe2e25fc3224f0f4f7d1db14a13c154725b958d1b8dc1ee24407ed73139 | MATLAB | 10,416 | 250 | clear all
close all
addpath('/data/jag/gbaum/matlab_scripts/BCT/2017_01_15_BCT')
addpath('/data/jux/BBL/projects/pncBaumStructFunc/scripts/colorbrewer/cbrewer/cbrewer')
addpath('/data/jux/BBL/projects/pncBaumStructFunc/scripts/colorbrewer/MatPlotLib2.0_colormaps')
addpath('/data/jux/BBL/projects/pncBaumStructFunc/scri... |
66a93eb49d78091b6c43d87498488538cca8daa6c023543da5ae9e4a6009bd2c | MATLAB | 10,418 | 280 | clear
close all
rng(040522)
% Supplementary Figure 8H, slower focal adhesions
P.y0 = 180;%nm, corresponds with spectrin bundle length
P.x0 = sqrt(P.y0^2 - (P.y0/2)^2);%nm; height of the triangles
P.max_y0 = 17*P.y0/2;
P.max_x0 = P.x0*15;
[r_s,T_s,edges_s,edge_type] = create_mesh(P);
% r_s:position of the nodes, edg... |
879f3228b3757c8566c5557d4de64d1f6e0a4d1ca4b90b1fdda7984f7e20c626 | MATLAB | 10,423 | 280 | clear
close all
rng(040522)
% Supplementary Figure 8L, faster focal adhesions
P.y0 = 180;%nm, corresponds with spectrin bundle length
P.x0 = sqrt(P.y0^2 - (P.y0/2)^2);%nm; height of the triangles
P.max_y0 = 17*P.y0/2;
P.max_x0 = P.x0*15;
[r_s,T_s,edges_s,edge_type] = create_mesh(P);
% r_s:position of the nodes, edg... |
f0cc6cb3829b83167e095ee13ae53ac28484bee9951eecf301add89637e5f809 | MATLAB | 10,441 | 210 | %% Figure 2 Code
% Fig. 2: egocentric vector analysis
% Fig. 2d: spike-trajectory figure with head direction
% Fig. 2f: egocentric vertex-vector map
%% Session setting
idx_session = 3 ; % 1: Triangle, 2: Square, 3: Hexagon
%% Data load
if idx_session == 1
% Spike-trajectory map
Fig2_beh_x_... |
295c731e463163787df37b4baf241e6067f9dd286f32149cf16bcca7a2eb499c | MATLAB | 10,444 | 299 | function [nodes,conn,nv] = growCapillaries(nodes,conn,neur_ves,nv,vp,vres)
% [nodes,conn,nv] = growCapillaries(nodes,conn,neur_ves,nv,vp,vres)
%
% Function to sample capillary locations and setup nodes and connections of
% capillaries (including connections to penetrating vessels)
%
% - nodes - struct array con... |
87f525d59347365fb8852cce65619b3e737ca678534b9e369a99c75b91698ab5 | MATLAB | 10,457 | 278 | % This project is a general project to perform the analysis
% on a general experiment (nothing too specific).
% It will make placemaps, and perform correleations.
close all
clear all
clc
tstart = tic;
% Don't change these
projectCfgFilename = fullfile(pwd, 'project_config.json');
pipeCfgFilename = fullfile(pwd, 'pip... |
21991825aca4fd7b812e3caaf3a07db7d38502a2fa1e0958bdc269e4591a2608 | MATLAB | 10,459 | 256 | %% msRunCNMFE_large
% CNMFE source extraction, based on original work by Pengcheng Zhou. This
% version allows you to perform unsupervised analysis. It is recommended to
% first run a few manual analyses to establish your parameters, then use
% the CNMFE_large (patches analysis) with established parameters.
% Based on ... |
6f42e6f23020f4fb34dd86db3a64f16061c37ba176086f12bf4d68ec7536c25d | MATLAB | 10,459 | 366 | %fig4_eval_synthetic.m
% set write preferences at end
%%
clear all;
close all;
clc;
%% addpath if not added yet
% assumes script run within local directory
scriptdirs = {pwd;
'..\..\plot';
'..\..\helper_functions';
'..\..\analyze';
};
addpath(scriptdirs{:})
datadir = pwd;
nSS = 1000;
ssfile = 'subsample1000_stdFR_std... |
580411863c20d77b197bf1516b663c5ce98030863c01681c50aa225c98ac0c0a | MATLAB | 10,461 | 281 | clear
close all
rng(040522)
% Supplementary Figure 8I, fixed local adhesions
% setting up the initial configuration
P.y0 = 180;%nm, corresponds with spectrin bundle length
P.x0 = sqrt(P.y0^2 - (P.y0/2)^2);%nm; height of the triangles
P.max_y0 = 17*P.y0/2;
P.max_x0 = P.x0*15;
[r_s,T_s,edges_s,edge_type] = create_mes... |
16a9836b377355e614684029fa702ddf7841ed246e495e560f6dcf4cada43b5a | MATLAB | 10,463 | 290 | %% Set variables to false to skip workflow steps
DOWNLOAD = false;
CONVERT_AGILENT_TO_CSVS = false;
EXTRACT_SPECTRA_AND_INTEGRATE = false;
SHUFFLE_TEST = false;
%% Download the raw data from Zenodo
if (DOWNLOAD)
dataUrl = ['https://zenodo.org/record/8193580/files/'...
'metastasis_lineages_3replicates_3run... |
7b0d2e763cffb666f78836e78865d769e35d24a45a4d2a4dc161234504970fbb | MATLAB | 10,470 | 261 | function offsetValue = getOffset(coords, redo, offsetType,sectionSpecificOffset)
% Get offset value for a channel
%
% function offsetValue = stitchit.tools.getOffset(coords, redo, offsetType)
%
% PURPOSE
% Load or calculate the image offset value from the average tiles. Offset values are
% cached channelwise in file ca... |
4d052a4db2a393c74fe25fb8309433f8be917e6ca0278d098b3f913019231894 | MATLAB | 10,473 | 230 | function PlotUnitsOnProbe(clusinfo,UMparam,UniqueIDConversion,WaveformInfo,AddDriftBack)
if nargin<5
AddDriftBack = 1;
end
PlotAll = 1;
PlotMaxRecSes = [];
[~,id1,id2] = unique(UniqueIDConversion.UniqueID(UniqueIDConversion.GoodID==1));
% Draw findings on probe
neuroncols = jet(length(id1))+rand(length(id1),3)*... |
2f1c49a741de758b836730b46551dfaed5401dbf159b33e663df15e7f07d45ed | MATLAB | 10,484 | 212 | function varargout = calcium_dynamics(S, varargin)
% [CB,C,F] = calcium_dynamics(S, cal_params)
%
% Function to simulate the underlying calcium dynamics with either a
% single-occupancy or quad-occupancy model of protein <=> Ca2+
% interactions. The inputs to this model are:
% - S - A Kx(nt) array of the ... |
685d96a3acbd06ea1f5fbf5ef7a8c5bddf0045357628a910bcd624a9291d1360 | MATLAB | 10,501 | 263 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
% Figure S12B and Figure S12C. This was written to perform a simple
% per-cell per trial context prediction.
close all
clear all
clc
% Paths
run('../load_figure_config.m')
INPUT_FOLDER = CHENGS_TASK_2C_FIGURES_CONFIG.DATA_FOLDER;
... |
b59574f783c94e49309be628184239607d2b322d2ba17c033eedb5144e927830 | MATLAB | 10,509 | 234 | %%% demo of the full MIN1PIPE %%%
clear
warning off
gcp;
% To disable parallel processing, change "parfor" to "for", and change "min1pipe_h5_vary_nopar" to "min1pipe_h5_vary"
% if isempty(gcp('nocreate'))
% parpool;
% end
min1pipe_init;
addpath(genpath('../ANE'))
%% Set data and folder
list_data_names={'blood_ves... |
9ae422658cefa82d867aa810014c8fdb0c75813393f0f43d4ef7bfda45a43dfe | MATLAB | 10,535 | 272 |
% Matching with both cost and fertility (size) constraints.
%
% [m_forward m_backward] = match(cost_mx, cost_th, fa, fb, df_th)
%
% where:
%
% cost_mx - pairwise matching costs bewteen sets A and B
% (m x n matrix where m = |A| and n = |B|)
% cost_th - maximum cost match allowed (default... |
f230e76781cbb639df1af2856c949d9f5ec1ed4561c22735e89d68a15d617068 | MATLAB | 10,578 | 226 | function [] = downloadDataFromOSF(dataType, varargin)
% Function to download data presented in the paper:
% Title: Rethinking simultaneous suppression in visual cortex via
% compressive spatiotemporal population receptive fields.
% Authors: Kupers, Kim, Grill-Spector (2024).
% Journal: Nature Communications... |
5c159e082bc2b99905fb52310d9748a6b48b855a0bded39911b9183c0341ae67 | MATLAB | 10,583 | 265 | function tilefigs(handles,resize,nRows,nCols,leftRightSpacing,topBottomSpacing,...
border,monitor,monitorLocation,monitorSize)
% TILEFIGS Tile figures (spread them out). Tile figs has a number of
% arguments, which may either be specified, or entered as [] to use the
% default
% TILEFIGS(handles,resize,nRows,nCol... |
05359cd444bb562a7a997730b5e91b35c8dff6a46be8523d6c69d1a5da6fd17c | MATLAB | 10,587 | 299 | function [imageLines,startColumn,endColumn,index_vals1,windowsize,velocity,pixel_size,badvals,meanvel,stdvel,Switch_to_mm,numWorkers,fpscheck,full_analysis,index_length,numavgs, skipamt,rolling] = LSPIV_Parallel_Multi( LineScanTable, nImage, mImage, fpscheck, pixel_size, numWorkers, windowsize)
% LSPIV with parallel p... |
c998b36a0dcc3f07d43696123a2e14203577e70613b3a469673ad1f3534a49e4 | MATLAB | 10,593 | 235 | classdef MetaboLiteLearner
%plsrStandAloneLearner Uses partial least square regression to learn associations
% between the spectrum of a metabolite and a response variable
properties
% input properties
xFullData; % the spectra for each metabolite
yFullData; % the response variable
... |
1a2c2ae3f32d05c9c8ad8e3460d6bd672240bcce8949b976a3419a3596bf825e | MATLAB | 10,594 | 315 | %% Initialization
clear all
close all
clc
% 12/06/2019
% Daniel Sazhin
% Change log
% 12/13/2019: final tweaks before scanning (DVS)
% 12/06/2019: Round the dollar amounts. Fixed the UG Recipient amounts
% presented.
% 12/06/2019: blocks reverted because Python code has them.
% 12/06/2019: This version now has tria... |
ba7c189d20ff83a5432563aa578e0417e468f6733413f930083301576d53bf7b | MATLAB | 10,597 | 280 | % ephysOpto.m
%
% Experimental Function
% For acquisition of electrophysiology recording while providing
% optogenetic stimulation by controlling the shutter in front of the
% mercury lamp for the scope (light through objective)
% Uses background acquisition on DAQ
%
% INPUTS:
% settings - struct of ephys setup s... |
d44d58ad96df6028b0888ef784ad9d53bd8b66300512f2e63324b219466e7f09 | MATLAB | 10,604 | 356 | function recurrence_all_sessions(Sessions,Areas,threshold,Ndir,i_bin,threshold_dist,do_plot_supp)
%% recurrence_all_sessions plots the recurrence plots and the histograms of recurrence for the selected recordings and bin number
%
% INPUTS
%
% Sessions: cell array containing the names of the sessions to be analysed.
% e... |
3e2c796eff916161e20b4c161efa075939dcf6c361ff74e22131facd070538a5 | MATLAB | 10,606 | 415 | function correlation_mapping(DATA,ROI,AddInfo)
%
% An Aedes plugin that calculates resting state funtional connectivity from
% seed ROIs.
% Only accept 3D or 4D data
if AddInfo.isDataMixed || ndims(DATA{1}.FTDATA)==2
errordlg('Only 3D or 4D can be used with this plugin.','Error',...
'modal');
return
end
% If... |
6a37b0066c430ef10fbcec1136ab56ed81963d6501c4042361b08bc3cdfa487f | MATLAB | 10,609 | 148 | clear
add_ndt_paths_and_init_rand_generator
ds = basic_DS('uncertain3-gonogo','stimulus_ID', 3);ds1 = basic_DS('uncertain1-gonogo','stimulus_ID', 3);ds2 = basic_DS('uncertain2-gonogo','stimulus_ID', 3);
ds.randomly_shuffle_labels_before_running=0;
cl =libsvm_CL;
fps{1} = zscore_normalize_FP;
cv = standard_resampl... |
1f3261c22b23549ac20344737f14d48f8cf8ad44d84fd94b5a0a1401b8d80653 | MATLAB | 10,617 | 320 | % plotCondBoutsAEPPEP_allFlies.m
%
% Function that takes output files from saveLegStepParamCond_bouts() and
% generates 2 plots (AEP and PEP) for each time step
% Plots as either mean +/- SEM or mean +/- std dev
% Can select more than 1 output file, will plot on same graph
% Has option to plot reference steps (from s... |
81dae5b5abefdca419e07a330487698d6f3e13f4d7490dbc67b3e9bd8beb5367 | MATLAB | 10,617 | 337 | ########################################################################
##
## Copyright (C) 2023-2024 The Octave Project Developers
##
## See the file COPYRIGHT.md in the top-level directory of this
## distribution or <https://octave.org/copyright/>.
##
## This file is part of Octave.
##
## Octave is free software: yo... |
7c369090efd6131b953a9a260490021ff5f758ece006f4c4f124fb91abcf1147 | MATLAB | 10,618 | 262 | %% Script to plot the significant loadings and weights of PCA-CCA modeling
% Copyright (C) 2023 University of Seville
% Written by Natalia García San Martín (ngarcia1@us.es)
% This file is part of Neurobiology Centiles Psychosis toolkit.
%
% Neurobiology Centiles Mapping toolkit is free software:
% you can... |
79351c15f5c3498fa38a923117804cdb5ed2b7c561ef5378ae108fc49c2b394a | MATLAB | 10,620 | 245 | %%% code to make a scatter/violin graph with error bars, individual markers and for
%%% groups + significance testing based on test of normality/variance etc -
%%% note the use of third party code from MATLAB FILE EXCHANGE:
%%% UniVarScatter function by Manuel Lera Ramirez
%%% https://www.mathworks.com/matlabcentr... |
5646238b37f66fa564efa78935cf857288e82090251178d3434716a65148991f | MATLAB | 10,626 | 307 | %% STEP 1: set up parameters
subsampling = true;
relevant_track_fields = {'Amps','Spectra'};
%% STEP 2: get the experiment folders
folders = getfoldersGUI();
%% STEP 2: Load the analysis preferences %%
parameters = load_parameters();
edgeEffectTime = round(sqrt(1/parameters.minF)*parameters.SampleRate);
%% STEP 3: l... |
6f706acfaacdf944600cc4f3f97cdf75947d1e44d12221f0c51a870f0101ae4a | MATLAB | 10,629 | 298 | %% Fig. 3 - Pulvinar Axonal Imaging (h-k)
% Run config.m
% Define constants and parameters
win.idx = -39:80; % Time window index (imaged at 15 Hz)
win.vis = 46:70; % Visual response window (0.4 to 2s, 25 frames)
win.baseline_vis = 32:40; % Baseline visual window (-0.5s to 0s, 9 frames)
short_trial = [0 1 1 1 0 1 1 1... |
a518494b93bf2db0b0e057ddf8a38adfa29d7a28bda20d24617583be73f38381 | MATLAB | 10,641 | 153 | clear
add_ndt_paths_and_init_rand_generator
ds = basic_DS('uncertain1-gonogo','stimulus_ID', 3);ds2 = basic_DS('uncertain2-gonogo','stimulus_ID', 3);ds3 = basic_DS('uncertain3-gonogo','stimulus_ID', 3);
ds.randomly_shuffle_labels_before_running=0;
cl =libsvm_CL;
fps{1} = zscore_normalize_FP;
cv = standard_resampl... |
fbf66081a089b09ad8172e78ebc1810149bcf0f2fc7e088a25b5575b4fdc52f5 | MATLAB | 10,663 | 156 | clear
add_ndt_paths_and_init_rand_generator
ds = basic_DS('uncertain2-gonogo','stimulus_ID', 3);
ds1 = basic_DS('uncertain1-gonogo','stimulus_ID', 3);
ds3 = basic_DS('uncertain3-gonogo','stimulus_ID', 3);
ds.randomly_shuffle_labels_before_running=0;
cl =libsvm_CL;
fps{1} = zscore_normalize_FP;
cv = standard_res... |
9ac1adaa54bade73b1dd1390d3bbc61df14ce7f73f85d692eed5c0d90d938f9f | MATLAB | 10,677 | 299 | function [filt] = ft_preproc_highpassfilter(dat,Fs,Fhp,N,type,dir,instabilityfix,df,wintype,dev,plotfiltresp,usefftfilt)
% FT_PREPROC_HIGHPASSFILTER applies a high-pass filter to the data and thereby removes
% the low frequency components in the data
%
% Use as
% [filt] = ft_preproc_highpassfilter(dat, Fsample, Fhp,... |
e126a3282c2a2c2397171b322188336cb4b627f78135b71c7689b3f948608d57 | MATLAB | 10,688 | 286 | function[SOMe,PVe,MIXe]= plot_allct_event(pyr_mean_activity,som_mean_activity,pv_mean_activity,save_yn)
frames=size(pyr_mean_activity,3);
num_ds=size(pyr_mean_activity,1);
med= median(1:frames);
scaled_start=med-15;
scaled_end= med+45;
%% ALL ACTIVITY DURING SOM EVENTS
figure(102)
clf
set(gcf,'color','w')
% SOM... |
b4cd158c60b6f739cef5e794ef5ec3793252a6e584f31acf66e9d85357fd5d4e | MATLAB | 10,719 | 304 | function [filt] = ft_preproc_lowpassfilter(dat,Fs,Flp,N,type,dir,instabilityfix,df,wintype,dev,plotfiltresp,usefftfilt)
% FT_PREPROC_LOWPASSFILTER applies a low-pass filter to the data and thereby
% removes all high frequency components in the data
%
% Use as
% [filt] = ft_preproc_lowpassfilter(dat, Fsample, Flp, N,... |
d23206632b44c8507b3c7e01d51188049c8eeb23f96bffdb636ed6ea5ca5f409 | MATLAB | 10,736 | 350 | function [savename,success] = fixerrors_f(varargin)
success = false;
[moviename,matname,annname,convertname,savename,suspiciousseqsname] = ...
myparse(varargin,'moviename','','matname','','annname','',...
'convertname','','savename','','suspiciousseqsname','');
%% set all defaults
setuppath;
%% read last setti... |
fa78fcee1d6b98397895532e31ce07bb38307676b90fe926306572658a415278 | MATLAB | 10,740 | 207 | function [b0, dt] = dki_fit(dwi, grad, mask, constraints, outliers, maxbval)
% Diffusion Kurtosis Imaging tensor estimation using
% (constrained) weighted linear least squares estimation
% -----------------------------------------------------------------------------------
% please cite: Veraart, ... |
f71c4bc13b2453719545df3503bcc05d18b2d60d265051346d5060ecdf91d361 | MATLAB | 10,741 | 223 | clear
RUNSIMPLE = 1;
zeroIdx = 21; %101;
binEdges = -20.5:1:20.5; %-100.5:1:100.5;
load ('Alon_maxCorrValAndIdx_normalized_multi_minAndMax.mat');
currXlim = 10.5;
figure(1);
%figure('units','normalized','outerposition',[0 0 1 1]);
set(gcf,'units','normalized','outerposition',[0 0 1 1]);
if ~RUNSIMPLE
... |
feada319f9a2d47f9d91030c147aa7b228799026f3b9e6c046aaface1d85c825 | MATLAB | 10,751 | 295 | classdef IntracellularElectrode < types.core.NWBContainer & types.untyped.GroupClass
% INTRACELLULARELECTRODE An intracellular electrode and its metadata.
% REQUIRED PROPERTIES
properties
description; % REQUIRED (char) Description of electrode (e.g., whole-cell, sharp, etc.).
end
% OPTIONAL PROPERTIES
properties... |
55394bd165013a84c12e5b9ac01d757b3808cf95803723ad592d26457de3de26 | MATLAB | 10,755 | 318 | % interactEphysGetSpikes.m
%
% Function that detects spikes, computes spike rate, and computes
% median-filtered voltage trace on each preprocessed ephys trace. Uses GUI
% for user to select parameters for spike calling. Runs on selected pData
% files. Must have run preprocess() before running this.
%
% Replaces ep... |
a8302083c68411e5ae52082ed26dabc2d6f06aca12eaef9cf663c8911e455105 | MATLAB | 10,756 | 274 | function dataFileAsStruct = loadDataFile(filename,formatString)
% Loads Wavesurfer data file. The returned data is a structure array
% with one element per sweep in the data file.
% Deal with optional args
if ~exist('formatString','var') || isempty(formatString) ,
formatString = 'double';
... |
8edfe851215991e7b6c6189f16822990e47ab0a747d8e97aa8baa1184e586c51 | MATLAB | 10,759 | 213 | function make_std_env(handles)
%% Internal variables
fs=filesep;
env_folder=[handles.env.path_gagui fs ...,
handles.env.name{1} fs,...
handles.func_data_name fs,...
handles.env.group];
if ~isfolder(env_folder)
mkdir(env_folder);
end
change_permissions(handles,env_folder)
n_parcel=length(handles.mc.surv... |
493a0b57919d41b2a639433ac5fdd51102db6879fd71346f6ce2de38b9b5aa14 | MATLAB | 10,763 | 292 | function [] = gen_24item_lists()
% generates trial lists with 24 trials per run
% create lists for each target dimension (north/south and west/east)
targDims = {'NS', 'WE'};
for dimIdx = 1:2
thisTargDim = targDims{dimIdx}; % NS or WE
% get three 16-trial blocks (fully balanced and randomized), which will
... |
fcd1911385618ba25364fe291b433bc75cda0e222f49faaebacf646cf876df05 | MATLAB | 10,775 | 273 | %% Wrapper script to run the Oxygen Dynamics analysis in all datafolders needed
% The input is a CSV file with the relative paths of the data
% folders. For example for current folder 'C:\User\Alldata\' that contains folders 'Mouse1' and 'Mouse2' etc
% the paths should be 'Mouse1\Recording1' 'Mouse1\Recording2' 'M... |
5f05f9fcdd40b09704072fea233c6d8978ee948b73269789c6bf258b533fde72 | MATLAB | 10,776 | 328 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
% This makes Figure S3. Roseplots for Calcium and Tetrodes.
% It needs to be run twice to make the two figures. Set DO_CALCIUM to false
% for Figure S3B and DO_CALCIUM to true for Figure S3C.
%
% Note that the figures were post-proce... |
67c37a80ebe30c19db20b76a2e57189508b3f2adba55cd32b3b2166e84456d54 | MATLAB | 10,788 | 261 | function [status, p] = ml_cai_daq_camerasdat_create( dataFolder, varargin )
p = inputParser;
p.CaseSensitive = false;
addRequired(p,'dataFolder', @isstr);
addParameter(p,'timestampFilename', 'timestamp.dat', @isstr);
addParameter(p,'notesFilename', 'settings_and_notes.dat', @isstr);
addPara... |
882fbf51e618115ea77b300fe47beb4d35d2bbb93846433382954b285f464d1c | MATLAB | 10,807 | 198 | % modified from scanTagging.m.
% estimates the fraction of spikes added to each neuron by the tagging stim
%
%% scan and show the statistics of tagged units
% the tagging thresholds are determined in "getSpikesEM.m" or getSpikesOF. the code is:
% for elec = 1:Lelecs
% for unit = 1:Lunits
% ... |
2443f2609647c6ad9337021659149552b66bff3beaff6caa705276d6c296918e | MATLAB | 10,819 | 334 | %% CP_Scan_McGrathPerrin2022.m
% This code is meant to perform line scans on the cuticular plates of
% auditory hair cells selected by the user.
%
% (1) The ROIs are selected by clicking the center of hair cells, region
% is duplicated, permuted, and interpolated to mimick an ImageJ reslice.
% HINT: Note the wI... |
9a5802481df42ec080645abc72a97932a522508fe7067f9e0c590b40ec9b3b40 | MATLAB | 10,826 | 284 | % getContParamAutocorr_cell.m
%
% Function that computes the autocorrelation of a continuous leg step
% parameter or FicTrac parameterfor a single cell, only during walking
% and only under additional conditions on behavioral parameters,
% specified by cond.
% Across trials within the same fly, weight by number o... |
47fee464a2264289aab1ea06363269159104f421065b51178e7fa5de8d9f2855 | MATLAB | 10,830 | 285 | %% Calculate nearest neighbor pairs for one condition
% For in vivo spine data analyzed using MapManager V_20171028
% Author: Richard Roth (rhroth@stanford.edu)
% Date: Sept 2023
% Requires the following functions:
% getmyMapListValuesCondDist_Neighbour.m
% segmentCall_withDist.m
% removeNanRo... |
916ead701f37e250279b8fd53fbd33d17fd922512284fd924e95e014b3ecf78d | MATLAB | 10,831 | 402 | function [bwout, lut, conv_iter] = algbwmorph_iter_output(bw,opStr,n)
% Main algorithm used by the bwmorph function. See bwmorph for more
% details. modified to output iteration number
%
% No input validation is done in this function.
% bw - A nonempty logical 2D matrix
% fcnStr - One of the ~20 documented strin... |
0ef9dc57372d34a80a2c60c76febb48a100c1097c8d78895ffdce41712d3e802 | MATLAB | 10,836 | 293 | %% Clean
clearvars
close all
maindir=pwd;
maindir=string(maindir);
%% Load connectivity data
% Define situation (CHANGE IF NEEDED)
suffix="AAL116"; % Options: AAL116, schaefer100cersubcort
aggregate = false; % Options: true (for connectivity metrics), false (for NBS)
% Define variables
folder = "matrix_data/"+suffix;... |
6b087f5a1b5eeb22479ab6f0485065bc645f05d10f55661717a4ccedaee3cd00 | MATLAB | 10,845 | 258 | % getLegPhaseFromSteps.m
%
% Function that takes in leg steps and converts them into leg phase.
%
% For each step (max-min-max), first max is 0 deg, min is 180 deg, second
% max is 360 deg. X positions in the first half step (between the first
% max and the min) map linearly to 0-180 deg. X positions in the second
% ... |
a6e564d7faa36eef12b707bd59adc0b3d7a253e7f650d600bdd897379839644f | MATLAB | 10,872 | 291 | function dat = read_biosemi_bdf(filename, hdr, begsample, endsample, chanindx);
% READ_BIOSEMI_BDF reads specified samples from a BDF continous datafile
% It neglects all trial boundaries as if the data was acquired in
% non-continous mode.
%
% Use as
% [hdr] = read_biosemi_bdf(filename);
% where
% filename ... |
691fba7f61d7479624a6f0858c1d638d3906d8722fa6ebf33c4a9e81630d9b56 | MATLAB | 10,874 | 292 | function MS_SMM_BMS_fams(BMS, mask, extent)
% _
% Determine Selected-Model Maps after Bayesian Model Selection
% FORMAT MS_SMM_BMS(BMS, mask, extent)
% BMS - a structure specifying an estimated BMS
% mask - a filepath to a binary masking image
% extent - an integer, the voxel extent threshold
%
% FORM... |
d25e6caf3091013a7553dbd71e7a4bd4c475fcce4193f455076d7537785d8e14 | MATLAB | 10,887 | 311 | function [pos_true, neg_true, pos_dist, neg_dist, mask, handles, pvals_true] =...
perm_ttest(condA, condB, nperms, mode, clusteralpha, alpha, doplot, ...
xaxis, plotcolors, tail)
% function [pos_true, neg_true, pos_dist, neg_dist, mask, handles, pvals_true] =...
% ... |
9fe178505a5414c754ccb45c2db179e72f7e1fecbda6d8519976a783739a2e14 | MATLAB | 10,913 | 277 | function spike = ft_datatype_spike(spike, varargin)
% FT_DATATYPE_SPIKE describes the FieldTrip MATLAB structure for spike data
%
% Spike data is obtained using FT_READ_SPIKE to read files from a Plexon,
% Neuralynx or other animal electrophysiology data acquisition system. It
% is characterised as a sparse point-proc... |
177bd043be2b02c2e81f76d3c1f9ce0aa2f31271c17dfe4e7e9771d63649b5b3 | MATLAB | 10,926 | 219 |
%good first/last is here, but you would really know them after plotting the output (edge effects...)
function [sBehaviorAnalysis]= BAAndSpikes(mouse, date, movie, touches,noWhisk,excludeFrames,good_electrodes,firstTracked,lastTracked,goodFirst,goodLast)
structPath = uigetdir('D:\EPhysData\','CSC path');
trackPat... |
5b4e87473ae9d64645dc2101ceba9f1b076314d100a77e1a42b7cb0e620fa491 | MATLAB | 10,927 | 340 | %% Fig5 RSN and Neurosynth SC Analysis:
% Necessary for Ternary Plots:
addpath ternary_plots/data_plots/
addpath ternary_plots/axes_creation/
addpath ternary_plots/utilities/
%% RSN Analysis:
scale = 200;
filename = sprintf('MICA_schaefer%d_SCFC_struct.mat',scale);
load(filename);
NetworkLabels = readmat... |
0e9a5c8e9592c1ac273f398150ee9eb41a0eb7d33046609e6c17a181b7e449d7 | MATLAB | 10,936 | 347 | function fat_analysis(DATA,ROI,AddInfo)
% FAT_ANALYSIS - Calculate fat percentage (Aedes plugin)
%
%
% Synopsis:
%
% Description:
%
% Examples:
%
% See also:
%
% This function is a part of Aedes - A graphical tool for analyzing
% medical images
%
% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.f... |
e352175093694771dd70bfc62bb120fc35de665170c9d6f71265309ac6fd5bdb | MATLAB | 10,936 | 251 | classdef MLCalciumPlacemap < handle
%UNTITLED2 Summary of this class goes here
% Detailed explanation goes here
properties
spikeCountMap = [];
visitedCountMap = [];
dwellTimeMap = [];
meanFiringRateMap = [];
positionProbMap = [];
meanFiringRate = [];
... |
b409bf8d5c708ee01c0bd2b20df4ed27f828ba1ae616701aaace435fa5709b50 | MATLAB | 10,992 | 282 | function [perCell, total] = mlgp_compute_bfo_general(obj, session, rotDeg, mirrorContexts)
% mirrorContexts should be the same length as the number of contexts
% an entry of 0 means do not mirror, and 1 means to mirror
% this is used because often context 2 has the reward cup mirrored
% Allow the f... |
1dff5df5e8b50c68feb05659683e8266408272bfa5e4c92f169c36f096cead0d | MATLAB | 11,009 | 176 | %% Neurofeedback: mua rate inside and outside of rips at various trial phases
animals = {'jaq','roquefort','despereaux','montague','remy','gus','bernard','fievel',};
epochfilter{1} = ['isequal($cond_phase,''plateau'') & isequal($environment,''goal'') ']; %cond rats
epochfilter{2} = ['$ripthresh==0 & (isequal($envir... |
01a99e7f3dd012a3033ff80fb278858bb7c31f3f177f7d817df6ae1f6ec44d39 | MATLAB | 11,018 | 211 |
%good first/last is here, but you would really know them after plotting the output (edge effects...)
function [sBA]= BehaviorAnalysis(mouse, date, movie, touches,noWhisk,excludeFrames,good_electrodes,firstTracked,lastTracked,goodFirst,goodLast)
ephysStructPath = uigetdir('C:\Users\alont\Documents\Tess','EphysStru... |
1bd7507fcdc2724bbaf2640c0754ce9587e29f93f1fd8ebbfd1fe5bb84367154 | MATLAB | 11,024 | 308 | function [filt] = ft_preproc_bandpassfilter(dat,Fs,Fbp,N,type,dir,instabilityfix,df,wintype,dev,plotfiltresp,usefftfilt)
% FT_PREPROC_BANDPASSFILTER applies a band-pass filter to the data and thereby
% removes the spectral components in the data except for the ones in the
% specified frequency band.
%
% Use as
% [fi... |
307e673fdc5e8f8e987e2d423543224cfc5e80638aae1eb9a3196b69b51a1624 | MATLAB | 11,034 | 205 | function [B0, DT] = dki_fit_slice(dwi, grad, mask, constraints, outliers, maxbval)
% Diffusion Kurtosis Imaging tensor estimation using
% (constrained) weighted linear least squares estimation
% -----------------------------------------------------------------------------------
% please cite: Ver... |
8f84b8ab151b8ff6101ddadc924c2780ac8556abb10418f860110f02bfff4d2b | MATLAB | 11,038 | 295 | function [dat] = read_yokogawa_data(filename, hdr, begsample, endsample, chanindx)
% READ_YOKAGAWA_DATA reads continuous, epoched or averaged MEG data
% that has been generated by the Yokogawa MEG system and software
% and allows that data to be used in combination with FieldTrip.
%
% Use as
% [dat] = read_yokogawa_... |
a9c4325cf1ebec34fddf0f4b840095ff67bd71ebf91e4abd873e44ddc618f33d | MATLAB | 11,039 | 343 | function makeHeader()
% Generates the header files edf2mex.h which contains necessary mex structures and functions
% to read data from C structures defined in edf_data.h and load them into similarly organized
% mxArray structures.
%
% To use this, make sure that the edf header files edf.h, edftypes.h, edf_data.h are in... |
f879c90d41be105dc67485233cb844805e8bd25f143abeb1ef8ac65bb3a53a66 | MATLAB | 11,052 | 266 |
%% scan and show the statistics of tagged units
% the tagging thresholds are determined in "getSpikesEM.m" or getSpikesOF.
%%
clear all; close all;
globals; initglobals;
FramesInf.act = 0;
FramesInf.noact = 0;
FramesInf.xy00 = 0;
FramesInf.removed = 0;
FramesInf.totalFrames = 0;
base_folder = 'Data\Ope... |
6d00fccbadb8995bfd78ff826a7186b930764dd71d8091f21193d10ff8858ef3 | MATLAB | 11,077 | 308 | function [filt] = ft_preproc_bandstopfilter(dat,Fs,Fbp,N,type,dir,instabilityfix,df,wintype,dev,plotfiltresp,usefftfilt)
% FT_PREPROC_BANDSTOPFILTER applies a band-stop filter to the data and thereby
% removes the spectral components in the specified frequency band
%
% Use as
% [filt] = ft_preproc_bandstopfilter(dat... |
c61d9a5e06626d28fa3a737d3ea640a34fc7ae4397bc0af170ae17d732e9c5a9 | MATLAB | 11,119 | 307 | function [r,t,p,hboot,CI,H,pH] = bendcorr(X,Y,fig_flag,beta)
% Computes the percentage bend correlation along with the bootstrap CI
%
% FORMAT: [r,t,p] = bendcorr(X,Y)
% [r,t,p,hboot,CI,H,pH] = bendcorr(X,Y,fig_flag,beta)
%
% INPUTS: X and Y are 2 vectors or matrices. In the latter case,
% correlat... |
7dedad71442ad4de00d0543660615e219659afec9cd25b60430f839ef38525f6 | MATLAB | 11,127 | 281 | function vars = PLOT_linearity(vars)
%% load data
loadAnalysisInfo_APP;
c = linspace(1,10,length(mag1.pos_data_aligned_scaledInVel));
%% Linearity Calculation
% Sac Start and End Times
sacEndPoints = diff(~mag1.saccades_all);
goodStarts = find(sacEndPoints == 1);
% goodStarts = goodStarts + 1;
goodStops = find(sacEn... |
a4fbe558cb02e8c2d26359db834a898a3416e897da21f2db0756f443c19df70b | MATLAB | 11,130 | 316 | function data = ft_datatype_raw(data, varargin)
% FT_DATATYPE_RAW describes the FieldTrip MATLAB structure for raw data
%
% The raw datatype represents sensor-level time-domain data typically
% obtained after calling FT_DEFINETRIAL and FT_PREPROCESSING. It contains
% one or multiple segments of data, each represented ... |
ac1859feb4060e394a967b148939acad1b70c11d7deadda29e246da705c524e4 | MATLAB | 11,147 | 302 | function dirs = get300dirs()
dirs = [ 0 0 1.0000;
-0.9999 -0.0000 -0.0158;
-0.6801 0.6656 0.3072;
-0.5289 0.0291 0.8482;
-0.0669 -0.6461 0.7603;
0.9869 0.1130 0.1151;
-0.8963 0.3359 0.2897;
-0.9902 0.1061 0.... |
eb51e0a3798799021696cec9b1c730410ad551b8f733c403bc75be15670d3ae9 | MATLAB | 11,152 | 323 | function gen_UGR_trials(s)
% 12/06/2019
% Daniel Sazhin
% Change log
% 12/13/2019: final tweaks before scanning (DVS)
% 12/06/2019: Round the dollar amounts. Fixed the UG Recipient amounts
% presented.
% 12/06/2019: blocks reverted because Python code has them.
% 12/06/2019: This version now has trial_types instead ... |
64ab16964f7ac2cd369cb3d83996c7bb6a71626c5061f4b681f4c014c525ad54 | MATLAB | 11,154 | 392 | % for paper "Inferring stochastic dynamics of complex systems", T.-T. Gao,
% B. Barzel, and G. Yan
clc; clear;
%load data
data = csvread('PathDataNewValues.csv');
injection = csvread('injection_position.csv');
% NTG
Type1 = zeros(4,size(data,2));
Type1(1,:) = mean(data(1:4,1:end));
std1 = std(data(1:4,1:end));
Type1(2... |
0f6ad6e11b6a89388888a97a943e77cae7f5312da0f8d9b0d4aca2b360cf832b | MATLAB | 11,166 | 269 | function dt_out = wrapper_STF_decomposition_backandforth(dt_in,direction,mask,inputOrder,CSphase)
% dt_out = wrapper_STF_decomposition_backandforth(dt_in,direction,mask,inputOrder,CSphase)
%
%
% S_ij is ordered: [S_11;S_22;S_33;S_12;S_13;S_23]
% S_ijkl is ordered: [S_1111;S_2222;S_3333;S_1122;S_1133;S_1112;S_1113;S_1... |
fe9a8a9637998a75c77a2470a6f737022ebcd2f7be2351a6e39697efbd19ad12 | MATLAB | 11,173 | 280 | %% Wrapper script to run the iOS Dynamics analysis in all datafolders with iOS data.
% This is a modified version of the Oxygen Dynamics analysis
% The input is a CSV file with the relative paths of the data
% folders. For example for current folder 'C:\User\Alldata\' that contains folders 'Mouse1' and 'Mouse2' ... |
9218b281146a0c1c82ca5688b1c6a09b9c02e0299d6d65ea509bfb60eb779ac4 | MATLAB | 11,181 | 356 | function makeHeader
%Generates the header files edf2mex.h which contains necessary mex structures and functions
%to read data from C structures defined in edf_data.h and load them into similarly organized
% mxArray structures.
%
% To use this, make sure that the edf header files edf.h, edftypes.h, edf_data.h are in th... |
1022293081a38ca0d2e07ceefd21bd4903f99dc761200210ad56bd4e732777ff | MATLAB | 11,187 | 302 | % savePCAinterpStepParam.m
%
% Function that takes in two sets of step parameters, performs PCA on each,
% and compares the two against each other.
% Unlike pcaCompStepParams(), this function does not operate on turn bouts.
% Instead, it works on step parameters interpolated to the specified frame
% rate.
% Select p... |
58f600814d90d26b49bdbda37e3ac6a3f125f7f83f319825f7ac71c2be6028d5 | MATLAB | 11,188 | 252 | % presents place fields over trajectories
%modified from amapOF. Oct 2016, ehud.
%
clear all; %close all;
globals; initglobals;
Tstart = tic;
scrsz = get(0,'ScreenSize');
baseFig=100; Nrows = 4; Ncols = 4;
SHOW_UNITS = 'all'; % 'all', 'tagged', 'examples', 'nice'
%SHOW_UNITS = 'o'; % 'o','act'
PRINT_ERRORS = ... |
cab0b27077eb5854a1ac38563a29474d7c62d6149e7bfa79da51a0995adadabe | MATLAB | 11,196 | 295 | function [data,HDR] = iread(HDR,CHAN,StartPos)
% IREAD reads image data
%
% [S,HDR] = iread(HDR)
%
% See also: fread, SREAD, SWRITE, SCLOSE, SSEEK, SREWIND, STELL, SEOF
% 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 F... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.