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
gpeyre/2015-SIGGRAPH-convolutional-ot-master
check_face_vertex.m
.m
2015-SIGGRAPH-convolutional-ot-master/code/toolbox/check_face_vertex.m
669
utf_8
c940a837f5afef7c3a7f7aed3aff9f7a
function [vertex,face] = check_face_vertex(vertex,face, options) % check_face_vertex - check that vertices and faces have the correct size % % [vertex,face] = check_face_vertex(vertex,face); % % Copyright (c) 2007 Gabriel Peyre vertex = check_size(vertex,2,4); face = check_size(face,3,4); %%%%%%%%%%%%%%%%%%%%%%%...
github
gpeyre/2015-SIGGRAPH-convolutional-ot-master
load_volume.m
.m
2015-SIGGRAPH-convolutional-ot-master/code/toolbox/load_volume.m
7,540
utf_8
7f6e9b7ddde675bc079739467fc889c4
function h = load_volume(name, n, options) % load_volume - load a 3-D data % % h = load_volume(name, n, options) % % Copyright (c) 2015 Gabriel Peyre options.null = 0; % helpers t = linspace(0,1,n); [X,Y,Z] = ndgrid(t,t,t); sphere = @(c,r)( (X-c(1)).^2 + (Y-c(2)).^2 + (Z-c(2)).^2 )<= r^2; cube = @(c,r) max( max...
github
gpeyre/2015-SIGGRAPH-convolutional-ot-master
meanValueCoordinates.m
.m
2015-SIGGRAPH-convolutional-ot-master/code/mesh_functions/meanValueCoordinates.m
2,132
utf_8
e1bfa7c482460c9aa0dbcfa7fe864584
function coords = meanValueCoordinates(mesh, x) % Implementation of Mean Value Coordinates for Closed Triangular Meshes % Tao Ju, Scott Schaefer, Joe Warren tol = 1e-4; nv = mesh.numVertices; nf = mesh.numTriangles; d = normv(bsxfun(@minus, mesh.vertices, x)); d1 = d(mesh.triangles(:,1),:); d2 = d(mesh.tr...
github
gpeyre/2015-SIGGRAPH-convolutional-ot-master
cotLaplacian.m
.m
2015-SIGGRAPH-convolutional-ot-master/code/mesh_functions/cotLaplacian.m
1,762
utf_8
c4fe99ab3dbfbceaeb73adf8552a04de
% Compute the cotangent weight Laplacian. % W is the symmetric cot Laplacian, and A are the area weights function [W A] = cotLaplacian(X, T) nv = size(X,1); nf = size(T,1); % Find orig edge lengths and angles L1 = normv(X(T(:,2),:)-X(T(:,3),:)); L2 = normv(X(T(:,1),:)-X(T(:,3),:)); L3 = normv(X(T(:,1),:)-X...
github
gpeyre/2015-SIGGRAPH-convolutional-ot-master
isolines.m
.m
2015-SIGGRAPH-convolutional-ot-master/code/mesh_functions/isolines.m
3,097
utf_8
d0bfae887d719fd445968b6804c8fe2e
function [LS,LD,I] = isolines(V,F,S,iso) % ISOLINES compute a list of isolines for a scalar field S defined on the % mesh (V,F) % % [LS,LD,I] = isolines(V,F,S,iso) % % Inputs: % V #V by dim list of vertex positions % F #F by 3 list of triangle indices % S #V list of scalar values defined on ...
github
gpeyre/2015-SIGGRAPH-convolutional-ot-master
blurAnisotropic.m
.m
2015-SIGGRAPH-convolutional-ot-master/code/blur_functions/blurAnisotropic.m
1,334
utf_8
8b4442e13785c51e0677fa71bcc31be9
function [Blur, Delta,Grad] = blurAnisotropic(M, options) % blurAnisotropic - load anisotropic heat kernel % % [Blur, Delta, Grad] = blurAnisotropic(H, t, filtIter, options); % % H is an (N,N,2,2) representing the 2D Riemannian manifold. % % Blur(u,t,filtIter) iterated filtIter times % u = (Id + t*(Delta))...
github
m13253/wavtool-yawu-master
sndfile_save.m
.m
wavtool-yawu-master/lib/libsndfile-1.0.25/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
m13253/wavtool-yawu-master
sndfile_play.m
.m
wavtool-yawu-master/lib/libsndfile-1.0.25/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
m13253/wavtool-yawu-master
sndfile_load.m
.m
wavtool-yawu-master/lib/libsndfile-1.0.25/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
McStasMcXtrace/McCode-master
mcplot.m
.m
McCode-master/tools/Legacy-Perl/lib/tools/matlab/mcplot.m
38,467
utf_8
2e90017b84a9e47d0b36705c5f25ab53
function data = mcplot(varargin) % mcplot: plot a McCode simulation result % data = mcplot(filename, ...) % % This function displays a McCode simulation result a single window with % subplots. It also returns the McStas simulation structures. % It may import both McCode and Matlab format data sets. % % input: % file...
github
McStasMcXtrace/McCode-master
mcdisplay.m
.m
McCode-master/tools/Legacy-Perl/lib/tools/matlab/mcdisplay.m
6,333
UNKNOWN
63ea466a7ef5ca17d1af51bdc061ff15
function mcdisplay(varargin) % % mcdisplay.m: % % Implementation of matlab functions for mcdisplay online plotting. % % Copyright 2003 Peter Willendrup, RIS�national laboratory % % Covers also the scripts % PlotInstrument.m % wait.m % CheckNeutNumber.m % ReshapeTransform.m % CheckTimeout.m % resume.m % % Written by: P....
github
McStasMcXtrace/McCode-master
check_comp_tested.m
.m
McCode-master/tools/comp-test/check_comp_tested.m
2,379
utf_8
9ba35fc621be1d4a3b732ce49e0decb8
function [not_tested, tested, instr_code, comps, instrs] = check_comp_tested(pw) % check_comp_tested: test components wether they are used in example instruments. % % Example: check_comp_tested McCode/mcstas-comps % % input: % pw: parent directory to be tested. Is searched recursively for .comp and .instr. % when...
github
McStasMcXtrace/McCode-master
mcplot.m
.m
McCode-master/tools/matlab/mcplot/mcplot.m
39,419
utf_8
bcab5a004f83c2f205ea0def5dbd419e
function data = mcplot(varargin) % mcplot: plot a McCode simulation result % data = mcplot(filename, ...) % % This function displays a McCode simulation result a single window with % subplots. It also returns the McStas simulation structures. % It may import both McCode and Matlab format data sets. % % input: % file...
github
McStasMcXtrace/McCode-master
mcdisplay.m
.m
McCode-master/tools/matlab/mcdisplay/mcdisplay.m
18,608
utf_8
cd8acc7c352ae7fb0b76bc25a131c4aa
function [comps, fig] = mcdisplay(varargin) % mcdisplay: runs the McStas/McXtrace model in --trace mode and capture the output % grab all MCDISPLAY lines, and render the TRACE information into a figure. % % mcdisplay instr % displays the given McCode model with its defaults/current parameters. % mcdisplay instr...
github
lawrennd/rca-master
visualiseNetwork.m
.m
rca-master/matlab/visualiseNetwork.m
5,678
utf_8
c06466c76c5f3fc227260e2dd87f6e67
function visualiseNetwork(S, varargin) % VISUALISENETWORK Visualise network graph. % % FORMAT % DESC Visualises the network represented by the connectivity matrix S. % An edge is drawn between nodes i and j, if S(i,j) is non-zero. % % ARG S : the connectivity matrix. % % The function also accepts a variable length inp...
github
lawrennd/rca-master
Grad_Ly_f_sigma2_n.m
.m
rca-master/matlab/Grad_Ly_f_sigma2_n.m
839
utf_8
d70e60346f4142b2ac1c07754c43f597
% GRAD_LY_SIGMA2_N Gradient of expected complete data log-likelihood wrt % sigma2_n. % % FORMAT % DESC Gradient of expected log N(Y|F,WWt + sigma2_n*I) wrt % sigma2_n. Expectation is wrt the posterior p(F|Y). % % SEEALSO : % % COPYRIGHT : Alfredo A. Kalaitzis, 2011 % % RCA function gradient = Grad_Ly_f_sigma2_n(sigma,...
github
lawrennd/rca-master
computeLowerBound.m
.m
rca-master/matlab/computeLowerBound.m
1,470
utf_8
411a8923715a5a60fc00bde12ebb04b9
% function [lb, Q, H] = computeLowerBound(Y, E_f, WWt_hat_old, Lambda_hat_old, sigma2_n, Lambda_hat) function [lb, Q, H] = computeLowerBound(Y, E_f, WWt_hat_old, Lambda_hat_old, sigma2_n, Lambda_hat, lambda) [n d] = size(Y); Cyy = Y' * Y / n; Cfy = E_f' * Y / n; Cff = E_f' * E_f / n; WWt_s2 = WWt_hat_old + sigma2_n*...
github
lawrennd/rca-master
skelModify_mod.m
.m
rca-master/matlab/skelModify_mod.m
1,331
utf_8
57046034238bdbe8c9a6ce574c5e231a
function skelModify(handle, channels, skel, padding, useConnections) % SKELMODIFY Update visualisation of skeleton data. % FORMAT % DESC updates a skeleton representation in a 3-D plot. % ARG handle : a vector of handles to the structure to be updated. % ARG channels : the channels to update the skeleton with. % ARG s...
github
lawrennd/rca-master
Ly_f.m
.m
rca-master/matlab/Ly_f.m
737
utf_8
793cd29dba16c690d4c927aecbf5f56e
% LY_F Negative of the expected complete data log-likelihood. % % FORMAT % DESC The negative expected log N(Y|F,WWt + sigma2_n*I). Expectation is wrt to the % posterior p(F|Y). % % SEEALSO : % % COPYRIGHT : Alfredo A. Kalaitzis, 2011, 2012 % % RCA function [L, g] = Ly_f(sigma, WWt, S, n) %% E_f|y[ N(Y|F,WW'+x*I) ] d =...
github
lawrennd/rca-master
importEVfile.m
.m
rca-master/matlab/importEVfile.m
5,301
utf_8
b8eb483eb4f292a3fbc307575c48b76e
function [voteMatrices, Y] = importEVfile(EVfileToRead, allCountryNames, direction) % function [year, givers, receivers, points] = importEUfile(EVfileToRead) % IMPORTEUFULE Imports data from the specified Eurovision votes file. % % FORMAT % DESC Converts data from the Eurovision file into a numeric matrix of the % vot...
github
MIPS/fiasco-l4re-master
ocamlc.m
.m
fiasco-l4re-master/src/l4/pkg/ocaml/contrib/man/ocamlc.m
17,567
utf_8
9995670f6f8589d62eb3c7125cf77e0e
\" $Id: ocamlc.m 9111 2008-10-29 12:38:52Z doligez $ .TH OCAMLC 1 .SH NAME ocamlc \- The Objective Caml bytecode compiler .SH SYNOPSIS .B ocamlc [ .I options ] .I filename ... .B ocamlc.opt [ .I options ] .I filename ... .SH DESCRIPTION The Objective Caml bytecode compiler .BR ocamlc (1) compiles Caml source file...
github
MIPS/fiasco-l4re-master
ocamlopt.m
.m
fiasco-l4re-master/src/l4/pkg/ocaml/contrib/man/ocamlopt.m
18,224
utf_8
ac5f890d6481fa72614b72cb861d3bdf
\" $Id: ocamlopt.m 9111 2008-10-29 12:38:52Z doligez $ .TH OCAMLOPT 1 .SH NAME ocamlopt \- The Objective Caml native-code compiler .SH SYNOPSIS .B ocamlopt [ .I options ] .IR filename \ ... .B ocamlopt.opt (same options) .SH DESCRIPTION The Objective Caml high-performance native-code compiler .BR ocamlopt (1) co...
github
MIPS/fiasco-l4re-master
ocamlcp.m
.m
fiasco-l4re-master/src/l4/pkg/ocaml/contrib/man/ocamlcp.m
2,070
utf_8
392dec389edfab4bce4e0b5d8bc52688
\" $Id: ocamlcp.m 9025 2008-09-15 14:05:30Z doligez $ .TH OCAMLCP 1 .SH NAME ocamlcp \- The Objective Caml profiling compiler .SH SYNOPSIS .B ocamlcp [ .I ocamlc options ] [ .BI \-p \ flags ] .I filename ... .SH DESCRIPTION The .B ocamlcp command is a front-end to .BR ocamlc (1) that instruments the source code, ad...
github
Andrewpensoneault/EKF-Parameter-Estimation-master
plotodesysPP.m
.m
EKF-Parameter-Estimation-master/OLS/PP/Deterministic OLS/plotodesysPP.m
384
utf_8
2645958e59ea80ffaf9f912a989decd3
function [approx] = plotodesysPP(theta,data,init) %Numerical Solutions options = []; [t,y]=ode45(@PPModel,data(:,1),init,options,theta); approx = y(:,2); % Plot deterministic system hold on plot(data(:,1),data(:,2),'k.',t,approx,'b-') legend('data','best fit model'); title('The PP Model') function ydot=PPModel(t,y,...
github
Andrewpensoneault/EKF-Parameter-Estimation-master
generate_olsdataPP.m
.m
EKF-Parameter-Estimation-master/OLS/PP/Deterministic OLS/generate_olsdataPP.m
950
utf_8
df4f6f61bab43493e8cdff545fe75b1b
function generate_olsdataPP close all clear all clc % Exact Parameters N=60; a=.5; b=.05*(45/N); c=(45/N)*.01; d=.2; %Initial Conditions x=.75*N; % initial prey y=.25*N; % initial predator tstop=100; % stopping time % Numerical Solutions parameters=[a b c d]; %vector of parameters options = []; [t,y]=ode45(@pp_o...
github
Andrewpensoneault/EKF-Parameter-Estimation-master
plotodesysPP.m
.m
EKF-Parameter-Estimation-master/OLS/PP/Stochastic OLS/plotodesysPP.m
384
utf_8
2645958e59ea80ffaf9f912a989decd3
function [approx] = plotodesysPP(theta,data,init) %Numerical Solutions options = []; [t,y]=ode45(@PPModel,data(:,1),init,options,theta); approx = y(:,2); % Plot deterministic system hold on plot(data(:,1),data(:,2),'k.',t,approx,'b-') legend('data','best fit model'); title('The PP Model') function ydot=PPModel(t,y,...
github
Andrewpensoneault/EKF-Parameter-Estimation-master
CostFunction_Stoch_PP.m
.m
EKF-Parameter-Estimation-master/OLS/PP/Stochastic OLS/CostFunction_Stoch_PP.m
373
utf_8
08f2278baf79b2f8daf90a33646f5a37
function [q] = CostFunction_Stoch_PP(data,tspan,y0,parameters) % Cost function [t1,y1]=ode45(@dydt_Stoch_PP,tspan,y0,[],parameters); w = y1(:,2); if length(w)==length(data) q = sum((data-w).^2); else w(length(w)+1:length(data))=0; q = sum((data-w).^2); end function zdot = dydt_Stoch_PP(t,I,a) zdot=[a(1)*I...
github
Andrewpensoneault/EKF-Parameter-Estimation-master
plotall.m
.m
EKF-Parameter-Estimation-master/OLS/PP/Stochastic OLS/plotall.m
397
utf_8
704ae88cbf1ef5e294840820a2618149
function [approx] = plotall(parameters,tspan,init,data) %Numerical Solutions [~,p]=size(parameters); figure for i=1:p options = []; [t,y]=ode45(@dydt_Stoch_PP,tspan,init,[],parameters(:,i)); approx = y; % Plot system hold on plot(t,data(:,i+1),'.',t,approx(:,2),'--') title('The PP Model') end function zdot = dydt_Stoch...
github
Andrewpensoneault/EKF-Parameter-Estimation-master
stochasticPP.m
.m
EKF-Parameter-Estimation-master/Kalman/Predator Prey/Stochastic60/stochasticPP.m
1,510
utf_8
f06220db033fd6cce03c18ae08197612
% Predator-Prey Stochastic Simulation % clear all % close all function [binX,binY] = stochasticPP(nsamp,tspan,init_vec,theta,seedval) a10 = theta(1); a12 = theta(2); a21 = theta(3); a20 = theta(4); pop = theta(5); %rand('seed',seed) %% Stochastic Model for n=1:nsamp rand('seed',seedval(n)) X=init_vec(1); ...
github
Andrewpensoneault/EKF-Parameter-Estimation-master
stochasticPP.m
.m
EKF-Parameter-Estimation-master/Kalman/Predator Prey/Stochastic600/stochasticPP.m
1,510
utf_8
f06220db033fd6cce03c18ae08197612
% Predator-Prey Stochastic Simulation % clear all % close all function [binX,binY] = stochasticPP(nsamp,tspan,init_vec,theta,seedval) a10 = theta(1); a12 = theta(2); a21 = theta(3); a20 = theta(4); pop = theta(5); %rand('seed',seed) %% Stochastic Model for n=1:nsamp rand('seed',seedval(n)) X=init_vec(1); ...
github
GYZHikari/UAV-Saliency-master
calculate_contrast.m
.m
UAV-Saliency-master/calculate_contrast.m
2,400
utf_8
714cb37e83f2879bbf62cd42f400c545
function C = calculate_contrast(pyramid, theta, mode) %---------------------------------------------------- % Copyright: Guangyu Zhong all rights reserved % Date:2015-04-22 % Author: Guangyu Zhong, Guangyuzhonghikari@gmail.com %---------------------------------------------------- % calculate_contrast is the func...
github
raghu330/My_Matlab-master
pdftops.m
.m
My_Matlab-master/export_fig/pdftops.m
3,068
utf_8
7a40ce10e58d68cd7eeda67992b993f3
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
raghu330/My_Matlab-master
isolate_axes.m
.m
My_Matlab-master/export_fig/isolate_axes.m
3,484
utf_8
3997011940bb5b146bf10032a9cec39a
%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
raghu330/My_Matlab-master
pdf2eps.m
.m
My_Matlab-master/export_fig/pdf2eps.m
1,524
utf_8
037f9109e96ab4385d13019a29db4639
%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
raghu330/My_Matlab-master
print2array.m
.m
My_Matlab-master/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
raghu330/My_Matlab-master
eps2pdf.m
.m
My_Matlab-master/export_fig/eps2pdf.m
5,151
utf_8
b356d73460fdebe8ef6fa428d5b2c125
%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
raghu330/My_Matlab-master
copyfig.m
.m
My_Matlab-master/export_fig/copyfig.m
846
utf_8
289162022c603c9e11a52b6d56329188
%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...
github
raghu330/My_Matlab-master
user_string.m
.m
My_Matlab-master/export_fig/user_string.m
2,462
utf_8
dd1a7fa5b4f2be6320fc2538737a2f3e
%USER_STRING Get/set a user specific string % % Examples: % string = user_string(string_name) % saved = user_string(string_name, new_string) % % Function to get and set a string in a system or user specific file. This % enables, for example, system specific paths to binaries to be saved. % % IN: % string_name - ...
github
raghu330/My_Matlab-master
export_fig.m
.m
My_Matlab-master/export_fig/export_fig.m
29,829
utf_8
e148a5b614ce2226be691f291726feb2
%EXPORT_FIG Exports figures suitable for publication % % Examples: % im = export_fig % [im alpha] = export_fig % export_fig filename % export_fig filename -format1 -format2 % export_fig ... -nocrop % export_fig ... -transparent % export_fig ... -native % export_fig ... -m<val> % export_fig...
github
raghu330/My_Matlab-master
ghostscript.m
.m
My_Matlab-master/export_fig/ghostscript.m
4,342
utf_8
0be326f9358200c733989260a0649af9
%GHOSTSCRIPT Calls a local GhostScript executable with the input command % % Example: % [status result] = ghostscript(cmd) % % Attempts to locate a ghostscript executable, finally asking the user to % specify the directory ghostcript was installed into. The resulting path % is stored for future reference. % ...
github
raghu330/My_Matlab-master
print2eps.m
.m
My_Matlab-master/export_fig/print2eps.m
7,809
utf_8
7c4a232dc6574c7702a7550ebd0d6e44
%PRINT2EPS Prints figures to eps with improved line styles % % Examples: % print2eps filename % print2eps(filename, fig_handle) % print2eps(filename, fig_handle, options) % % This function saves a figure as an eps file, with two improvements over % MATLAB's print command. First, it improves the line styl...
github
raghu330/My_Matlab-master
ge_surf.m
.m
My_Matlab-master/utilities/googleearth/ge_surf.m
6,264
utf_8
7bd1afb0c2af44b00c12c1bf0ffb0575
function kmlStr = ge_surf(x,y,z,varargin) % % ge_surf(x,y,z,varargin) % Reference page in help browser: % <a href="matlab:web(fullfile(ge_root,'html','ge_surf.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a>...
github
raghu330/My_Matlab-master
ge_contourf.m
.m
My_Matlab-master/utilities/googleearth/ge_contourf.m
10,831
utf_8
570f666a525cbe1a1f494e771a034dea
function varargout = ge_contourf(x,y,z,varargin) % Reference page in help browser: % % <a href="matlab:web(fullfile(ge_root,'html','ge_contourf.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a> % ...
github
raghu330/My_Matlab-master
ge_imagesc_old.m
.m
My_Matlab-master/utilities/googleearth/ge_imagesc_old.m
6,048
utf_8
3d0232025f6714eb103a3697c5e545dd
function [kmlStr] = ge_imagesc_old(x,y,data,varargin) % Reference page in help browser: % % <a href="matlab:web(fullfile(ge_root,'html','ge_imagesc_old.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a> ...
github
raghu330/My_Matlab-master
ge_contourf_old.m
.m
My_Matlab-master/utilities/googleearth/ge_contourf_old.m
6,035
utf_8
4e91c3c41e86030453c709cb8111c767
function [output] = ge_contourf_old(x,y,data,varargin ) % Reference page in help browser: % % <a href="matlab:web(fullfile(ge_root,'html','ge_contourf_old.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a...
github
raghu330/My_Matlab-master
authoptions.m
.m
My_Matlab-master/utilities/googleearth/authoptions.m
22,211
utf_8
3139206efe654b44a6cadbbca009f129
function [AuthorizedOptions] = authoptions( filename ) %% all available options to each function switch filename case {'ge_axes' } AuthorizedOptions = {'altitudeMode',... 'axesOrigin',... 'axesType',... ...
github
raghu330/My_Matlab-master
ge_point_new.m
.m
My_Matlab-master/utilities/googleearth/ge_point_new.m
8,619
utf_8
e4ff524a668fbea275a0e363b8290412
function [output] = ge_point(X,Y,Z,varargin) % Reference page in help browser: % % <a href="matlab:web(fullfile(ge_root,'html','ge_point.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a> % AuthorizedOptio...
github
raghu330/My_Matlab-master
ge_colorbar.m
.m
My_Matlab-master/utilities/googleearth/ge_colorbar.m
7,695
utf_8
31d2bfef15e985656eb942b91491736a
function [output] = ge_colorbar(x,y,data,varargin) % Reference page in help browser: % % <a href="matlab:web(fullfile(ge_root,'html','ge_colorbar.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a> % ...
github
raghu330/My_Matlab-master
ge_contour.m
.m
My_Matlab-master/utilities/googleearth/ge_contour.m
4,671
utf_8
ec4f05e597b5cf5f1577e2cebcda24d5
function [output] = ge_contour(x,y,data,varargin ) % Reference page in help browser: % % <a href="matlab:web(fullfile(ge_root,'html','ge_contour.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a> % ...
github
raghu330/My_Matlab-master
ge_point.m
.m
My_Matlab-master/utilities/googleearth/ge_point.m
6,752
utf_8
1036f9e88a582fbed4a803d0466b4efc
function [output] = ge_point(X,Y,Z,varargin) % Reference page in help browser: % % <a href="matlab:web(fullfile(ge_root,'html','ge_point.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a> % AuthorizedOptio...
github
raghu330/My_Matlab-master
ge_circle.m
.m
My_Matlab-master/utilities/googleearth/ge_circle.m
4,211
utf_8
d9e559d411c1e7494c2fb48a935af8b3
function output=ge_circle(X,Y,radius,varargin) % Reference page in help browser: % % <a href="matlab:web(fullfile(ge_root,'html','ge_circle.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a> % AuthorizedOpt...
github
raghu330/My_Matlab-master
ge_windbarb.m
.m
My_Matlab-master/utilities/googleearth/ge_windbarb.m
5,182
utf_8
3f16db5ca3a7c0a51c8d6f7785bf2f77
function kmlStr = ge_windbarb(X,Y,Z,U,V,varargin) % % Reference page in help browser: % <a href="matlab:web(fullfile(ge_root,'html','ge_windbarb.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a> % Aut...
github
raghu330/My_Matlab-master
old_ge_barbdaes.m
.m
My_Matlab-master/utilities/googleearth/old_ge_barbdaes.m
19,594
utf_8
847911dd8dd372128f0ef63b384cb0c7
function old_ge_barbdaes(varargin) AuthorizedOptions = authoptions( mfilename ); Default_barbColor = 'FFFFFF'; Default_barbAlpha = '80'; barbColor = Default_barbColor; barbAlpha = Default_barbAlpha; msgToScreen = 0; daeDir = ['daes',filesep]; parsepairs %script tha...
github
raghu330/My_Matlab-master
ge_cylinder.m
.m
My_Matlab-master/utilities/googleearth/ge_cylinder.m
4,297
utf_8
0cbf142b5e832653ee14680086ee7132
function output = ge_cylinder(X,Y,radius,height,varargin) % Reference page in help browser: % % <a href="matlab:web(fullfile(ge_root,'html','ge_cylinder.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a> % ...
github
raghu330/My_Matlab-master
ge_quiver3.m
.m
My_Matlab-master/utilities/googleearth/ge_quiver3.m
5,509
utf_8
7ac7e0bd8229190d3caf0819121c830d
function tag_str = ge_quiver3(XM,YM,ZM,UM,VM,WM,varargin) % Reference page in help browser: % % <a href="matlab:web(fullfile(ge_root,'html','ge_quiver3.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a> ...
github
raghu330/My_Matlab-master
ge_quiver.m
.m
My_Matlab-master/utilities/googleearth/ge_quiver.m
8,707
utf_8
b629d6b0277b0f8334675274dc4bd5f2
function output = ge_quiver(X,Y,DX,DY,varargin) % Reference page in help browser: % % <a href="matlab:web(fullfile(ge_root,'html','ge_quiver.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a> % Autho...
github
raghu330/My_Matlab-master
ge_barbdaes.m
.m
My_Matlab-master/utilities/googleearth/ge_barbdaes.m
19,415
utf_8
d35d2c20504dc3cabc709f67fbc9ab24
function ge_barbdaes(varargin) % Reference page in help browser: % % <a href="matlab:web(fullfile(ge_root,'html','ge_barbdaes.html'),'-helpbrowser')">link</a> to html documentation % <a href="matlab:web(fullfile(ge_root,'html','license.html'),'-helpbrowser')">show license statement</a> % AuthorizedOptions ...
github
raghu330/My_Matlab-master
demo_ge_overlay.m
.m
My_Matlab-master/utilities/googleearth/demo/demo_ge_overlay.m
1,724
utf_8
4c8d0a954b37c9a21e7e89572712567e
function demo_ge_overlay() filename = 'data/test'; frames = 20; xSize = 0.35; ySize = 0.3; xSizeUnits = 'fraction'; ySizeUnits = 'fraction'; tIndex = datenum(now); tVec = datevec(tIndex); tStart = datestr( tVec, 'yyyy-mm-ddTHH:MM:SSZ'); tStop = tStart; kml = ''; ...
github
raghu330/My_Matlab-master
m_proj.m
.m
My_Matlab-master/utilities/m_map/m_proj.m
5,598
utf_8
5b0d2d21bc291739ebbb28221ebe0923
function m_proj(proj,varargin) % M_PROJ Initializes map projections info, putting the result into a structure % % M_PROJ('set') tells you the current state % M_PROJ('get') gives you a list of all possibilities % M_PROJ('get','proj name') gives info about a projection in the % ...
github
raghu330/My_Matlab-master
m_hatch.m
.m
My_Matlab-master/utilities/m_map/m_hatch.m
7,086
utf_8
11dfe255c206043cda7659811c46bc7f
function [xi,yi,x,y]=m_hatch(lon,lat,varargin); % M_HATCH Draws hatched or speckled interiors to a patch % % M_HATCH(LON,LAT,STYL,ANGLE,STEP,...line parameters); % % INPUTS: % X,Y - vectors of points. % STYL - style of fill % ANGLE,STEP - parameters for style % % E.g. % % ...
github
raghu330/My_Matlab-master
m_grid.m
.m
My_Matlab-master/utilities/m_map/m_grid.m
25,474
utf_8
2b2e86dbebc1dd6e770b7e7cc3faf14e
function m_grid(varargin); % M_GRID make a grid on a map. % M_GRID('parameter','value',...) with any number (or no) % optional parameters is used to draw a lat/long grid for a % previously initialized map projection. % % The optional parameters allow the user % to control the look of ...
github
raghu330/My_Matlab-master
mp_utm.m
.m
My_Matlab-master/utilities/m_map/private/mp_utm.m
9,975
utf_8
db6f1fa33a82b1c63272e035cf3765f0
function [X,Y,vals,labI]=mp_utm(optn,varargin) % MP_UTM Universal Transverse Mercator projection % This function should not be used directly; instead it is % is accessed by various high-level functions named M_*. % mp_utm.m, Peter Lemmond (peter@whoi.edu) % created mp_utm.m 13Aug98 from mp_tmer...
github
raghu330/My_Matlab-master
mu_coast.m
.m
My_Matlab-master/utilities/m_map/private/mu_coast.m
22,075
utf_8
8464706bc7fd53ffa4839ca393001001
function [ncst,Area,k]=mu_coast(optn,varargin); % MU_COAST Add a coastline to a given map. % MU_COAST draw a coastline as either filled patches (slow) or % lines (fast) on a given projection. It uses a coastline database with % a resolution of about 1/4 degree. % % It is not meant to be...
github
raghu330/My_Matlab-master
mu_util.m
.m
My_Matlab-master/utilities/m_map/private/mu_util.m
12,382
utf_8
439830a73fabdaffdfed3d94fa113789
function varargout=mu_util(optn,varargin); % MU_UTIL Various utility routines % This function should not be used directly; instead it is % is accessed by other high- and low-level functions. % MU_UTIL is basically a driver for a number of lower-level routines collected % together for convenience. T...
github
raghu330/My_Matlab-master
clabel.m
.m
My_Matlab-master/utilities/m_map/private/clabel.m
16,795
utf_8
c817129bf75333f9fa8febc214f56aa7
function hh = clabel(cs,varargin) %CLABEL Contour plot elevation labels. % CLABEL(CS,H) adds height labels to the current contour % plot. The labels are rotated and inserted within the contour % lines. CS and H are the contour matrix output and object handle % outputs from CONTOUR, CONTOUR3, or CONTOURF. % % ...
github
raghu330/My_Matlab-master
ncdataset.m
.m
My_Matlab-master/utilities/nctoolbox/cdm/ncdataset.m
23,523
utf_8
f385ba00f40cc98ebbd3c146dac970ea
% NCDATASET Provide access to datasets accessable by the NetCDF 4 API % % Use as: % ds = ncdataset(dataref) % % Arguments: % dataref = A reference to a ncdataset that can be accessed by the NetCDF 4 % API. This includes local netcdf files, netcdf files on web servers % and OpenDAP URLs % % Return: % ...
github
raghu330/My_Matlab-master
arg2hash.m
.m
My_Matlab-master/utilities/nctoolbox/cdm/utilities/misc/arg2hash.m
242
utf_8
1bb6ee374e589d31a93d673131d8b65e
% ARG2HASH - Varargin to 2 by x cell hash function [cellout] = arg2hash(in) c = 1; for i = 1:2:length(in) cellout{c,1} = in{i}; cellout{c,2} = in{i+1}; c = c+1; end end
github
raghu330/My_Matlab-master
ncunits.m
.m
My_Matlab-master/utilities/nctoolbox/cdm/utilities/units/ncunits.m
2,958
utf_8
bc4c77a0fb61a9bfa2bd0e5f823efc6d
% NCUNITS - Function to do unit conversions using the ucar.units library in the Unidata netcdf-java % package. % % NCTOOLBOX (http://code.google.com/p/nctoolbox) % % Usage: converted_data = ncunits(data, 'm/s', 'cm/s'); % function converted = ncunits(unconverted, originalunits, newunits) % NCUNITS - Function to...
github
raghu330/My_Matlab-master
vsliceg.m
.m
My_Matlab-master/utilities/nctoolbox/cdm/utilities/slicing/vsliceg.m
6,679
utf_8
42eeaf4068981d56c8d83cfd535fba4e
function varargout = vsliceg(njData,njGrid,cx,cy, varargin) % VSLICEG: create a vertical slice along curve % % [X,Z,VDATA] = vsliceg(DATA,GRD,CX,CY) creates a vertical slice along % the coordinates COORDS. X and Z define the horizontal and vertical % positions. It is assumed that DATA and GRD have been returned...
github
raghu330/My_Matlab-master
modellook.m
.m
My_Matlab-master/utilities/nctoolbox/cdm/utilities/vis/modellook.m
9,375
utf_8
6be521a87447f886d3657f71ce96f0a5
% MODELLOOK - Infrastructure for quick model visualization. % % Useful to look at 2d, 3d, and 4d variables from gridded model netcdf files. % % Usage : >> modellook(daplink, datevec) % >> modellook(daplink, datenum) % % NCTOOLBOX (http://code.google.com/p/nctoolbox) % function [] = modellook(vararg...
github
raghu330/My_Matlab-master
exportfig.m
.m
My_Matlab-master/exportfig/exportfig.m
33,826
utf_8
e23c2da3e0d6fff7c7c65e76364d3d0e
function varargout = exportfig(varargin) %EXPORTFIG Export a figure. % EXPORTFIG(H, FILENAME) writes the figure H to FILENAME. H is % a figure handle and FILENAME is a string that specifies the % name of the output file. % % EXPORTFIG(H, FILENAME, OPTIONS) writes the figure H to FILENAME % with optio...
github
raghu330/My_Matlab-master
shoaling.m
.m
My_Matlab-master/SWIMS/shoaling.m
190
utf_8
bae4392bb058a71bf62a965020b79c2b
%shoaling coefficent function [Ho] = shoaling(H2,T,dep); g = 9.81; Co = g/(2*pi)*T; [k n c] = dispersion((2*pi)/T,dep); Cg2 = n*c; Ho = H2/sqrt(Co/(2*Cg2)); clear Co k n c Cg2
github
raghu330/My_Matlab-master
dispersion.m
.m
My_Matlab-master/SWIMS/dispersion.m
854
utf_8
9816034db9200240515815d0c349b16c
% dispersion solves the linear dispersion relation % given frequency, w = 2 pi/Period [1/sec], % and water depth, h [meters] the dispersion routine returns the % wavenumber, k = 2 pi/Wavelength [1/m], % n = ratio of group speed to phase speed, and % c = phase speed [m/s] % [k n c] = dispersion (w,h) function [k,n,c...
github
raghu330/My_Matlab-master
bandpass.m
.m
My_Matlab-master/SWIMS/bandpass.m
261
utf_8
942e6eda44ba112cfd865344c3052889
% function [x2] = bandpass(x,dt,fcutlow,fcuthigh) % function [x2] = bandpass(x,dt,fcutlow,fcuthigh) N = size(x,1); df = 1/(N*dt); f=[ 0:N/2 N/2-1:-1:1]'.*df; C = fft(x); ind = find(f>fcuthigh);C(ind,:)=0; ind = find(f<fcutlow);C(ind,:)=0; x2 = real(ifft(C));
github
raghu330/My_Matlab-master
extractFrameFromFigure.m
.m
My_Matlab-master/FEMA/extractFrameFromFigure.m
1,412
utf_8
34801d4521596785e9ee76df344222e9
%%%MAKE A SEPERATE FUNCTION function frame = extractFrameFromFigure(fig) % The renderer requires DPI units. Get the necessary conversion factor. pixelsperinch = get(0,'screenpixelsperinch'); % The easiest way to obtain the conversion is to switch to pixel units. % This provides robustness to whatever units th...
github
raghu330/My_Matlab-master
spec_sep.m
.m
My_Matlab-master/Extra_files/spec_sep.m
2,019
utf_8
137b62fc76e37a3398bc5cbc48993307
%Calculate the Spectrum of a time series %function [f,S,Hmo,fp] = spec (eta,dt,numwindows) % % % function [f,s,all_data,st,high_data,sh,low_data,sl,flow] = spec_sep(eta,dt,fpp) reclen = floor(length(eta)); df = 1/(reclen*dt);f=(1:reclen/2-1).*df; if size(eta,1)==1;ssmooth = zeros(reclen/2-1,1);ssmo...
github
raghu330/My_Matlab-master
spec.m
.m
My_Matlab-master/Extra_files/spec.m
951
utf_8
11b9d559a974a8aefeb9f6b7415b2b3a
%Calculate the Spectrum of a time series %function [f,S,Hmo,fp] = spec (eta,dt,numwindows) % % % function [f,s,Hmo,fp] = spec (eta,dt,numwindows) reclen = floor(length(eta)/numwindows); df = 1/(reclen*dt);f=(1:reclen/2-1).*df; if size(eta,1)==1;ssmooth = zeros(reclen/2-1,1); else ssmooth = zero...
github
raghu330/My_Matlab-master
testing_func.m
.m
My_Matlab-master/Extra_files/testing_func.m
108
utf_8
80a9704b69e2b9e68c698c68546d6951
function [ny] = fun(nx) ny = nx; end %=================== function [ny] = blah(nx) ny = nx + 1; end
github
raghu330/My_Matlab-master
polarcont.m
.m
My_Matlab-master/Extra_files/polarcont.m
1,578
utf_8
6850977f245fd0ab3cc77e9a2f7175d5
% POLARCONT Polar contour plot % % Richard Rieber % rrieber@gmail.com % April 4, 2007 % Updated June 15, 2007 % % function [C,h] = polarcont(r,theta,z,N,s) % % Purpose: This function creates polar contour plots on the current active % figure % % Inputs: o r - Radius vector of length m % ...
github
raghu330/My_Matlab-master
loadbin.m
.m
My_Matlab-master/Extra_files/loadbin.m
5,440
utf_8
7882293b94374b7303cb10205f330a42
function [x,deltaT,desc,units,fileInfo,fileDate,header,isText] = loadbin(fileName,silent) % Load MTS time series data file. % [x,deltaT,desc,units,fileInfo,fileDate,header,isText] = loadbin(fileName,silent) % % fileName : File name text. % silent : Silent error messages flag (optional) (if nonzero, an error % ...
github
raghu330/My_Matlab-master
get_alt_daily.m
.m
My_Matlab-master/Altimeter/get_alt_daily.m
2,758
utf_8
1efd83dd0bd7ea17288b50cec4c50f12
function get_alt_daily(date_start,date_end,coord,res) %read_alt_daily - reads GlobWave daily altimeter files and places it on % a grid % % Syntax: [sat_data] = read_alt_daily(date_start,date_end,coord) % % Inputs: % input1 - Description % input2 - Description % input3 - Description % % Outputs: ...
github
raghu330/My_Matlab-master
extractFrameFromFigure.m
.m
My_Matlab-master/Wis_plot/extractFrameFromFigure.m
1,412
utf_8
34801d4521596785e9ee76df344222e9
%%%MAKE A SEPERATE FUNCTION function frame = extractFrameFromFigure(fig) % The renderer requires DPI units. Get the necessary conversion factor. pixelsperinch = get(0,'screenpixelsperinch'); % The easiest way to obtain the conversion is to switch to pixel units. % This provides robustness to whatever units th...
github
raghu330/My_Matlab-master
ncdataset.m
.m
My_Matlab-master/nctoolbox/cdm/ncdataset.m
24,085
utf_8
f6d97fe4d813c97bb6b0516035ab63b3
% NCDATASET Provide access to datasets accessable by the NetCDF 4 API % % Use as: % ds = ncdataset(dataref) % % Arguments: % dataref = A reference to a ncdataset that can be accessed by the NetCDF 4 % API. This includes local netcdf files, netcdf files on web servers % and OpenDAP URLs % % Return: % ...
github
raghu330/My_Matlab-master
arg2hash.m
.m
My_Matlab-master/nctoolbox/cdm/utilities/misc/arg2hash.m
242
utf_8
1bb6ee374e589d31a93d673131d8b65e
% ARG2HASH - Varargin to 2 by x cell hash function [cellout] = arg2hash(in) c = 1; for i = 1:2:length(in) cellout{c,1} = in{i}; cellout{c,2} = in{i+1}; c = c+1; end end
github
raghu330/My_Matlab-master
sw_dist.m
.m
My_Matlab-master/nctoolbox/cdm/utilities/misc/sw_dist.m
3,213
utf_8
54df14282571f080695274dba932be97
function [dist,phaseangle] = sw_dist(lat,lon,units) % SW_DIST Distance between two lat,lon coordinates %=================================================================== % SW_DIST $Id: sw_dist.m,v 1.1 2003/12/12 04:23:22 pen078 Exp $ % Copyright (C) CSIRO, Phil Morgan & Steve Rintoul 1992. % % ...
github
raghu330/My_Matlab-master
ncunits.m
.m
My_Matlab-master/nctoolbox/cdm/utilities/units/ncunits.m
2,958
utf_8
bc4c77a0fb61a9bfa2bd0e5f823efc6d
% NCUNITS - Function to do unit conversions using the ucar.units library in the Unidata netcdf-java % package. % % NCTOOLBOX (http://code.google.com/p/nctoolbox) % % Usage: converted_data = ncunits(data, 'm/s', 'cm/s'); % function converted = ncunits(unconverted, originalunits, newunits) % NCUNITS - Function to...
github
raghu330/My_Matlab-master
vsliceg.m
.m
My_Matlab-master/nctoolbox/cdm/utilities/slicing/vsliceg.m
6,732
utf_8
24187d12975d7400e7741ab07c84fcfe
function varargout = vsliceg(njData,njGrid,cx,cy, varargin) % VSLICEG: create a vertical slice along curve % % [X,Z,VDATA] = vsliceg(DATA,GRD,CX,CY) creates a vertical slice along % the coordinates COORDS. X and Z define the horizontal and vertical % positions. It is assumed that DATA and GRD have been returned...
github
raghu330/My_Matlab-master
modellook.m
.m
My_Matlab-master/nctoolbox/cdm/utilities/vis/modellook.m
9,375
utf_8
6be521a87447f886d3657f71ce96f0a5
% MODELLOOK - Infrastructure for quick model visualization. % % Useful to look at 2d, 3d, and 4d variables from gridded model netcdf files. % % Usage : >> modellook(daplink, datevec) % >> modellook(daplink, datenum) % % NCTOOLBOX (http://code.google.com/p/nctoolbox) % function [] = modellook(vararg...
github
satoshi-hirose/MVPC_toolbox-master
convert_DICOM_to_NIFTI.m
.m
MVPC_toolbox-master/Preprocessing/convert_DICOM_to_NIFTI.m
7,261
utf_8
8de543a816a1845e5c2be60f3a1f43e5
% Convert DICOM file to NIFTI file % for all subjects, for all sessions and anatomical images. % % Input % MY_VAR % .load_dir % string. % .subnames_load % 1 x [Number of subjects] cell array. Each cell contains string. % .T1 % 1 x [Number of subjects] cell array. E...
github
satoshi-hirose/MVPC_toolbox-master
convert_DICOM_to_NIFTI filt.m
.m
MVPC_toolbox-master/Preprocessing/convert_DICOM_to_NIFTI filt.m
4,094
utf_8
f486856cdbded6bb611c34d461baa922
% Convert DICOM file to NIFTI file % for all subjects, for all sessions and anatomical images. % % Input % MY_VAR % .load_dir % string. % .subnames_load % 1 x [Number of subjects] cell array. Each cell contains string. % .T1 % 1 x [Number of subjects] cell array. E...
github
satoshi-hirose/MVPC_toolbox-master
my_spm_run.m
.m
MVPC_toolbox-master/Preprocessing/my_spm_run.m
16,302
utf_8
99160f399d22847c04df95d92b0743da
function my_spm_run(MY_VAR) % make SPM job & run it. for all subjects in MY_VAR.subnames % This script make many files in appropriate directories. % for detail, see descriptions in SPM toolbox. % % SPM batch files will be saved in MY_VAR.analyze_dir % input: % MY_VAR % .prefix 1 x 4 logical...
github
satoshi-hirose/MVPC_toolbox-master
mvpc_dicom_convert.m
.m
MVPC_toolbox-master/Preprocessing/mvpc_dicom_convert.m
1,904
utf_8
f044d2b05d31f70243848776d984b6d3
% Convert DICOM file to NIFTI file % DICOM files in a directory is converted to NIFTI files. % NIFTI files are separeted into subdirectories, following rule. % % Input % load_dir % string. % save_dir % string. % prefix % string. % % 2014.08.26 coded by SH (modified f...
github
satoshi-hirose/MVPC_toolbox-master
save_figures_results_extract.m
.m
MVPC_toolbox-master/Figure/save_figures_results_extract.m
9,279
utf_8
5e6ed0a0e54865a00e1ba86e5289064d
% Result extraction and combination for figures. function save_figures_results_extract(MY_VAR) %% Get ROI information from first subject. % Spatial ROI sp_ROI_dir = fullfile(MY_VAR.analyze_dir,MY_VAR.subnames{1},MY_VAR.decoding_dir,MY_VAR.spatialROIdir); Spatial_ROI = {}; sp = 0; while 1 sp = sp+1;...
github
satoshi-hirose/MVPC_toolbox-master
save_figures.m
.m
MVPC_toolbox-master/Figure/save_figures.m
282
utf_8
f621bc1de6e31d6a44fe4f8e23e7b412
% Run-level function for saving figures. % For details, please see descriptions about four sub-functions. function save_figures(MY_VAR) save_figures_results_extract(MY_VAR); save_figures_general_info(MY_VAR) save_figures_compare_decoders(MY_VAR) save_figures_compare_teROIs(MY_VAR)
github
satoshi-hirose/MVPC_toolbox-master
add_return.m
.m
MVPC_toolbox-master/Figure/add_return.m
792
utf_8
51187fccc488d694ecca4edef25913df
% Long string with single row is converted to % shorter multiple rows. % Convenient when adding description to Figure. % % Input % str: 1xN string. % str_length: maximum number of rows in output string (default:100). % % Output % str_new: nxstr_length string. % % If length(str)<str_length, this function do nothing ...
github
satoshi-hirose/MVPC_toolbox-master
save_figures_compare_decoders.m
.m
MVPC_toolbox-master/Figure/save_figures_compare_decoders.m
3,463
utf_8
d0d9ea8ed9519e86baf86482f789fa30
% 2010/June/3 SH % 2010/June/10 IN modified % 2010/June/11 SH function save_figures_compare_decoders(MY_VAR) load(fullfile(MY_VAR.figure_dir,'results_fig.mat')) for sp = 1:size(Spatial_ROI,1) for te = 1:size(Temporal_ROI,1) tmp = get(gcf,'Position'); set(gcf,'Position',[tmp(1:2) 800 800],'PaperType...
github
satoshi-hirose/MVPC_toolbox-master
save_figures_general_info.m
.m
MVPC_toolbox-master/Figure/save_figures_general_info.m
3,549
utf_8
f47fa58e6f43c0a0da7795e41c123241
%% General information function save_figures_general_info(MY_VAR) load(fullfile(MY_VAR.figure_dir,'results_fig.mat'), 'Spatial_ROI','Temporal_ROI', 'Method_info','Param_search') figure; tmp = get(gcf,'Position'); set(gcf,'Position',[tmp(1:2) 800 800],'PaperType','A4') set(gca,'Position',[0 0 1 1],'Visible','off') st...
github
satoshi-hirose/MVPC_toolbox-master
ROI_temporal.m
.m
MVPC_toolbox-master/ROI_setting/ROI_temporal.m
3,388
utf_8
4d7cea24397206a40ed91da87274bee2
% Define temporal ROI and set label % input: % MY_VAR % .analyze_dir string('/home/dcn/hirose/analyze/tapping_decoding/analysis_folder') % .to_dirn string('ROI_temporal') % .subnames 1 x N_sub cell array ({'US','SH','YS'}) % .psychdir string('psych') % .psych_results ...
github
satoshi-hirose/MVPC_toolbox-master
ROI_temporal_leave_two_out.m
.m
MVPC_toolbox-master/ROI_setting/ROI_temporal_leave_two_out.m
631
utf_8
d1853a3b13d72d1bb62348e779569e11
% Temporal ROI determination files for leave two out cross validation are saved function ROI_temporal_leave_two_out(MY_VAR) for sub = 1:length(MY_VAR.subnames) for cros_valid = 1: length(MY_VAR.psych_results{sub}) MY_VAR2 = MY_VAR; % set default MY_VAR2.subnames ...
github
satoshi-hirose/MVPC_toolbox-master
ROI_spatial.m
.m
MVPC_toolbox-master/ROI_setting/ROI_spatial.m
12,963
utf_8
78adb798546af1bf830c7e28d74a946b
%% ROI_spatial % Save spatial ROI parameter files. % % input: % MY_VAR % .analyze_dir string % .anato_map string % .subnames 1 x N_sub cell array % .to_dirn string % .SPMdir string % .decoding_dir string % % %% ROI parameters %...