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
ivan-usov/FiberApp-master
HeightDistribution.m
.m
FiberApp-master/+panel/HeightDistribution.m
8,586
utf_8
e2f5d8ef4305132a365842388c2abde2
%HEIGHTDISTRIBUTION Create a height distribution panel % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function p = HeightDistribution ph = 145; % panel height pTitle = 'Height Di...
github
ivan-usov/FiberApp-master
LengthDistribution.m
.m
FiberApp-master/+panel/LengthDistribution.m
5,834
utf_8
f717f411281d81a797aae3d33489f44f
%LENGTHDISTRIBUTION Create a length distribution panel % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function p = LengthDistribution ph = 122; % panel height pTitle = 'Length Di...
github
ivan-usov/FiberApp-master
BondCorrelationFunction.m
.m
FiberApp-master/+panel/BondCorrelationFunction.m
7,118
utf_8
7e361213841c7275f96682fa24c220d6
%BONDCORRELATIONFUNCTION Create a bond correlation function panel % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function p = BondCorrelationFunction ph = 122; % panel height pTi...
github
ivan-usov/FiberApp-master
HeightACF.m
.m
FiberApp-master/+panel/HeightACF.m
8,345
utf_8
faa3360344e928097a15493599fb2b91
%HEIGHTACF Create a height autocorrelation function panel % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function p = HeightACF ph = 145; % panel height pTitle = 'Height ACF'; pT...
github
ivan-usov/FiberApp-master
ImageParameters.m
.m
FiberApp-master/+panel/ImageParameters.m
5,587
utf_8
70014dbdf131dca4d6465cc591f804e4
%IMAGEPARAMETERS Create an image parameters panel % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function p = ImageParameters ph = 144; % panel height pTitle = 'Image Parameters'...
github
ivan-usov/FiberApp-master
FiberImageGenerator.m
.m
FiberApp-master/+panel/FiberImageGenerator.m
14,640
utf_8
a45b9c000e06423c2996b17194dd217b
%FIBERIMAGEGENERATOR Create a fiber image generator panel % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function p = FiberImageGenerator ph = 333; % panel height pTitle = 'Fiber...
github
ivan-usov/FiberApp-master
ViewProperties.m
.m
FiberApp-master/+panel/ViewProperties.m
6,214
utf_8
b0e93ecbcc3c5b839d6f24767426a8d0
%VIEWPROPERTIES Create a view properties panel % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function p = ViewProperties ph = 144; % panel height pTitle = 'View Properties'; pTa...
github
ivan-usov/FiberApp-master
MSEnd2EndDistance.m
.m
FiberApp-master/+panel/MSEnd2EndDistance.m
8,177
utf_8
d6358e2bbcb8d145f596a063c5b1167d
%MSEND2ENDDISTANCE Create a mean-squared end-to-end distance panel % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function p = MSEnd2EndDistance ph = 145; % panel height pTitle =...
github
ivan-usov/FiberApp-master
Colormap.m
.m
FiberApp-master/+FiberAppGUI/Colormap.m
480
utf_8
8acb440fbbf40a1cb36a17a43992d573
%COLORMAP "Colormap" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function Colormap(hObject, eventdata) FA = guidata(hObject); FA.colorMap = utility.getColo...
github
ivan-usov/FiberApp-master
RemoveFiber.m
.m
FiberApp-master/+FiberAppGUI/RemoveFiber.m
813
utf_8
15700f81e103a5408f69ca885f993d58
%REMOVEFIBER "Remove Fiber" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function RemoveFiber(hObject, eventdata) FA = guidata(hObject); % Check if there is...
github
ivan-usov/FiberApp-master
OpenImage.m
.m
FiberApp-master/+FiberAppGUI/OpenImage.m
2,690
utf_8
95caeb9d30b24cdfee4f4665564100ab
%OPENIMAGE "Open Image" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function OpenImage(hObject, eventdata) FA = guidata(hObject); % Open dialog for image se...
github
ivan-usov/FiberApp-master
ShowHidePanel.m
.m
FiberApp-master/+FiberAppGUI/ShowHidePanel.m
824
utf_8
15b9523207312e3b51ad272fa9622875
%SHOWHIDEPANEL A callback to show and close panels via their menu and toolbar items % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function ShowHidePanel(hObject, eventdata) tag ...
github
ivan-usov/FiberApp-master
Tutorial.m
.m
FiberApp-master/+FiberAppGUI/Tutorial.m
489
utf_8
cad55609f5bf302cb6389bf8d61be56d
%TUTORIAL "Tutorial" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function Tutorial(hObject, eventdata) FA = guidata(hObject); if FA.isTutorial == true ...
github
ivan-usov/FiberApp-master
FitAllFibers.m
.m
FiberApp-master/+FiberAppGUI/FitAllFibers.m
727
utf_8
7919832c52707b52409be179aab195fb
%FITALLFIBERS "Fit All Fibers" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function FitAllFibers(hObject, eventdata) prev = 0; hwb = waitbar(prev, 'Please w...
github
ivan-usov/FiberApp-master
Zoom.m
.m
FiberApp-master/+FiberAppGUI/Zoom.m
444
utf_8
e0bf6a01f2087aceabb547e9e8f41fd7
%ZOOM Zoom-related menu items callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function Zoom(hObject, eventdata, dir) FA = guidata(hObject); switch dir case 'in' ...
github
ivan-usov/FiberApp-master
FitFiber.m
.m
FiberApp-master/+FiberAppGUI/FitFiber.m
4,289
utf_8
325871adb9208d66722a16baabe81942
%FITFIBER "Fit Fiber" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function FitFiber(hObject, eventdata) FA = guidata(hObject); % Check if there is selected...
github
ivan-usov/FiberApp-master
Exit.m
.m
FiberApp-master/+FiberAppGUI/Exit.m
268
utf_8
af09a91ae924da8067769924ac92785f
%EXIT "Exit" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function Exit(hObject, eventdata) close(gcf);
github
ivan-usov/FiberApp-master
SaveData.m
.m
FiberApp-master/+FiberAppGUI/SaveData.m
649
utf_8
53ea603b958967b0bb786da5564acab2
%SAVEDATA "Save Data" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function isSaved = SaveData(hObject, eventdata) FA = guidata(hObject); if isempty(FA.data...
github
ivan-usov/FiberApp-master
ZInterpolation.m
.m
FiberApp-master/+FiberAppGUI/ZInterpolation.m
448
utf_8
db2bfa1826bd301e376fe2ace884a93d
%ZINTERPOLATION "Z Interpolation" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function ZInterpolation(hObject, eventdata) FA = guidata(hObject); FA.zInterp...
github
ivan-usov/FiberApp-master
MergeData.m
.m
FiberApp-master/+FiberAppGUI/MergeData.m
2,192
utf_8
661a75ac5235d1b2829c765b145f897e
%MERGEDATA "Merge Data" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function MergeData(hObject, eventdata) % Get addresses of the files to merge [fileName, ...
github
ivan-usov/FiberApp-master
SetZeroLevelImage.m
.m
FiberApp-master/+FiberAppGUI/SetZeroLevelImage.m
772
utf_8
39cf3856bbc4da801a08e57ef0750bb3
%SETZEROLEVELIMAGE "Set Zero Level" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function SetZeroLevelImage(hObject, eventdata) FA = guidata(hObject); rect...
github
ivan-usov/FiberApp-master
RemoveSurfaceImage.m
.m
FiberApp-master/+FiberAppGUI/RemoveSurfaceImage.m
540
utf_8
c43cff18f91d9de7921ac7a236340eff
%REMOVESURFACEIMAGE "Remove Surface" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function RemoveSurfaceImage(hObject, eventdata) FA = guidata(hObject); hwb...
github
ivan-usov/FiberApp-master
NewData.m
.m
FiberApp-master/+FiberAppGUI/NewData.m
731
utf_8
1ba060aca14eb2050e217844ef2efb07
%NEWDATA "New Data" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function NewData(hObject, eventdata) FA = guidata(hObject); % Check for modifications if FA...
github
ivan-usov/FiberApp-master
SaveDataAs.m
.m
FiberApp-master/+FiberAppGUI/SaveDataAs.m
1,048
utf_8
b88b6563743d0b474e1f5cad132ad27c
%SAVEDATAAS "Save Data As" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function isSaved = SaveDataAs(hObject, eventdata) FA = guidata(hObject); % Get fileN...
github
ivan-usov/FiberApp-master
ViewHelp.m
.m
FiberApp-master/+FiberAppGUI/ViewHelp.m
291
utf_8
1d89eb1559fd9e0c54d90f6d824bbc98
%VIEWHELP "View Help" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function ViewHelp(hObject, eventdata) % TODO: open help file
github
ivan-usov/FiberApp-master
AddFiber.m
.m
FiberApp-master/+FiberAppGUI/AddFiber.m
1,507
utf_8
bc469682023ad62ad400c87ceccdee1f
%ADDFIBER "Add Fiber" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function AddFiber(hObject, eventdata) FA = guidata(hObject); % Mask input if FA.setMask ...
github
ivan-usov/FiberApp-master
ForkData.m
.m
FiberApp-master/+FiberAppGUI/ForkData.m
1,133
utf_8
30feba9070ecc4163afb400564aee5f8
%FORKDATA "Fork Data" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function ForkData(hObject, eventdata) % Get address of the file to split data from [fileN...
github
ivan-usov/FiberApp-master
RemoveMask.m
.m
FiberApp-master/+FiberAppGUI/RemoveMask.m
604
utf_8
2a322bc70a6403d487ad565368f1de95
%REMOVEMASK "Remove Mask" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function RemoveMask(hObject, eventdata) FA = guidata(hObject); % Check if there is se...
github
ivan-usov/FiberApp-master
AddMask.m
.m
FiberApp-master/+FiberAppGUI/AddMask.m
829
utf_8
ef7ad08886b97100783800774a4365e5
%ADDMASK "Add Mask" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function AddMask(hObject, eventdata) FA = guidata(hObject); % Check if there is selected fi...
github
ivan-usov/FiberApp-master
ScaleBarImage.m
.m
FiberApp-master/+FiberAppGUI/ScaleBarImage.m
1,044
utf_8
bae69a5c79960f9fdffa9d13d2eb31c7
%SCALEBARIMAGE "Scale Bar" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function ScaleBarImage(hObject, eventdata) FA = guidata(hObject); % Promote a user t...
github
ivan-usov/FiberApp-master
OpenData.m
.m
FiberApp-master/+FiberAppGUI/OpenData.m
1,597
utf_8
835011f69d947e7ff06d8229594b8d53
%OPENDATA "Open Data" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function isOpened = OpenData(hObject, eventdata) FA = guidata(hObject); % Check for new m...
github
ivan-usov/FiberApp-master
About.m
.m
FiberApp-master/+FiberAppGUI/About.m
759
utf_8
1793821d16584758921d2fde277c3537
%ABOUT "About FiberApp" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function About(hObject, eventdata) aboutFig = figure('NumberTitle', 'off', 'MenuBar', '...
github
ivan-usov/FiberApp-master
InvertImage.m
.m
FiberApp-master/+FiberAppGUI/InvertImage.m
416
utf_8
96f989466ee9d351ca83ebf557694de3
%INVERTIMAGE "Invert Image" menu item callback % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function InvertImage(hObject, eventdata) FA = guidata(hObject); % Invert image FA....
github
ivan-usov/FiberApp-master
MSE2ED.m
.m
FiberApp-master/+algorithm/MSE2ED.m
947
utf_8
aa3782241cb3220e140599d630732386
%MSE2ED Calculate mean-squared end-to-end distance % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function [xdata, ydata, count] = MSE2ED(data, step, procStepNum) xdata = step*(1...
github
ivan-usov/FiberApp-master
BCF.m
.m
FiberApp-master/+algorithm/BCF.m
983
utf_8
7e97b9516de198c805ecbb88bc61fdb2
%BCF Calculate bond correlation function % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function [xdata, ydata, count] = BCF(data, step, procStepNum) xdata = step*(1:procStepNum)...
github
ivan-usov/FiberApp-master
OP2D.m
.m
FiberApp-master/+algorithm/OP2D.m
4,641
utf_8
6c8b988f72d309f95aadcd46f7fdf327
%OP2D Calculate 2D Order Parameter vs a box size % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function [xdata, ydata] = OP2D(p_all, v_all, xMin, yMin, ... gridStep, procSte...
github
ivan-usov/FiberApp-master
MSMD.m
.m
FiberApp-master/+algorithm/MSMD.m
1,053
utf_8
0fa0e4080c2224347169791f00f52f3b
%MSMD Calculate mean-squared midpoint displacement % Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved. % Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. function [xdata, ydata, count] = MSMD(data, step, procStepNum) xdata = step*(1:p...
github
YuvalNirkin/opencv_contrib-master
modelConvert.m
.m
opencv_contrib-master/doc/tutorials/ximgproc/training/scripts/modelConvert.m
2,117
utf_8
dd8b0dc376b1da49ced7529a9e3a7723
function modelConvert(model, outname) %% script for converting Piotr's matlab model into YAML format outfile = fopen(outname, 'w'); fprintf(outfile, '%%YAML:1.0\n\n'); fprintf(outfile, ['options:\n'... ' numberOfTrees: 8\n'... ' numberOfTreesToEvaluate: 4\n'... ...
github
YuvalNirkin/opencv_contrib-master
modelConvert.m
.m
opencv_contrib-master/modules/ximgproc/tutorials/scripts/modelConvert.m
2,117
utf_8
dd8b0dc376b1da49ced7529a9e3a7723
function modelConvert(model, outname) %% script for converting Piotr's matlab model into YAML format outfile = fopen(outname, 'w'); fprintf(outfile, '%%YAML:1.0\n\n'); fprintf(outfile, ['options:\n'... ' numberOfTrees: 8\n'... ' numberOfTreesToEvaluate: 4\n'... ...
github
maiwinstrup/StratiCounter-master
cdftransform.m
.m
StratiCounter-master/Subroutines/preprocessing/cdftransform.m
2,759
utf_8
8d36b7a9fe642c8c623c6ef5559b87e7
function ynew = cdftransform(x,y,L,plotlevel) %% ynew = cdftransform(x,y,L,plotlevel) % Performing a CDF-transform ("Cummulative Distribution Function") on data. % The CDF is defined the following way: Each data point is indexed in % ascending order, and given a value corresponding to its index. In this % way, high ...
github
maiwinstrup/StratiCounter-master
preprocessdata.m
.m
StratiCounter-master/Subroutines/preprocessing/preprocessdata.m
5,249
utf_8
9c44876485e2789dc6447dd3a0e16556
function [data1,hfig] = preprocessdata(data0,depth,preprocsteps,plotlevel,... species,layercounts) %% [data1,hfig] = preprocessdata(data0,depth,preprocsteps,plotlevel,species,... %% layercounts) % Preprocessing a (single) data series to obtain the best identifiable % annual layer signal in the data. "Species" an...
github
maiwinstrup/StratiCounter-master
matchmakerdata.m
.m
StratiCounter-master/Subroutines/matchmaker/matchmakerdata.m
2,248
utf_8
93ba7a5ac00d49f03b46ab1e09a8f41f
function matchmakerdata(species,Model,datafilename) %% matchmakerdata(species,Model,datafilename) % Save unprocessed datafiles in matchmaker format. nSpecies = length(species); data0 = loadrawdata(species{1},Model.path2data); % Data: data{1}=data0(:,2); species{1}=species{1}; % Depth: depth{1}=data0(:,1); depth_no(...
github
maiwinstrup/StratiCounter-master
matchmaker.m
.m
StratiCounter-master/Subroutines/matchmaker/matchmaker.m
37,328
utf_8
aec6b1aa9ee692af88c99b954558ab3b
function matchmaker(varargin) % ------------------------------------------------------------------------ % MATCHMAKER version 2.03, 22 April 2010, Sune Olander Rasmussen % Copyright (C) Sune Olander Rasmussen % MATCHMAKER syntax : matchmaker(filenames, datafileID, numberofpanels); % filenames Name of .m file ...
github
maiwinstrup/StratiCounter-master
matchmaker_evaluate.m
.m
StratiCounter-master/Subroutines/matchmaker/matchmaker_evaluate.m
14,844
utf_8
44c316aedcf0e154efb19d034822cd29
function matchmaker_evaluate(varargin) % % MATCHMAKER_EVALUATE version 2.00, 16 March 2006, % Copyright (C) Sune Olander Rasmussen % MATCHMAKER_EVALUATE is designed to be called from MATCHMAKER. switch nargin case {0, 1, 2}% Only for development purposes disp('MATCHMAKER_EVALUATE needs input arguments, an...
github
maiwinstrup/StratiCounter-master
constructmanualtemplates.m
.m
StratiCounter-master/Subroutines/layertemplates/constructmanualtemplates.m
8,971
utf_8
b80d9627c7f7e247621f4aa22ce2b603
function [Template_all, TemplateInfo_all, Model] = ... constructmanualtemplates(Data,Model,outputdir,Runtype) %% [Template_all, TemplateInfo_all, Model] = ... % constructmanualtemplates(Data,Model,outputdir,Runtype) % Compute array of layer templates for all species corresponding to the % manual layer counts in...
github
maiwinstrup/StratiCounter-master
calclayerpar.m
.m
StratiCounter-master/Subroutines/layertemplates/calclayerpar.m
14,720
utf_8
fdf0eff1a08d1e81291bdfc6dc389b96
function [Layerpar0, ParML, ParMAP, Layerpar_individual] = ... calclayerpar(Model,Data,layerpos,layerunc,Template,Runtype) %% [Layerpar0,ParML,ParMAP,layerpar] = ... % calclayerpar(Model,Data,layerpos,layerunc,Template,Runtype) % Computing maximum likelihood (ML) and maximum a posteriori (MAP) layer % paramete...
github
maiwinstrup/StratiCounter-master
stacklayers.m
.m
StratiCounter-master/Subroutines/layertemplates/stacklayers.m
3,295
utf_8
19cbb1f803f07244a8a4fa7f857b8d5f
function [stack, dlayer] = stacklayers(depth,data,layercounts,unc_layercounts,dt) %% [stack, dlayer] = stacklayers(depth,data,layercounts,unc_layercounts,dt): % Stacking data as annual layers. All layers are linearly interpolated to % have the same length, with each data point corresponding to timestep dt. % dlayer ...
github
maiwinstrup/StratiCounter-master
layerstructure.m
.m
StratiCounter-master/Subroutines/layertemplates/layerstructure.m
6,250
utf_8
cb115ba6225b3b925578bcc79642d356
function [Template, TemplateInfo] = ... layerstructure(data,depth,layercounts,unc_layercounts,Model,Runtype) %% [Template, TemplateInfo] = ... % layerstructure(data,depth,layercounts,unc_layercounts,Model,Runtype) % Calculating a template for an annual layer in the data file. Presently, % layers can only be ch...
github
maiwinstrup/StratiCounter-master
batchlayerprobabilities.m
.m
StratiCounter-master/Subroutines/batchresults/batchlayerprobabilities.m
5,887
utf_8
cc468aafaf1eb98937b87e38b15bb90b
function [ntau, ntauTotal, LayerProbDist] = ... batchlayerprobabilities(depth,FBprob,tau,Layer0,prctile,plotlevel) %% [ntau, ntauTotal, LayerProbDist] = batchlayerprobabilities(depth,FBprob,... % tau,Layer0,prctile,plotlevel) % Calculating the probability distribution of number of layers in current % batch (nta...
github
maiwinstrup/StratiCounter-master
lastlayerpos.m
.m
StratiCounter-master/Subroutines/batchresults/lastlayerpos.m
2,490
utf_8
03bc710100f7bdfba6585066c9d1b813
function postau = lastlayerpos(FBprob,tau,d,zerolimit,tstart,plotlevel) %% postau = lastlayerpos(FBprob,tau,d,zerolimit,tstart,plotlevel) % Calculating the probabilities corresponding to where ends the last layer % before the layer in pixel tau (i.e. "layer j0" of next batch). % Copyright (C) 2015 Mai Winstrup %% D...
github
maiwinstrup/StratiCounter-master
forwardbackward.m
.m
StratiCounter-master/Subroutines/algorithm/forwardbackward.m
12,345
utf_8
0cddf726d32b4cb19130922088c17e54
function [logalpha_bar,logbeta,eta2,eta2_bar,gamma2,layerpos,... layerpos_issues,logPobs] = forwardbackward(logb,logpd,layer0_pos,... T,d,dmax,D,nLayerMax,tiepoints,plotlevel) %% [logalpha_bar,logbeta,eta2,eta2_bar,gamma2,layerpos,layerpos_issues,... % logPobs] = forwardbackward(logb,logpd,layer0_pos,T,d,dm...
github
maiwinstrup/StratiCounter-master
likelihoodBLR.m
.m
StratiCounter-master/Subroutines/algorithm/likelihoodBLR.m
7,158
utf_8
13ee807efbda3e502b23128b5c99ad78
function [logb, ExpVal] = likelihoodBLR(data,Template,Layerpar,d,i0,Model) %% [logb, ExpVal] = likelihoodBLR(data,Template,Layerpar,d,i0,Model): % Calculating the log-likelihood that the observation sequence from t1 to % t2 spans exactly one year: % logb(t2,d,species j) = log(P(obs(t1:t2) | S([t1:t2])= 1 year)), % wi...
github
maiwinstrup/StratiCounter-master
showtimescale.m
.m
StratiCounter-master/Subroutines/showresults/showtimescale.m
6,879
utf_8
558a4320e52f9fd82362ac36ded9dcb6
function hfig = showtimescale(timescale,timescale1yr,manualcounts,dbatch,... Model,filename) %% hfig = showtimescale(timescale,timescale1yr,manualcounts,dbatch,... % Model,filename) % Plot the resulting timescale, and its associated uncertainties, as % function of depth. If manual counts exist, these are plotte...
github
LeventhalLab/Development-master
Canolty_comodulogram_print.m
.m
Development-master/ChoiceTask/LFPs/explore/Canolty_comodulogram_print.m
5,911
utf_8
92dd6487432e7ae10a8b29ca639849cd
% save('Canolt_comodulogram_20190122','corrMatrix_rho','corrMatrix_pval','shuff_corrMatrix_rho_mean','shuff_corrMatrix_pval',... % 'eventFieldnames_wFake','freqList','nShuff'); function h = Canolty_comodulogram_print(corrMatrix_rho,shuff_corrMatrix_rho_mean,useSessions,... eventFieldnames,freqList) doPlot_allEven...
github
LeventhalLab/Development-master
wholeSessionSpikeSTA.m
.m
Development-master/ChoiceTask/LFPs/explore/wholeSessionSpikeSTA.m
11,078
utf_8
cce7ef092171c799fce7f5a70479fa77
% create session-wide SDE z-scores compileTs = false; compileWs = false; doBurst = false; % % if compileTs % % [uniqueSession,ic,ia] = unique(analysisConf.sessionNames); % % sessionTs = {}; % % tsEndArr = []; % % for iNeuron = 1:366 % % iSession = ia(iNeuron); % % if numel(sessionTs) < ...
github
LeventhalLab/Development-master
zScoreScalogram.m
.m
Development-master/ChoiceTask/LFPs/utils/zScoreScalogram.m
1,471
utf_8
ba4094ebfbd1dfe505aace4ba3a8c4e4
function [zMean,zStd,zFreqs] = zScoreScalogram(sevFilt,Fs,tWindow,freqList) zFreqs = freqList; nSamples = 500; % generate surrogate trial times tWindowSamples = round(tWindow * Fs); data = []; all_W = []; iTrial = 1; all_centerSample = []; while iTrial < nSamples + 1 centerSample = randsample(1+tWindowSamples:nume...
github
LeventhalLab/Development-master
pval_adjust.m
.m
Development-master/ChoiceTask/LFPs/utils/pval_adjust.m
4,604
utf_8
1d57972582ea9d917069fcd7ac486822
function pc = pval_adjust(p, method) % PVAL_ADJUST Adjust p-values for multiple comparisons. Given a set of % p-values, returns p-values adjusted using one of several methods. This is % an implementation of the p.adjust R function, the documentation of which % can be found at http://www.inside-r.org/r-doc/stats/p.adjus...
github
LeventhalLab/Development-master
allfitdist.m
.m
Development-master/ChoiceTask/LFPs/utils/allfitdist.m
14,068
utf_8
c97911c7950da43539c02a6eb3beff8e
function [D PD] = allfitdist(data,sortby,varargin) %ALLFITDIST Fit all valid parametric probability distributions to data. % [D PD] = ALLFITDIST(DATA) fits all valid parametric probability % distributions to the data in vector DATA, and returns a struct D of % fitted distributions and parameters and a struct of o...
github
LeventhalLab/Development-master
createSDEstruct.m
.m
Development-master/ChoiceTask/LFPs/utils/createSDEstruct.m
1,738
utf_8
5736a123ccd5c0d50ebf71a03fa7acc2
function [all_SDEs,all_MTs,all_RTs,all_trialIds] = createSDEstruct(all_trials,all_ts,eventFieldnames) all_SDEs = {}; all_tsPeths = {}; all_MTs = {}; all_RTs = {}; tWindow = 2; for iNeuron = 1:numel(all_ts) curTrials = all_trials{iNeuron}; curTs = all_ts{iNeuron}; % % trialIdInfo = organizeTrialsById(curT...
github
LeventhalLab/Development-master
workon.m
.m
Development-master/ChoiceTask/LFPs/utils/workon.m
1,432
utf_8
d3a7228a64db6aecb7b53bc90861679c
function workon(openArr) % (list) >> workon % (open) >> workon(1) % (open) >> workon([2,3,6,14]) % (open) >> workon(1:7) limitTo = 15; % # of files listing = dir('**/*.m'); [~,idx] = sort([listing.datenum],'descend'); if ~exist('openArr','var') clc; headerT...
github
LeventhalLab/Development-master
curateTrials.m
.m
Development-master/ChoiceTask/LFPs/utils/curateTrials.m
2,532
utf_8
52ee1800cf1d24fcfe031be5fb16c21c
function [trials,trialsMap] = curateTrials(trials,sevFilt,Fs,eventName) % passing in only successful trials trialTimeRanges = getTrialTimes(trials); minTime = min(trialTimeRanges(:,1)); maxTime = max(trialTimeRanges(:,2)); % check real event compliance % recursive add event until compliant trialCount = 0; trialsMap = ...
github
LeventhalLab/Development-master
circ_kuipertest.m
.m
Development-master/ChoiceTask/LFPs/utils/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
LeventhalLab/Development-master
circ_clust.m
.m
Development-master/ChoiceTask/LFPs/utils/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
LeventhalLab/Development-master
circ_raotest.m
.m
Development-master/ChoiceTask/LFPs/utils/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
LeventhalLab/Development-master
circ_cmtest.m
.m
Development-master/ChoiceTask/LFPs/utils/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
LeventhalLab/Development-master
circ_wwtest.m
.m
Development-master/ChoiceTask/LFPs/utils/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
LeventhalLab/Development-master
phasebar.m
.m
Development-master/ChoiceTask/LFPs/utils/phasemap/phasebar.m
7,560
utf_8
3475160dbae8126640617164190c4096
function ax = phasebar(varargin) % phasebar places a circular donunt-shaped colorbar for phase % from -pi to pi or -180 degrees to 180 degrees. % %% Syntax % % phasebar % phasebar(...,'location',Location) % phasebar(...,'size',Size) % phasebar('deg') % phasebar('rad') % ax = phasebar(...) % %% Descript...
github
LeventhalLab/Development-master
cmocean.m
.m
Development-master/ChoiceTask/LFPs/utils/cmocean/cmocean.m
412,498
utf_8
64baf051092febba74e5e47706efdd95
function cmap = cmocean(ColormapName,varargin) % cmocean returns perceptually-uniform colormaps created by Kristen Thyng. % %% Syntax % % cmocean % cmap = cmocean('ColormapName') % cmap = cmocean('-ColormapName') % cmap = cmocean(...,NLevels) % cmap = cmocean(...,'pivot',PivotValue) % cmap = cmocean(...,...
github
LeventhalLab/Development-master
LFP_byX.m
.m
Development-master/ChoiceTask/LFPs/print/LFP_byX.m
13,447
utf_8
1e55b31aa8b80d4a3ccb121678ef39a1
if ~exist('all_trials') load('session_20180919_NakamuraMRL.mat', 'LFPfiles_local') load('session_20180919_NakamuraMRL.mat', 'LFPfiles_local_alt') load('session_20180919_NakamuraMRL.mat', 'selectedLFPFiles') load('session_20180919_NakamuraMRL.mat', 'all_trials') load('session_20180919_NakamuraMRL.mat...
github
LeventhalLab/Development-master
spikeLFPxcorrBySession.m
.m
Development-master/ChoiceTask/LFPs/print/spikeLFPxcorrBySession.m
14,510
utf_8
663c08a001f6c1f03f9271c57fe7d868
doSetup = false; doDebug = false; doPlot = false; nSurr = 100; zThresh = 2; freqList = logFreqList([1 200],10); ytickIds = 1:numel(freqList); ytickLabelText = num2str(freqList(:),'%1.2f'); % % ytickIds = [1 closest(freqList,20) closest(freqList,55) numel(freqList)]; % selected from freqList % % ytickLabelText = freqLis...
github
LeventhalLab/Development-master
print_LFPs.m
.m
Development-master/ChoiceTask/LFPs/print/print_LFPs.m
4,458
utf_8
62cef4670605271beec75de2060c4b72
function print_LFPs(LFPfiles,all_trials,eventFieldnames,tWindow_vis) % !! freqList is now passed into function, need to established that % UPDATE!! savePath = '/Users/mattgaidica/Documents/Data/ChoiceTask/LFPs/perievent/LFP'; sevFile = ''; tWindow = 1; pxHeight = 150; allFrames = []; for iNeuron = 1:numel(LFPfiles) ...
github
LeventhalLab/Development-master
entrainment_HighResolution.m
.m
Development-master/ChoiceTask/LFPs/print/entrainment_HighResolution.m
12,332
utf_8
0446c746a784cc5bf406271fcb3d27db
% close all; % load('20190313_highresEntrainment_altWires.mat') doSave = false; doPlot_pvalDist = false; doPlot_MRLs = false; doPlot_kuiper = false; doPlot_MRLmontage = false; doPlot_mats = false; doPlot_bars = true; useLines = true; % for doPlot_bars conds_pvals = {squeeze(all_spikeHist_pvals_surr(1,:,:,:)),all_spi...
github
LeventhalLab/Development-master
Fig01_BEHAVIORSPECT_setup.m
.m
Development-master/ChoiceTask/LFPs/Figures/Fig01_BEHAVIORSPECT_setup.m
3,913
utf_8
06787bbca23b3034d4e39db479216c75
% code from simpleFFT.m % load('session_20180925_entrainmentSurrogates.mat', 'LFPfiles_local') % load('session_20180925_entrainmentSurrogates.mat', 'selectedLFPFiles') % load('session_20180925_entrainmentSurrogates.mat', 'all_trials') % load('session_20180925_entrainmentSurrogates.mat', 'eventFieldnames') savePath = '...
github
LeventhalLab/Development-master
extractWaveforms.m
.m
Development-master/ChoiceTask/Manuscript/extractWaveforms.m
3,244
utf_8
9138ce71bd3f63ee4ce7e7d6272c683f
function [waveforms,sameWire,wireLabels] = extractWaveforms(analysisConf,all_ts) % waveforms: m units x n mean waveform data points (+/- 2 ms, in uV) % sameWire: m units x n wires, where units on same wire are logical 1 % wireLabels: 1 x n wires, string/name for each wire disp('!!! This function ne...
github
LeventhalLab/Development-master
RTMT_corrMatrix.m
.m
Development-master/ChoiceTask/Manuscript/RTMT_corrMatrix.m
26,303
utf_8
7903b4bd50cbe3af01b6e7fda5395f79
function RTMT_corrMatrix() if ismac savePath = '/Users/mattgaidica/Box Sync/Leventhal Lab/Manuscripts/Thalamus_behavior_2017/Figures/MATLAB/RTMT'; uSessionsPath = '/Users/mattgaidica/Documents/MATLAB/LeventhalLab/Development/ChoiceTask/temp/uSessions'; else savePath = 'C:\Users\Administr...
github
LeventhalLab/Development-master
sideOutDirection.m
.m
Development-master/ChoiceTask/Manuscript/sideOutDirection.m
2,405
utf_8
1b53c3c8dfca4b94e6b07cfa9e999356
function sideOutDirection(analysisConf,all_trials) excludeSessions = {'R0142_20161207a','R0117_20160508a','R0117_20160510a'}; % corrupt video % get all unique sessions [sessionNames,IA] = unique(analysisConf.sessionNames); for iSession = 1:numel(sessionNames) sessionConf = analysisConf.sessionCo...
github
LeventhalLab/Development-master
meanScalogram.m
.m
Development-master/ChoiceTask/Manuscript/Analysis/meanScalogram.m
2,025
utf_8
bb21831c704c4dc4cad715b54e18b9dd
% function [meanScalo, stdScalo, log_meanScalo, log_stdScalo] = meanScalogram(sevFilt,tWindow,scaloWindow,Fs,freqList,num_iterations) function [allScalo] = meanScalogram(sevFilt,tWindow,scaloWindow,Fs,freqList,num_iterations) % lfpThresh = 0.5e6; % diff uV^2, *this depends on decimate factor, need to generalize it lfp...
github
LeventhalLab/Development-master
addUnitHeader.m
.m
Development-master/ChoiceTask/Manuscript/Analysis/Formatting/addUnitHeader.m
2,663
utf_8
32b67eb99c47e4090ae1bcbb6cf0674c
function addUnitHeader(analysisConf,analyses) unitHeaderFolder = 'unitHeader'; prependString = 'HEADER-'; for iAnalysis = 1:length(analyses) for iSession = 1:length(analysisConf.sessionConfs) analysisPathTemp = fullfile(analysisConf.sessionConfs{iSession}.leventhalPaths.analysis,analyses...
github
LeventhalLab/Development-master
setFig.m
.m
Development-master/ChoiceTask/Helpers/setFig.m
1,509
utf_8
4312f2f71cb294de85c9b9315698d7ea
% init: % % subplotMargins = [.05,.02]; % % figPath = '/Users/mattgaidica/Box Sync/Leventhal Lab/Manuscripts/Thalamus_behavior_2017/Figures/MATLAB'; function setFig(xlabelVal,ylabelVal,cols) set(groot,{'DefaultAxesXColor','DefaultAxesYColor','DefaultAxesZColor'},{'k','k','k'}); set(gcf,'color','w'); if exist('xlabelV...
github
LeventhalLab/Development-master
lfpVideo.m
.m
Development-master/ChoiceTask/Helpers/lfpVideo.m
12,878
utf_8
bbd9b01334b1da48c00269279b161472
function lfpVideo(sessionConf,nexStruct,lfpChannels,neurons) tic FigureVisible = 'on'; % get video leventhalPaths = buildLeventhalPaths(sessionConf); videos = dir(fullfile(leventhalPaths.rawdata,'*.avi')); if isempty(videos) error('novideo'); end video = VideoReader(fullfile(leve...
github
LeventhalLab/Development-master
successPETHs.m
.m
Development-master/ChoiceTask/Helpers/Hannah/successPETHs.m
3,160
utf_8
dd71d6a2c90d15d05176a5559ea0de7b
function successPETHs(nexStruct, trials) %Function to create PETHs for the successful events %Declare constants pethHalfWidth = 2; histBin = 50; fontSize = 6; %Get the event names from the nexStruct compiledEvents = loadCompiledEvents(); neuronEventFieldnames = fieldnames(compiledE...
github
LeventhalLab/Development-master
poissonSurprise.m
.m
Development-master/ChoiceTask/Helpers/Hannah/poissonSurprise.m
1,427
utf_8
eba520e9f55d7abf5b642529533d2b64
%poissonSurprise.m %Burst detector using the Poisson Surprise method %Input: time stamps function poissonSurprise(ts) threshSurprise = 3; width = 20; %s minNumSpikes = 3; interval = .5; %s endTime = ts(length(ts)); sValues = []; times = []; aveFR = length(ts)/(ts(length(ts)) - ts(1)); %Plot the time stamps subplot(21...
github
LeventhalLab/Development-master
fillPage.m
.m
Development-master/ChoiceTask/Helpers/Third Party/fillPage.m
6,457
utf_8
28a75fba328ad6b65dcfa6cd61581f12
function oldSettings = fillPage(h, varargin) %FILLPAGE set figure h to fill a page when printed/exported % FILLPAGE will adjust printing/exporting related properties so the % figure (h) will take up a full page when printed/exported. Optional % arguments (varargin) allow you to adjust the margins and page siz...
github
LeventhalLab/Development-master
patchline.m
.m
Development-master/ChoiceTask/Helpers/Third Party/patchline.m
3,812
utf_8
eb106a55c884f31c460bacfead7472aa
function p = patchline(xs,ys,varargin) % Plot lines as patches (efficiently) % % SYNTAX: % patchline(xs,ys) % patchline(xs,ys,zs,...) % patchline(xs,ys,zs,'PropertyName',propertyvalue,...) % p = patchline(...) % % PROPERTIES: % Accepts all parameter-values accepted by PATCH. % % DESCRI...
github
LeventhalLab/Development-master
smoothn.m
.m
Development-master/ChoiceTask/Helpers/Third Party/smoothn.m
28,084
utf_8
d144281b4948898f62fca23f53ed669a
function [z,s,exitflag] = smoothn(varargin) %SMOOTHN Robust spline smoothing for 1-D to N-D data. % SMOOTHN provides a fast, automatized and robust discretized spline % smoothing for data of arbitrary dimension. % % Z = SMOOTHN(Y) automatically smoothes the uniformly-sampled array Y. Y % can be any N-D ...
github
LeventhalLab/Development-master
y_to_norm_v2.m
.m
Development-master/ChoiceTask/Helpers/Third Party/y_to_norm_v2.m
3,353
utf_8
f394aafda528b0bd20bc330fca62df5e
%author: Girish Ratanpal, ECE, UVa. %transform axes units to normalized units for 2-D figures only. %works for linear,log scales and also reverse axes. %DATE: JAN. 6, 2006. previous version: aug 12, 2005. % % %FUNCTION DESCRIPTION: % function [y_norm] = y_to_norm_v2(y_begin,y_end) % function returns a 1x2 array, y_no...
github
LeventhalLab/Development-master
burst.m
.m
Development-master/ChoiceTask/Helpers/Third Party/burst.m
4,251
utf_8
9795e9783653091a5b5c554bec35a3da
function ... [archive_burst_RS,archive_burst_length,archive_burst_start]=burst(tn,limit,RSalpha) %"Rank Surprise" method for burst detection. Requires statistical toolbox %of Matlab 6.5 or any program computing the Gaussian CDF. % %USE : [archive_burst_RS,archive_burst_length,archive_burst_start]=burst(tn,limit,RSa...
github
LeventhalLab/Development-master
deleteoutliers.m
.m
Development-master/ChoiceTask/Helpers/Third Party/deleteoutliers.m
3,493
utf_8
a97518a30ca50a19dcfb5e180b3089c7
function [b,idx,outliers] = deleteoutliers(a,alpha,rep); % [B, IDX, OUTLIERS] = DELETEOUTLIERS(A, ALPHA, REP) % % For input vector A, returns a vector B with outliers (at the significance % level alpha) removed. Also, optional output argument idx returns the % indices in A of outlier values. Optional output argum...
github
LeventhalLab/Development-master
sigstar.m
.m
Development-master/ChoiceTask/Helpers/Third Party/sigstar.m
8,627
utf_8
789c5cfd2575d3729fbda559d3592fbf
function varargout=sigstar(groups,stats,nosort) % sigstar - Add significance stars to bar charts, boxplots, line charts, etc, % % H = sigstar(groups,stats,nsort) % % Purpose % Add stars and lines highlighting significant differences between pairs of groups. % The user specifies the groups a...
github
LeventhalLab/Development-master
pdftops.m
.m
Development-master/ChoiceTask/Helpers/Third Party/exportFig/pdftops.m
6,574
utf_8
d04f5570770cb4e6fdeef06c8a34fdda
function varargout = pdftops(cmd) %PDFTOPS Calls a local pdftops executable with the input command % % Example: % [status result] = pdftops(cmd) % % Attempts to locate a pdftops executable, finally asking the user to % specify the directory pdftops was installed into. The resulting path is % stored for futur...
github
LeventhalLab/Development-master
crop_borders.m
.m
Development-master/ChoiceTask/Helpers/Third Party/exportFig/crop_borders.m
5,133
utf_8
b744bf935914cfa6d9ff82140b48291e
function [A, vA, vB, bb_rel] = crop_borders(A, bcol, padding, crop_amounts) %CROP_BORDERS Crop the borders of an image or stack of images % % [B, vA, vB, bb_rel] = crop_borders(A, bcol, [padding]) % %IN: % A - HxWxCxN stack of images. % bcol - Cx1 background colour vector. % padding - scalar indicating ...
github
LeventhalLab/Development-master
isolate_axes.m
.m
Development-master/ChoiceTask/Helpers/Third Party/exportFig/isolate_axes.m
4,851
utf_8
611d9727e84ad6ba76dcb3543434d0ce
function fh = isolate_axes(ah, vis) %ISOLATE_AXES Isolate the specified axes in a figure on their own % % Examples: % fh = isolate_axes(ah) % fh = isolate_axes(ah, vis) % % This function will create a new figure containing the axes/uipanels % specified, and also their associated legends and colorbars. The o...
github
LeventhalLab/Development-master
im2gif.m
.m
Development-master/ChoiceTask/Helpers/Third Party/exportFig/im2gif.m
6,769
utf_8
92402e010eade0a1789e9e9ae59c6e07
%IM2GIF Convert a multiframe image to an animated GIF file % % Examples: % im2gif infile % im2gif infile outfile % im2gif(A, outfile) % im2gif(..., '-nocrop') % im2gif(..., '-nodither') % im2gif(..., '-ncolors', n) % im2gif(..., '-loops', n) % im2gif(..., '-delay', n) % % This function c...
github
LeventhalLab/Development-master
read_write_entire_textfile.m
.m
Development-master/ChoiceTask/Helpers/Third Party/exportFig/read_write_entire_textfile.m
961
utf_8
775aa1f538c76516c7fb406a4f129320
%READ_WRITE_ENTIRE_TEXTFILE Read or write a whole text file to/from memory % % Read or write an entire text file to/from memory, without leaving the % file open if an error occurs. % % Reading: % fstrm = read_write_entire_textfile(fname) % Writing: % read_write_entire_textfile(fname, fstrm) % %IN: % fn...
github
LeventhalLab/Development-master
pdf2eps.m
.m
Development-master/ChoiceTask/Helpers/Third Party/exportFig/pdf2eps.m
1,703
utf_8
b52a84cee0d43fd58ae4d1af1fa7d143
%PDF2EPS Convert a pdf file to eps format using pdftops % % Examples: % pdf2eps source dest % % This function converts a pdf file to eps format. % % This function requires that you have pdftops, from the Xpdf suite of % functions, installed on your system. This can be downloaded from: % http://xpdfreader.co...
github
LeventhalLab/Development-master
print2array.m
.m
Development-master/ChoiceTask/Helpers/Third Party/exportFig/print2array.m
10,477
utf_8
3c1d2b0ec5464854d77d5542b2b7b0ed
function [A, bcol] = print2array(fig, res, renderer, gs_options) %PRINT2ARRAY Exports a figure to an image array % % Examples: % A = print2array % A = print2array(figure_handle) % A = print2array(figure_handle, resolution) % A = print2array(figure_handle, resolution, renderer) % A = print2array(figur...
github
LeventhalLab/Development-master
append_pdfs.m
.m
Development-master/ChoiceTask/Helpers/Third Party/exportFig/append_pdfs.m
4,694
utf_8
42b32199bef337ae7b10268ea1d587ac
%APPEND_PDFS Appends/concatenates multiple PDF files % % Example: % append_pdfs(output, input1, input2, ...) % append_pdfs(output, input_list{:}) % append_pdfs test.pdf temp1.pdf temp2.pdf % % This function appends multiple PDF files to an existing PDF file, or % concatenates them into a PDF file if the o...
github
LeventhalLab/Development-master
using_hg2.m
.m
Development-master/ChoiceTask/Helpers/Third Party/exportFig/using_hg2.m
1,100
utf_8
47ca10d86740c27b9f6b397373ae16cd
%USING_HG2 Determine if the HG2 graphics engine is used % % tf = using_hg2(fig) % %IN: % fig - handle to the figure in question. % %OUT: % tf - boolean indicating whether the HG2 graphics engine is being used % (true) or not (false). % 19/06/2015 - Suppress warning in R2015b; cache result for i...
github
LeventhalLab/Development-master
eps2pdf.m
.m
Development-master/ChoiceTask/Helpers/Third Party/exportFig/eps2pdf.m
10,558
utf_8
8962221bf56367a42a3416638c9a1202
function eps2pdf(source, dest, crop, append, gray, quality, gs_options) %EPS2PDF Convert an eps file to pdf format using ghostscript % % Examples: % eps2pdf source dest % eps2pdf(source, dest, crop) % eps2pdf(source, dest, crop, append) % eps2pdf(source, dest, crop, append, gray) % eps2pdf(source, de...
github
LeventhalLab/Development-master
export_fig.m
.m
Development-master/ChoiceTask/Helpers/Third Party/exportFig/export_fig.m
82,159
utf_8
2725ed47909ae595989cd82fcd5a04e4
function [imageData, alpha] = export_fig(varargin) %#ok<*STRCL1> %EXPORT_FIG Exports figures in a publication-quality format % % Examples: % imageData = export_fig % [imageData, alpha] = export_fig % export_fig filename % export_fig filename -format1 -format2 % export_fig ... -nocrop % export_fig ...