plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
shayo/Planner-master
fast_sincmtx.m
.m
Planner-master/PublicLib/FreeSurfer/fast_sincmtx.m
1,382
utf_8
4623cee807bc3255f386927d537f12a9
function M = fast_sincmtx(len,delta,rownorm,hw) % M = fast_sincmtx(len,delta,<rownorm>,<hw>) % Create a sinc interpolation matrix. Given a vector y, % yhat = M*y will be the sinc interpolation of y shifted % backwards by delta, where delta is a fration of the % distance between y. If rownorm is set to non-zero, then %...
github
shayo/Planner-master
talairaching_afd.m
.m
Planner-master/PublicLib/FreeSurfer/talairaching_afd.m
4,512
utf_8
89a98a35ae114c372e2b8ae03a9b67e3
function [proba, pinf]=talmat(filename, th_pval, DirTable) % % Computes the probability of the Talairach transform matrix % 'filename/mri/transforms/talairach.xfm'. % Uses the mean vector and covariance matrix obtained with talairachin_table.m from % the data set (default data set: /space/neo/2/recon/buck...
github
shayo/Planner-master
vqm.m
.m
Planner-master/PublicLib/FreeSurfer/vqm.m
3,956
utf_8
0a9161bbeee2a921e8ec987bb3aa4226
function Q = vqm(abc,voxsize,voldim,base) % % Q = vqm(abc,voxsize,voldim,<base>) % % Volume quantization matrix. Q computes the x,y,z of a voxel given % the subscript of the voxel in the volume. % % abc - 3 character string indicating which physical dimension maps to % the fast (a), medium (b), and slow (c) i...
github
shayo/Planner-master
surf_registration_afd.m
.m
Planner-master/PublicLib/FreeSurfer/surf_registration_afd.m
4,921
utf_8
51a5d10f7fa8c4d3697893e6d564e46a
function [prv ] = surf_registration_adf(subject, th_pval) %% Tests the overall surface based registration %% % % % surf_registration_afd.m % % Original Author: Laurence Wastiaux % CVS Revision Info: % $Author: nicks $ % $Date: 2007/01/10 22:55:10 $ % $Revision: 1.2 $ % % Copyright (C) 2002-2007, % The Gener...
github
shayo/Planner-master
fast_fxcfg_poly.m
.m
Planner-master/PublicLib/FreeSurfer/fast_fxcfg_poly.m
4,000
utf_8
ce435a1008bafda95697d6770cf8187a
function rt = fast_fxcfg_poly(DoWhat,thing) % rt = fast_fxcfg_poly(DoWhat,thing) % % DoWhat can be: % iserm - returns 0 (this is not an erm) thing not needed. % nparams - returns number of parameters in model (1). thing not needed. % nregressors - number of regressors in current X matrix. thing=flacfg % matrix - X...
github
shayo/Planner-master
fast_evfunc.m
.m
Planner-master/PublicLib/FreeSurfer/fast_evfunc.m
13,082
utf_8
f7d753f8a492dd36678a3a5d7b908901
function r = fast_evfunc(varargin) % r = fast_evfunc(varargin) % % Computes the spatial eigen structure for a list of input % functional volumes. If a mask is supplied (or automask is % specified, the input volumes will be masked off. After % masking, temporal covmtx is computed and saved. The Temporal % EVects and ...
github
shayo/Planner-master
read_patch.m
.m
Planner-master/PublicLib/FreeSurfer/read_patch.m
1,252
utf_8
7efcc2b807fc0828c0e9f19532d0152f
% % read_patch.m % % Original Author: Bruce Fischl % CVS Revision Info: % $Author: fischl $ % $Date: 2011/07/19 20:35:44 $ % $Revision: 1.4 $ % % Copyright © 2011 The General Hospital Corporation (Boston, MA) "MGH" % % Terms and conditions for use, reproduction, distribution and contribution % are found in the...
github
shayo/Planner-master
fast_func2acor.m
.m
Planner-master/PublicLib/FreeSurfer/fast_func2acor.m
11,342
utf_8
f6ec172e29c95b67af6c00d71fc1f69a
function r = fast_func2acor(varargin) % r = fast_func2acor(varargin) % '$Id: fast_func2acor.m,v 1.1 2003/03/04 20:47:38 greve Exp $' tic; version = '$Id: fast_func2acor.m,v 1.1 2003/03/04 20:47:38 greve Exp $'; fprintf(1,'%s\n',version); r = 1; %% Print useage if there are no arguments %% if(nargin == 0) print_usag...
github
shayo/Planner-master
pons_cut_dir_afd.m
.m
Planner-master/PublicLib/FreeSurfer/pons_cut_dir_afd.m
4,523
utf_8
82b187da27f81455e90fe7863b52c09e
function [D, Isubj]=pons_cut_dir_adf(dirname,th_pval) % For all the subjects in the directory "dirname": % Computes the Dice coefficients D=2Nab/Na+Nb % where: % Na is the volume of the Cerebellum obtrained trough the volume-based labeling % Nb is the volume "filled" ...
github
shayo/Planner-master
cortical_labeling_dir_afd_txt.m
.m
Planner-master/PublicLib/FreeSurfer/cortical_labeling_dir_afd_txt.m
8,264
utf_8
9a2d6355b487ece806f75ff4ec1905cf
function [Dl, Dr,I]=cortical_label_dir_adf(dirname, p_val) % Computes the area of the different cortical labels % and compare them to the normal range for all the % subjects in directory "dirname" % Uses the p_values to detect the abnormal structures % Uses the lh/rh.parc.txt files % % % cortical_labeling_dir_afd_t...
github
shayo/Planner-master
fast_fxcfg_spmhrf.m
.m
Planner-master/PublicLib/FreeSurfer/fast_fxcfg_spmhrf.m
7,091
utf_8
bde4b2115a227fbca9ef1f0f0ccd32e8
function rt = fast_fxcfg_spmhrf(DoWhat,thing) % Handle configuration for SPM Hemodynamic Response Function % % rt = fast_fxcfg_spmhrf(DoWhat,thing) % % DoWhat can be: % iserm - returns 1 because this is an erm. thing not needed. % nparams - returns number of parameters in model (9). thing not needed. % nregressors ...
github
shayo/Planner-master
fast_igxavg.m
.m
Planner-master/PublicLib/FreeSurfer/fast_igxavg.m
7,168
utf_8
2ecb2a746bd2e5f73fc2f1a7f9ad052a
function r = fast_isxavg_fe(varargin) % Name: fast_isxavg_fe % Purpose: implements fixed-effects intersession averaging % for output of selxavg % Author: Douglas Greve % Questions or Comments: analysis-bugs@nmr.mgh.harvard.edu % Version: $Id: fast_igxavg.m,v 1.1 2003/03/04 20:47:38 greve Exp $ % r = fast_isxav...
github
shayo/Planner-master
talairaching_stats.m
.m
Planner-master/PublicLib/FreeSurfer/talairaching_stats.m
2,756
utf_8
60054ac79eae62d93fb8d455f08d143f
function [D,mu,sigma]=talairach_stats_correct(dirname, outdir) % % Computes the mean and covariance matrix from a training set % % By default, the 3 translation parameters are not considered % -> mu is a 1x9 vector and sigma a 9x9 matrix % % talairaching_stats.m % % Original Author: Laurence Wastiaux % CVS Revi...
github
shayo/Planner-master
fast_ldflac.m
.m
Planner-master/PublicLib/FreeSurfer/fast_ldflac.m
8,054
utf_8
6478f6cbf130de18d40028991216b2ca
function flac = fast_ldflac(flacfile,flac) % flac = fast_ldflac(flacfile,<flac>) % % $Id: fast_ldflac.m,v 1.12 2005/10/05 19:21:50 greve Exp $ if(nargin < 0 | nargin > 2) fprintf('flac = fast_ldflac(flacfile,<flac>)\n'); flac = []; return; end if(~exist('flac','var')) flac = []; end if(isempty(flac)) flac.nam...
github
shayo/Planner-master
fast_evspatfil.m
.m
Planner-master/PublicLib/FreeSurfer/fast_evspatfil.m
15,324
utf_8
77b6fa34ead216b31c230def9a5abba5
function r = fast_evspatfil(varargin) % r = fast_evspatfil(varargin) % % Spatially filters by projecting out a given set % of spatial eigenvectors as computed by fast_evfunc.m % % '$Id: fast_evspatfil.m,v 1.1 2003/03/04 20:47:38 greve Exp $' % version = '$Id: fast_evspatfil.m,v 1.1 2003/03/04 20:47:38 greve Exp $'; fp...
github
shayo/Planner-master
pons_cut_afd.m
.m
Planner-master/PublicLib/FreeSurfer/pons_cut_afd.m
3,959
utf_8
1201fb201efbe919d887fe93cda1a2ca
function [D]=pons_cut_adf(subject, th_pval) % For the subject "subject": computes the Dice coefficient D=2*Nab/(Na+Nb) % Na is the volume of the Cerebellum+Brain-stem obtrained trough the volume-based labeling % Nb is the volume "filled" obtained from the surface-based stream % Nab is the volume of th...
github
shayo/Planner-master
fast_svdfunctcvm.m
.m
Planner-master/PublicLib/FreeSurfer/fast_svdfunctcvm.m
20,625
utf_8
77873044065a4b711d56d24e52cb6d9b
function r = fast_svdfunctcvm(varargin) % r = fast_svdfunctcvm(varargin) % '$Id: fast_svdfunctcvm.m,v 1.2 2004/12/14 22:06:36 greve Exp $' version = '$Id: fast_svdfunctcvm.m,v 1.2 2004/12/14 22:06:36 greve Exp $' fprintf(1,'%s\n',version); r = 1; %% Print useage if there are no arguments %% if(nargin == 0) print_us...
github
shayo/Planner-master
subcortical_labeling_dir_afd.m
.m
Planner-master/PublicLib/FreeSurfer/subcortical_labeling_dir_afd.m
6,119
utf_8
b40c75509ba5d462d4613ce7093a5233
function [Dvol,I]=check_ROI_dir(Dirname, th_pval) % % For all the subjects in a directory: % check if the size of 20 ROIs is within the normal range % The 20 following ROIs are checked: Left-Lateral-Ventricle Right-Lateral-Ventricle % Left-Hippocampus Right-Hippocampus Left-Thalamus-Prop...
github
shayo/Planner-master
ribbon_dir_afd.m
.m
Planner-master/PublicLib/FreeSurfer/ribbon_dir_afd.m
8,907
utf_8
5772f05c0e4d556d299802a1e3333ac0
function [D, Isubj]=ribbon_dir_adf(dirname, th_pval) % For each subject in the directory "dirname": % Computes the Dice coefficients measuring the overlap of the % Cortical Ribbon volume computed % 1- from the subcortical labeling % 2- as the space between the white and the pial surface % %...
github
shayo/Planner-master
fmri_lddat2.m
.m
Planner-master/PublicLib/FreeSurfer/fmri_lddat2.m
3,136
utf_8
9f4fbaed4a9eca88575b0382d3e60df7
function hdrdat = fmri_lddat2(datfile) % % Load information and parameters from a data file into an hdrdata % structure. To replace fmri_lddat() % % datfile - (string) name of data file % % $Id: fmri_lddat2.m,v 1.1 2003/03/04 20:47:39 greve Exp $ if(nargin ~= 1) msg = 'Usage: hdrdat = fmri_lddat2(datfile)' qoe(ms...
github
shayo/Planner-master
imreadBF.m
.m
Planner-master/PublicLib/imreadBF/imreadBF.m
3,221
utf_8
1e19b13e5c0240cf62640e6cb4fb5d63
function [vol]=imreadBF(datname,zplanes,tframes,channel) %imreadBF(datname,zplanes,tframes,channel) %[vol]=imreadBF(datname,zplanes,tframes,channel) % %imports images using the BioFormats package %you can load multiple z and t slices at once, e.g. zplanes=[1 2 5] loads %first,second and fifth z-slice in a 3D-Stack % %...
github
shayo/Planner-master
fnMyPolygonModificationTool.m
.m
Planner-master/Core/fnMyPolygonModificationTool.m
7,259
utf_8
9b765e9c45efc8cdd9e2c17228f174e7
function [afX, afY] = fnMyPolygonModificationTool(hAxes, X,Y) apt2fArcLength= fnResampleArcLength2D([X(:),Y(:)], 2); %afCurvature = LineCurvature2D(apt2fArcLength); %figure;plot(afCurvature) afX = apt2fArcLength(:,1); afY = apt2fArcLength(:,2); bCancelled = false; hFig = get(hAxes,'parent'); strctSavedMouseHandles.m_...
github
shayo/Planner-master
fnMyXMLToStruct.m
.m
Planner-master/Core/fnMyXMLToStruct.m
3,354
utf_8
991de07f4f5f25da058dbcb445fb3691
function strctConfig = fnMyXMLToStruct(strXMLFile,bWarning) global g_bWarning if ~exist('bWarning','var') g_bWarning = true; end; strctRAW = xml2struct(strXMLFile); strctConfig = fnRecursiveParse(strctRAW,[],'strctConfig'); clear global g_bWarning return; function strctConfig = fnRecursiveParse(strctRAW,strctCo...
github
shayo/Planner-master
fnMyStructToXML.m
.m
Planner-master/Core/fnMyStructToXML.m
3,708
utf_8
434ee046f7537e73648c93b22b494fcd
function fnMyStructToXML(strctConfig, strFilename) hFileHandle = fopen(strFilename,'w+'); Depth = 0; fprintf(hFileHandle,'<Config>\n'); fnRecursivePrint(strctConfig, Depth, hFileHandle) fprintf(hFileHandle,'</Config>\n'); fclose(hFileHandle); return; function fnRecursivePrint(strctConfig, Depth, hFileHandle) acFieldN...
github
shayo/Planner-master
fnMyCameraToolBar.m
.m
Planner-master/Core/fnMyCameraToolBar.m
49,204
utf_8
e006e974f0fee5d51ce42a5ec8bd7b4b
function ret=fnMyCameraToolBar(varargin) %fnMyCameraToolBar Interactively manipulate camera. % fnMyCameraToolBar creates a new toolbar that enables interactive % manipulation of a scene's camera and light by dragging the % mouse on the figure window; the camera properties of the % current axes (gca) are affect...
github
shayo/Planner-master
savefig.m
.m
Planner-master/Core/savefig.m
13,376
utf_8
639de19dc6b76bcecf3adbb45acaef99
function savefig(fname, varargin) % Usage: savefig(filename, fighdl, options) % % Saves a pdf, eps, png, jpeg, and/or tiff of the contents of the fighandle's (or current) figure. % It saves an eps of the figure and the uses Ghostscript to convert to the other formats. % The result is a cropped, clean picture. There a...
github
shayo/Planner-master
LineCurvature2D.m
.m
Planner-master/Core/LineCurvature2D.m
4,069
utf_8
5d68750190861c373b2e3ee9972996e6
function k=LineCurvature2D(Vertices,Lines) % This function calculates the curvature of a 2D line. It first fits % polygons to the points. Then calculates the analytical curvature from % the polygons; % % k = LineCurvature2D(Vertices,Lines) % % inputs, % Vertices : A M x 2 list of line points. % (optional) % Li...
github
shayo/Planner-master
xml2struct.m
.m
Planner-master/Core/xml2struct.m
2,163
utf_8
89d5349cc31971f9e87b90624eac5df5
function theStruct = xml2struct(filename) % XML2STRUCT Convert an XML file into a MATLAB structure. % Copyright 2003-2007 The MathWorks, Inc. % $Revision: 1.1.4.3 $ $Date: 2007/06/04 21:04:28 $ % Based on an idea by Douglas M. Schwarz, Eastman Kodak Company try tree = xmlread(filename); catch error('B...
github
shayo/Planner-master
fnGramSchmidt.m
.m
Planner-master/Core/fnGramSchmidt.m
854
utf_8
7540fd161fd6d2837847f55f396e2ea2
function [afDirection1,afDirection2] = fnGramSchmidt(afDirection) afDirection = afDirection./norm(afDirection); afBase1 = zeros(size(afDirection)); [fDummy,iMinIndex] = min(abs(afDirection)); afBase1(iMinIndex) = 1; % Make sure the afDirection1 is orthogonal to afDirection afDirection1 = afBase1 - fnProjVOntoU(afDirec...
github
shayo/Planner-master
fnMeshLineIntersection.m
.m
Planner-master/Core/fnMeshLineIntersection.m
1,625
utf_8
dd6b10d77bc1dae6824276306fa2d317
function [aiIntersectingTriangles, apt3fIntersectionPoints,afDistanceFromP0] = fnMeshLineIntersection(strctMesh, P0,Dir) % Iterate over triangles. % per triangle, build the plane and check for plane-line intersection % (always exist). Check that the intersection point is inside the % triangle... iNumFaces = size(strctM...
github
shayo/Planner-master
fnPointPlaneDist.m
.m
Planner-master/Core/fnPointPlaneDist.m
211
utf_8
0e5c4a3d8f7abb8c565769e4200bc3f0
function fDist = fnPointPlaneDist(strctCrossSection, pt3fPoint) fD = -strctCrossSection.m_a2fM(1:3,3)' * strctCrossSection.m_a2fM(1:3,4); fDist = strctCrossSection.m_a2fM(1:3,3)' * pt3fPoint(1:3) +fD; return
github
shayo/Planner-master
fnMyErode.m
.m
Planner-master/Core/fnMyErode.m
83
utf_8
37d949a2e07dbac0d4d34b05097c0fdf
function a2iOutput=fnMyErode(a2iInput,fSize) a2iOutput = bwdist(~a2iInput)>fSize;
github
shayo/Planner-master
read_vrml.m
.m
Planner-master/Core/read_vrml.m
7,932
utf_8
33325d3b604a7c18e845f38c8748a70b
%/********************************************************************************* % FUNCTION NAME : read_vrml % AUTHOR : G. Akroyd % PURPOSE : reads a VRML or Inventor file and stores data points and connectivity % in arrays ready for drawing wireframe images. % % VARIABLES/PARAMETERS: % i/p fi...
github
wagner-lab/spm12w-master
spm12w_despike.m
.m
spm12w-master/spm12w/spm12w_despike.m
8,418
utf_8
6f3d205d55e2c8951162667dd6ebdf28
function spm12w_despike(varargin) % spm12w_despike(niifile, cut, dilate) % % Input % ----- % niifile : Full path to nifti file for despiking. Can accept .gz files. % % outfile : Name of nifti file for output of despiking. % % cut : Cut range for despiking [c1,c2] (default=[2.5,4]). % % c_order : Curve fit ...
github
wagner-lab/spm12w-master
spm12w.m
.m
spm12w-master/spm12w/spm12w.m
23,728
utf_8
b95dd535e426967f37ec178a62ebb585
function spm12w(varargin) % spm12w(stage, sids, para_file, parloop, parcores) % % Inputs % ------ % stage: String for the specific analysis stage desired. Supplying a stage % will override the gui and go directly to performing the analysis % stage. If stage requires a p & glm parameters file you must prov...
github
wagner-lab/spm12w-master
ps2pdf.m
.m
spm12w-master/spm12w/ps2pdf.m
16,801
utf_8
2c76fb4b27c37963d3ac4b6b77b25ee9
function ps2pdf(varargin) %PS2PDF Function to convert a PostScript file to PDF using Ghostscript % % Converts a postscript file into PDF. The resulting PDF file will contain % one page for each page defined in the postscript files, so a multi-page % postscript file, like those generated by using the '-append' option...
github
wagner-lab/spm12w-master
spm12w_designtool.m
.m
spm12w-master/spm12w/spm12w_designtool.m
38,115
utf_8
86d7e599663ebf511e346538bcc70653
function spm12w_designtool(varargin) % spm12w_glm_build('type','','des_file','') % % Inputs % ------ % type : Type of experiment design function to run. Options are 'search', % 'check' and 'build', (default = 'search'). % % des_file : File specifying the parameters for design development. % (...
github
rohitnandwani/belkin-energy-disaggregation-kaggle-master
untitled.m
.m
belkin-energy-disaggregation-kaggle-master/untitled.m
6,883
utf_8
8db17f38ff7ddd19f7b3220bd2d437bd
function varargout = untitled(varargin) % UNTITLED MATLAB code for untitled.fig % UNTITLED, by itself, creates a new UNTITLED or raises the existing % singleton*. % % H = UNTITLED returns the handle to a new UNTITLED or the handle to % the existing singleton*. % % UNTITLED('CALLBACK',hObject,ev...
github
rohitnandwani/belkin-energy-disaggregation-kaggle-master
cvEucdist.m
.m
belkin-energy-disaggregation-kaggle-master/cvEucdist.m
1,836
utf_8
747815f8e57aca75909505aaa8ec5f85
% cvEucdist - Euclidean distance % % Synopsis % [d] = cvEucdist(X, Y) % % Description % cvEucdist calculates a squared euclidean distance between X and Y. % % Inputs ([]s are optional) % (matrix) X D x N matrix where D is the dimension of vectors % and N is the number of vectors. % (m...
github
rohitnandwani/belkin-energy-disaggregation-kaggle-master
cvKnn.m
.m
belkin-energy-disaggregation-kaggle-master/cvKnn.m
3,555
utf_8
4c4cf229d5d4d1e538621050bd06fd8b
% cvKnn - K-Nearest Neighbor classification % % Synopsis % [Class] = cvKnn(X, Proto, ProtoClass, [K], [distFunc]) % % Description % K-Nearest Neighbor classification % % Inputs ([]s are optional) % (matrix) X D x N matrix representing column classifiee vectors % where D is the number of...
github
kolian1/lineLBP-master
imshift.m
.m
lineLBP-master/imshift.m
8,853
utf_8
4bd172d849aac7728d1306a4bb27482b
function outImg=imshift(inImg, shiftVec, varargin) %% function varargout=imshift(shiftVec,varargin) % Shifts input images, computing it via convolutions with shifted 2D delta function. % %% Syntax % [shiftImg]=imshift(shiftImg, shiftVec) % [shiftImg]=imshift(shiftImg, shiftVec, BoundaryOption) % %% Description % This f...
github
kolian1/lineLBP-master
tightHistImg.m
.m
lineLBP-master/tightHistImg.m
3,987
utf_8
47aca4b286726f9a474ab58a20868471
function [outImg, varargout]=tightHistImg(inImg, varargin) % isTight, minQuant, isChanWise, inMap, outMap %% tightHistImg % Improve contrast by making matrix/image histogram tight or uniformly distributed. % %% Syntax % outImg=tightHistImg(inImg, isTight, minQuant, isChanWise); % %% Description % The goal of this funct...
github
kolian1/lineLBP-master
lineFiltLBP.m
.m
lineLBP-master/lineFiltLBP.m
6,927
utf_8
fd6e2a5f595b8a67db0e41ca00d5f73d
function [varargout] = lineFiltLBP(inImg, nFiltDims, hLBP, isScale, targetClass) %% lineLBP % The function implements LLBP (Line Local Binary Pattern) analysis. % %% Syntax % lineLBP(inImg, nFiltDims, hLBP, isScale, targetClass); % LLBP = lineLBP(inImg, nFiltDims, hLBP, isScale, targetClass); % [LLBP, verticalLBP, h...
github
kolian1/lineLBP-master
pixelwiseLBP.m
.m
lineLBP-master/pixelwiseLBP.m
7,864
utf_8
f05cae4ee98ca533744613e7c6cc534e
function LBP= pixelwiseLBP(inImg, varargin) % isRotInv, isChanWiseRot, filtR %% pixelwiseLBP % The function implements LBP (Local Binary Pattern analysis). % %% Syntax % LBP= pixelwiseLBP(inImg); % %% Description % The LBP tests the relation between pixel and it's neighbors, encoding this relation into % a binary wo...
github
kolian1/lineLBP-master
lineShiftLBP.m
.m
lineLBP-master/lineShiftLBP.m
6,940
utf_8
9760a2aa87755aaaae058215ceb7cb93
function [varargout] = lineShiftLBP(inImg, nFiltDims, isScale, targetClass) %% lineLBP % The function implements LLBP (Line Local Binary Pattern) analysis. % %% Syntax % lineLBP(inImg, nFiltDims, hLBP, isScale, targetClass); % LLBP = lineLBP(inImg, nFiltDims, hLBP, isScale, targetClass); % [LLBP, verticalLBP, horizo...
github
OpenGP/htrack-master
PiecewiseRigidAlignment2D.m
.m
htrack-master/matlab/ik_alignment/PiecewiseRigidAlignment2D.m
7,963
utf_8
74f3e1e5f9c8cf50317f3b7e2c797c94
%========================================================================== % Dynamic 2D/3D Registration % Sofien Bouaziz and Andrea Tagliasacchi and Mark Pauly % % Copyright (C) 2013 LGG, EPFL %=========================================================================...
github
ydluo/qdyn-master
qdyn_okada_kernel.m
.m
qdyn-master/utils/kernel_calc/qdyn_okada_kernel.m
2,761
utf_8
7cc311b4a1ffa4abedd4869efd8f7d65
% qdyn_okada_kernel calculates Okada static stress kernels % The fault is decomposed into a mesh of rectangular elements % The kernels contain the shear and normal stresses on all elements % induced by unit slip on each element % % [Ks,Kn] = qdyn_okada_kernel(NN,mu,lambda,X,Y,Z,DIP,DX,DW,fault_type) % % INPUTS: % N...
github
ydluo/qdyn-master
sdof.m
.m
qdyn-master/utils/spring_block/sdof.m
2,076
utf_8
b84d3475958125c194a83a324d6ac303
% Non linear solver for 1-DOF: spring + radiation damping % with rate-and-state friction % Mu = Mu0 -a*ln(V1/V+1) + b*ln(Theta/Theta1+1) % dTheta/dT = 1-V*Theta/Dc % % Dimensionless ODE: % % dv/dt = [ - kappa*(v-1) - b/a *(1-v*theta)/(theta+icr) ] % /[ eta + 1/v/(1+icr*v) ] % dtheta/dt = 1-theta*v % % where...
github
ydluo/qdyn-master
Qdyn_read_ot.m
.m
qdyn-master/QSB/Qdyn_read_ot.m
465
utf_8
309c71bd47ba5be6b2a9d18ce24ac3f9
%--------Qdyn_read_ox_seq %--------read sequential ox output file % function d = Qdyn_read_ot(filename) dd.data=dlmread(filename,'',6,0); d.t=dd.data(:,1); d.locl=dd.data(:,2); d.cl=dd.data(:,3); d.p=dd.data(:,4); d.pdot=dd.data(:,5); d.vc=dd.data(:,6); d.thc=dd.data(:,7); d.omc=dd.data(:,8); d.tauc=dd.data(:,9); d.d...
github
ydluo/qdyn-master
Qdyn_read_ox_seq.m
.m
qdyn-master/QSB/Qdyn_read_ox_seq.m
495
utf_8
e981a7db85d2ef468a422532bcb10bc7
%--------Qdyn_read_ox_seq %--------read sequential ox output file % function d = Qdyn_read_ox_seq(filename) fid=fopen(filename); rline=fgetl(fid); rdat = sscanf(rline,'%f'); d.it=rdat(1); d.ivmax=rdat(2); d.n=rdat(3); d.t=rdat(4); dd.data = dlmread(filename,'',2,0); d.X=dd.data(:,1); d.Y=dd.data(:,2); d.Z=dd.data(:...
github
ydluo/qdyn-master
Qdyn_read_in.m
.m
qdyn-master/QSB/Qdyn_read_in.m
1,787
utf_8
bc687b96c99a78440f6f68df901be896
%--------Qdyn_read_in %--------read qdyn.in % function d = Qdyn_read_in() fid=fopen('qdyn.in'); rline=fgetl(fid); rdat = sscanf(rline,'%f'); d.MESHDIM=rdat(1); rline=fgetl(fid); rdat = sscanf(rline,'%f'); d.NX=rdat(1); d.NW=rdat(2); rline=fgetl(fid); rdat = sscanf(rline,'%f'); d.L=rdat(1); d.W=rdat(2); d.Z_CORNER=rda...
github
ydluo/qdyn-master
FSEM3D_snapshot.m
.m
qdyn-master/QSB/FSEM3D_snapshot.m
1,700
utf_8
1d11be738c4c98fb92e662e171df987b
%FSEM3D_SNAPSHOT reads fault data at a given time % % d = FSEM3D_snapshot(isnap, [dir, fault]) % % INPUTS isnap snapshot index, as in Snapshot*.bin file names % dir ["."] directory containing the SPECFEM3D output data Snapshot*.bin % fault [1] fault id % % OUTPUTS d structure containing fault fields: % X,Y,Z faul...
github
ydluo/qdyn-master
TabKernelFiniteFlt.m
.m
qdyn-master/src/TabKernelFiniteFlt.m
1,573
utf_8
4c75575e185c3ba4a1f10bfdd6d6e43b
% I = TabKernelFiniteFlt(nmax,name) % % PURPOSE: Tabulate the correction term of the static kernel for a finite fault % For fault quasistatic and quasidynamic simulations % this needs to be done only once, with a large nmax. % Then you can just read/load the output files. % % INPUT: nmax nb of tabulated values ...
github
ydluo/qdyn-master
read_qdyn_out_Octave.m
.m
qdyn-master/src/read_qdyn_out_Octave.m
1,104
utf_8
1115689e6fee595da90f955ef06f0d87
% for Octave (by Martijn van den Ende, m.p.a.vandenende@uu.nl, Oct 30 2014) function [ot,ox] = read_qdyn_out_Octave(namet,namex) fileID = fopen(namet); result = textscan(fileID, '%f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f', 'Delimiter', ',', 'HeaderLines', 6); fclose(fileID); ot.t = result(1){1,1...
github
ydluo/qdyn-master
qdyn.m
.m
qdyn-master/src/qdyn.m
26,626
utf_8
468a59450779c079397be7e27977d751
% QDYN Quasi-dynamic earthquake cycles on a fault embedded in a % homogeneous, linear, isotropic elastic medium. % This is a Matlab wrapper for the Fortran code qdyn.f90 % Features: % + rate-and-state friction coefficient % Mu(V,Theta) = Muss + a*ln(V/Vss) + b*ln(Theta/Thetass) % or...
github
jtittelfitz/source-classification-master
flip.m
.m
source-classification-master/flip.m
109
utf_8
10b2e2b7efb03cdbac1b5e17bc8760d4
%% %% for compatibility with older versions of matlab %% function b = flip(a,j) b = flipdim(a,j); end
github
jtittelfitz/source-classification-master
generic_classifier.m
.m
source-classification-master/generic_classifier.m
12,299
UNKNOWN
68d775a8359f1dce062bf20f335c23c1
% % %� CMAP, Ecole Polytechnique %contributors: Joan Bruna and St�phane Mallat (2010) %bruna@cmap.polytechnique.fr % %This software is a computer program whose purpose is to implement %an image classification architecture based on the Scattering Transform. % %This software is governed by the CeCILL license under Fren...
github
jtittelfitz/source-classification-master
retrieve_train_data.m
.m
source-classification-master/retrieve_train_data.m
2,642
UNKNOWN
0951ebde7984e868a292186a1c066732
% % Load the training data for the approximate speed source identification % problem. The machine learning components of this software package are % from the Scattering Transform package by Burna and Mallat; see original % license below. % % % %� CMAP, Ecole Polytechnique %contributors: Joan Bruna and St�phane Mallat ...
github
jackoalan/audacity-master
sndfile_save.m
.m
audacity-master/lib-src/libsndfile/Octave/sndfile_save.m
1,595
utf_8
e111c414a56ad9be6860d082f0de0cca
## Copyright (C) 2002-2011 Erik de Castro Lopo ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2, or (at your option) ## any later version. ## ## This program is distribute...
github
jackoalan/audacity-master
sndfile_play.m
.m
audacity-master/lib-src/libsndfile/Octave/sndfile_play.m
1,558
utf_8
08c37ba08d4a75136216b4c844420b00
## Copyright (C) 2002-2011 Erik de Castro Lopo ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2, or (at your option) ## any later version. ## ## This program is distribute...
github
jackoalan/audacity-master
sndfile_load.m
.m
audacity-master/lib-src/libsndfile/Octave/sndfile_load.m
1,483
utf_8
06ed17568a7d51c3e166c6907a5e6ba9
## Copyright (C) 2002-2011 Erik de Castro Lopo ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2, or (at your option) ## any later version. ## ## This program is distribute...
github
davidnbresch/climada_advanced-master
climada_event_damage_data_tc_viz.m
.m
climada_advanced-master/code/climada_event_damage_data_tc_viz.m
44,669
utf_8
7bbb14abd4082baa43b965940b806cb6
function hazard=climada_event_damage_data_tc_viz(tc_track,entity,check_mode,params,segment_i) % climada tc animation % MODULE: % core % NAME: % climada_event_damage_data_tc_viz % PURPOSE: % The FAST version of climada_event_damage_data_tc. See also % climada_event_damage_data_tc for some special cases. ...
github
davidnbresch/climada_advanced-master
mrio_direct_risk_calc.m
.m
climada_advanced-master/code/mrio_economics/mrio_direct_risk_calc.m
20,489
utf_8
e40235135fe66f6350c25ace1d2be4a6
function IO_YDS = mrio_direct_risk_calc(climada_mriot, aggregated_mriot, params) % uncomment to run as function % mrio direct risk ralc % MODULE: % advanced % NAME: % mrio_direct_risk_calc % PURPOSE: % given an encoded entity per economic sector (assets and damage functions) % and a hazard event set, c...
github
davidnbresch/climada_advanced-master
mrio_read_table.m
.m
climada_advanced-master/code/mrio_economics/mrio_read_table.m
43,027
utf_8
2e4ea99e49ad84a13fc80d1fdab560db
function [climada_mriot, mriot_save_file] = mrio_read_table(mriot_file, table_flag, force_read) % mrio read table % MODULE: % climada_advanced % NAME: % mrio_read_table % PURPOSE: % Reads data from a provided mrio table (mriot) into a climada mriot % struct. Currently made to work with EXIOBASE (industry-by-ind...
github
davidnbresch/climada_advanced-master
mrio_aggregate_table.m
.m
climada_advanced-master/code/mrio_economics/mrio_aggregate_table.m
31,938
utf_8
e838584350621481afc36b746d1068cd
function [aggregated_mriot, climada_mriot] = mrio_aggregate_table(climada_mriot, full_aggregation_flag, RoW_flag) % mrio aggregate table % MODULE: % climada_advanced % NAME: % mrio_aggregate_table % PURPOSE: % Transforms a full climada mrio table struct (usually "climada_mriot") into an aggregated % table tha...
github
davidnbresch/climada_advanced-master
climada_adaptation_graph.m
.m
climada_advanced-master/code/ECA_graphics/climada_adaptation_graph.m
8,210
utf_8
019f89f07ecfe76e73b7a6f84564cfe0
function fig = climada_adaptation_graph(ECA_adaptation, case_i, digits) global climada_global if ~climada_init_vars, return; end % poor man's version to check arguments if ~exist('ECA_adaptation' ,'var'), ECA_adaptation = []; end if ~exist('case_i' ,'var'), case_i = []; end if ~exist('dig...
github
davidnbresch/climada_advanced-master
climada_waterfall_graph_special_tanzania.m
.m
climada_advanced-master/code/ECA_graphics/climada_waterfall_graph_special_tanzania.m
9,755
utf_8
187fb9a2870f8d774277c0c6832d4604
function fig = climada_waterfall_graph_special_tanzania(ECA_studies, case_i, digits) % waterfall figure, expected damage for specified return period for % - today, % - increase from economic growth, % - increase from high climate change, total expected damage 2030 % for the three EDS quoted above % NAME: % ...
github
davidnbresch/climada_advanced-master
climada_adaptation_graph_upsidedown.m
.m
climada_advanced-master/code/ECA_graphics/climada_adaptation_graph_upsidedown.m
10,921
utf_8
b062af53bc34a47d17f5b26f2b92d31f
function fig = climada_adaptation_graph_upsidedown(ECA_adaptation, case_i, digits) global climada_global if ~climada_init_vars, return; end % poor man's version to check arguments if ~exist('ECA_adaptation' ,'var'), ECA_adaptation = []; end if ~exist('case_i' ,'var'), case_i = []; end if ...
github
davidnbresch/climada_advanced-master
climada_waterfall_graph_special.m
.m
climada_advanced-master/code/ECA_graphics/climada_waterfall_graph_special.m
9,715
utf_8
6917ff8c75abb10c38255efaeaa97edc
function fig = climada_waterfall_graph_special(ECA_studies, case_i, digits) % waterfall figure, expected damage for specified return period for % - today, % - increase from economic growth, % - increase from high climate change, total expected damage 2030 % for the three EDS quoted above % NAME: % climada...
github
davidnbresch/climada_advanced-master
climada_waterfall_graph_special_NY.m
.m
climada_advanced-master/code/ECA_graphics/climada_waterfall_graph_special_NY.m
10,101
utf_8
5482f25deb212912469fea499d2f4c5a
function fig = climada_waterfall_graph_special_NY(ECA_studies, case_i, digits) % waterfall figure, expected damage for specified return period for % - today, % - increase from economic growth, % - increase from high climate change, total expected damage 2030 % for the three EDS quoted above % NAME: % clim...
github
davidnbresch/climada_advanced-master
climada_adaptation_graph_new.m
.m
climada_advanced-master/code/ECA_graphics/climada_adaptation_graph_new.m
10,957
utf_8
9bfd27b474c7f309315b66b52f9d3557
function fig = climada_adaptation_graph_new(ECA_adaptation, case_i, digits) global climada_global if ~climada_init_vars, return; end % poor man's version to check arguments if ~exist('ECA_adaptation' ,'var'), ECA_adaptation = []; end if ~exist('case_i' ,'var'), case_i = []; end if ~exist(...
github
davidnbresch/climada_advanced-master
axescenter.m
.m
climada_advanced-master/code/ECA_graphics/axescenter.m
10,269
utf_8
9237fd2748de8c0344e91357fae37d41
function [] = axescenter(ax) %AXESCENTER locates axes in the center instead of at the edges. % AXESCENTER(AX) puts axes in the center of axes AX. If AX is not % supplied, the current axes is assumed. Many of the standard properties % manipulated through the command line will also work when the axes are in % the ...
github
davidnbresch/climada_advanced-master
climada_adaptation_graph_damage.m
.m
climada_advanced-master/code/ECA_graphics/climada_adaptation_graph_damage.m
10,843
utf_8
137744b1d7133b141f1007ae71b92d10
function fig = climada_adaptation_graph_damage(ECA_adaptation, case_i, digits) global climada_global if ~climada_init_vars, return; end % poor man's version to check arguments if ~exist('ECA_adaptation' ,'var'), ECA_adaptation = []; end if ~exist('case_i' ,'var'), case_i = []; end if ~exi...
github
wanglimin/PRML-master
mixMnEm.m
.m
PRML-master/chapter09/mixMnEm.m
1,410
utf_8
cb006b39049e0ff55bb04fb080efb4af
function [label, model, llh] = mixMnEm(X, k) % Perform EM algorithm for fitting the multinomial mixture model. % X: d x n data matrix % init: k (1 x 1) or label (1 x n, 1<=label(i)<=k) or center (d x k) % Written by Michael Chen (sth4nth@gmail.com). %% initialization fprintf('EM for mixture model: running ......
github
wanglimin/PRML-master
mixGaussEm.m
.m
PRML-master/chapter09/mixGaussEm.m
3,138
utf_8
ea45d9969e3c175c97742e5e1ce487c7
function [label, model, llh] = mixGaussEm(X, init) % Perform EM algorithm for fitting the Gaussian mixture model. % X: d x n data matrix % init: k (1 x 1) or label (1 x n, 1<=label(i)<=k) or center (d x k) % Written by Michael Chen (sth4nth@gmail.com). %% initialization fprintf('EM for Gaussian mixture: runni...
github
wanglimin/PRML-master
mixBernoulliEm.m
.m
PRML-master/chapter09/mixBernoulliEm.m
1,320
utf_8
af2c9bf17ed818ac5bef818b96e612dd
function [label, model, llh] = mixBernoulliEm(X, k) % Perform EM algorithm for fitting the Bernoulli mixture model. % X: d x n data matrix % init: k (1 x 1) or label (1 x n, 1<=label(i)<=k) or center (d x k) % Written by Michael Chen (sth4nth@gmail.com). %% initialization fprintf('EM for mixture model: runnin...
github
wanglimin/PRML-master
mixLogit.m
.m
PRML-master/chapter14/mixLogit.m
1,246
utf_8
bb492830472e1fd78ae03538f18ece22
function [model, llh] = mixLogit(X, t, k) % mixture of logistic regression model n = size(X,2); X = [X; ones(1,n)]; d = size(X,1); z = ceil(k*rand(1,n)); R = full(sparse(1:n,z,1,n,k,n)); % n x k W = zeros(d,k); w0 = zeros(1,k); tol = 1e-6; maxiter = 100; llh = -inf(1,maxiter); converged = false; iter = ...
github
wanglimin/PRML-master
classLogitMul.m
.m
PRML-master/chapter04/classLogitMul.m
1,935
utf_8
a96ae028da112f63209dc1d6f553b7a2
function [model, llh] = classLogitMul(X, t, lambda, method) % logistic regression for multiclass problem (Multinomial likelihood) if nargin < 4 method = 1; end if nargin < 3 lambda = 1e-4; end X = [X; ones(1,size(X,2))]; if method == 1 [W, llh] = NewtonSolver(X, t, lambda); else [W, llh] = blockNewto...
github
wanglimin/PRML-master
mixGaussVb.m
.m
PRML-master/chapter10/mixGaussVb.m
5,547
utf_8
89d7d4b89ffe28bcb43157b4182bc3f8
function [label, model, L] = mixGaussVb(X, init, prior) % Perform variational Bayesian inference for Gaussian mixture. % X: d x n data matrix % init: k (1 x 1) or label (1 x n, 1<=label(i)<=k) or center (d x k) % Reference: Pattern Recognition and Machine Learning by Christopher M. Bishop (P.474) % Written by ...
github
Hom-Wang/MATLAB-master
main.m
.m
MATLAB-master/gui/progressBar/main.m
565
utf_8
3f2ed7b7bd079c80459253634a7faa43
function main() % start progressBar_gui progressBar_gui(); % test progressBar_gui for progress = 1 : 100 setProgressBar(progress); pause(0.1); end end function setProgressBar( progress ) global myProgressBar index = fix((progress - 1) / 10) + 1; for i = 1 : 10 if i > index ...
github
Hom-Wang/MATLAB-master
progressBar_gui.m
.m
MATLAB-master/gui/progressBar/progressBar_gui.m
1,605
utf_8
ea972dd475233cd783f464135b50c86a
function varargout = progressBar_gui(varargin) % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @progressBar_gui_OpeningFcn, ... 'gui_OutputFcn...
github
Hom-Wang/MATLAB-master
pathCreater2D.m
.m
MATLAB-master/pathCreater/pathCreater2D.m
2,072
utf_8
9241194809b40c01ef7850f9bca95c58
% pos x1 x2 x3 ... dxn % y1 y2 y3 ... dyn % vmax --- v2 v3 ... vn % --- a2 a3 ... an % dt dt %{ cpath = pathCreater(pos, vmax, dt); pos = cpath(1:2, :); vel = cpath(3:4, :); acc = cpath(5:6, :); head = cpath(7, :); time = cpath(8, :); %} function cpath = pathCreater2D( pos, vmax, dt )...
github
Hom-Wang/MATLAB-master
kGifConv.m
.m
MATLAB-master/cov2GIF/kGifConv.m
903
utf_8
e4a3b06840763347bd4713a9b37845c2
classdef kGifConv < handle properties (SetAccess = public) filename = 'k.gif'; rgbColors = 128; dt = 0.2; end properties (SetAccess = private) frames = getframe(1); count = 0; end methods function kgif = kGifConv( filename ) kgif.filename = filename; end function conv( kgif ) fo...
github
Hom-Wang/MATLAB-master
FibonacciLatticeGetMininumDistance.m
.m
MATLAB-master/fibonacciLattice/FibonacciLatticeGetMininumDistance.m
302
utf_8
e41b4c25ab7d62867ceda4564ca9e119
function varargout = FibonacciLatticeGetMininumDistance(p) num = size(p, 2); pd = zeros(1, num); for i = 1 : num v = p - p(:, i); v(:, i) = []; d = sqrt(sum(v.*v)); pd(i) = min(d); end varargout = {[max(pd), min(pd), max(pd) - min(pd)], pd}; end
github
Hom-Wang/MATLAB-master
FibonacciLatticeDisk.m
.m
MATLAB-master/fibonacciLattice/FibonacciLatticeDisk.m
259
utf_8
b0e50ac75201b9227b8be714199cf6e8
function varargout = FibonacciLatticeDisk(num) p = FibonacciLattice(num); theta = 2 * pi * p(1, :); radius = sqrt(p(2, :)); x = radius .* cos(theta); y = radius .* sin(theta); p = [x; y]; varargout = {p, [radius; theta]}; end
github
Hom-Wang/MATLAB-master
FibonacciLattice.m
.m
MATLAB-master/fibonacciLattice/FibonacciLattice.m
373
utf_8
26145c8676551e04e6592ac54983bb19
% reference % http://extremelearning.com.au/how-to-evenly-distribute-points-on-a-sphere-more-effectively-than-the-canonical-fibonacci-lattice/ function varargout = FibonacciLattice(num) goldenRatio = (sqrt(5) + 1) / 2; i = 0 : (num - 1); s = i ./ goldenRatio; x = s - fix(s); y = i ./ num; p ...
github
Hom-Wang/MATLAB-master
FibonacciLatticeSphere.m
.m
MATLAB-master/fibonacciLattice/FibonacciLatticeSphere.m
1,028
utf_8
52b687c394e0fab8f590616874923817
function varargout = FibonacciLatticeSphere(varargin) num = varargin{1}; if nargin > 1 mode = varargin{2}; else mode = 1; % default mode end [p, i] = FibonacciLattice(num); theta = 2 * pi * p(1, :); switch mode case 0 phi = acos(1 - 2 * p(2, :)); ...
github
ShaharKatz/Caffe-Data-Augmentation-master
classification_demo.m
.m
Caffe-Data-Augmentation-master/matlab/demo/classification_demo.m
5,412
utf_8
8f46deabe6cde287c4759f3bc8b7f819
function [scores, maxlabel] = classification_demo(im, use_gpu) % [scores, maxlabel] = classification_demo(im, use_gpu) % % Image classification demo using BVLC CaffeNet. % % IMPORTANT: before you run this demo, you should download BVLC CaffeNet % from Model Zoo (http://caffe.berkeleyvision.org/model_zoo.html) % % *****...
github
leinxx/SFCRF-master
plot_roc_train_test_valid.m
.m
SFCRF-master/plot_roc_train_test_valid.m
2,104
utf_8
4c709375803dae694067e9dfbd9e382d
%refine all images in the data folder %evaluation and run on all images with alpha = 0.5 % the alpha = 0.5 is selected by testing on 20101006. 0.5 produces slightly % better results than 0.1 and 0.8 function plot_roc_train_test_valid() fn_list = dir('data_croped/*xt.tif'); niter = 6; datadir = 'data_croped/'; disp('tra...
github
leinxx/SFCRF-master
pairwise_FSRFm.m
.m
SFCRF-master/pairwise_FSRFm.m
2,879
utf_8
87f6ff4d532e36b153cd09c5935a35a3
function Iout = pairwise_FSRFm(I,I_rgb,mask,Paramsptr) %RADARSAT-1 SCAN-SAR NARROW % double L = 4; %RADARSAT-1 SCAN-SAR WIDE L = 21; % ? maxP = 3.3516; %gets image dimensions dims = size(I); dimy = dims(1); dimx = dims(2); Ns = Paramsptr(1); ...
github
jlian/matlab-particle-tracker-master
animate.m
.m
matlab-particle-tracker-master/lib/animate.m
2,812
utf_8
6e3619615dc7a18542fb0cccb205082d
function animate(y, T, param) %% math % makes animation of all the particles L = 0.8636; %% graphics % set up first frame figure('Color', 'white'); set(gcf,'Position',[100 678 640 360]); %% animation sub plot subplot(1,5,1); % vertical line plot([0;0],[0 L],'k'); hold on par = plot(0,y(1,:),'sr','MarkerSize',3,'M...
github
jlian/matlab-particle-tracker-master
pdftops.m
.m
matlab-particle-tracker-master/lib/export_fig/pdftops.m
3,188
utf_8
eb7ee38e8e5d4b47aab7a7aa9d2208c4
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
jlian/matlab-particle-tracker-master
isolate_axes.m
.m
matlab-particle-tracker-master/lib/export_fig/isolate_axes.m
3,794
utf_8
b104d66dd4d36f35d275c4ef3d2f41cd
%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 objects % specified must all be in th...
github
jlian/matlab-particle-tracker-master
im2gif.m
.m
matlab-particle-tracker-master/lib/export_fig/im2gif.m
7,300
utf_8
e4050e3535a34ee0477cc422d9015035
%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
jlian/matlab-particle-tracker-master
pdf2eps.m
.m
matlab-particle-tracker-master/lib/export_fig/pdf2eps.m
1,525
utf_8
9b46432b206f5e1d2f60051a8fb16247
%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://www.foolabs.c...
github
jlian/matlab-particle-tracker-master
print2array.m
.m
matlab-particle-tracker-master/lib/export_fig/print2array.m
6,474
utf_8
4ead930267fe61c9b2a87139ee559dc8
%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 bcol] = print2array(...) % % This function outputs a bitmap image of the given fig...
github
jlian/matlab-particle-tracker-master
append_pdfs.m
.m
matlab-particle-tracker-master/lib/export_fig/append_pdfs.m
2,061
utf_8
9b03800f5871901f2aa9292d094ba0b2
%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
jlian/matlab-particle-tracker-master
using_hg2.m
.m
matlab-particle-tracker-master/lib/export_fig/using_hg2.m
376
utf_8
1caea78185e4f19e9fda588866a80c2f
%USING_HG2 Determine if the HG2 graphics pipeline is used % % tf = using_hg2(fig) % %IN: % fig - handle to the figure in question. % %OUT: % tf - boolean indicating whether the HG2 graphics pipeline is being used % (true) or not (false). function tf = using_hg2(fig) try tf = ~graphicsvers...
github
jlian/matlab-particle-tracker-master
eps2pdf.m
.m
matlab-particle-tracker-master/lib/export_fig/eps2pdf.m
5,149
utf_8
a76c49a222381133a3c337333bf6a983
%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, dest, crop, append, gray, quality) % % This function converts an eps file...
github
jlian/matlab-particle-tracker-master
copyfig.m
.m
matlab-particle-tracker-master/lib/export_fig/copyfig.m
846
utf_8
8f479727f76b878a077b76ca7afed48e
%COPYFIG Create a copy of a figure, without changing the figure % % Examples: % fh_new = copyfig(fh_old) % % This function will create a copy of a figure, but not change the figure, % as copyobj sometimes does, e.g. by changing legends. % % IN: % fh_old - The handle of the figure to be copied. Default: gc...