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 | MariusKlug/mobilab-master | strjoin.m | .m | mobilab-master/dependency/PropertyGrid/strjoin.m | 973 | utf_8 | fdea64058faf314cf6f537957fd66a12 | % Concatenates a cell array of strings.
%
% Input arguments:
% adjoiner:
% string separating each neighboring element
% strings:
% a cell array of strings to join
%
% See also: strsplit, cell2mat
% Copyright 2008-2009 Levente Hunyadi
function string = strjoin(adjoiner, strings)
validateattributes(a... |
github | MariusKlug/mobilab-master | example_propertyeditor.m | .m | mobilab-master/dependency/PropertyGrid/example_propertyeditor.m | 490 | utf_8 | d915756075924d812b4144b18521b369 | % Demonstrates how to use the property editor.
%
% See also: PropertyEditor
% Copyright 2010 Levente Hunyadi
function example_propertyeditor
% create figure
f = figure( ...
'MenuBar', 'none', ...
'Name', 'Property editor demo - Copyright 2010 Levente Hunyadi', ...
'NumberTitle', 'off', ...
... |
github | MariusKlug/mobilab-master | strsplit.m | .m | mobilab-master/dependency/PropertyGrid/strsplit.m | 575 | utf_8 | 101709ab8c43f04c562a823f51ef2201 | % Splits a string into a cell array of strings.
%
% Input arguments:
% string:
% a string to split into a cell array
% adjoiner:
% string separating each neighboring element
%
% See also: strjoin
% Copyright 2008-2009 Levente Hunyadi
function strings = strsplit(string, adjoiner)
if nargin < 2
... |
github | MariusKlug/mobilab-master | nestedfetch.m | .m | mobilab-master/dependency/PropertyGrid/nestedfetch.m | 1,037 | utf_8 | 1065f979994414a4f92c0ee46e688ef5 | % Fetches the value of the named property of an object or structure.
% This function can deal with nested properties.
%
% Input arguments:
% obj:
% the handle or value object the value should be assigned to
% name:
% a property name with dot (.) separating property names at
% different hierarchy levels... |
github | MariusKlug/mobilab-master | findobjuser.m | .m | mobilab-master/dependency/PropertyGrid/findobjuser.m | 1,220 | utf_8 | ce31de324b79180a83cf8778a003cdd8 | % Find handle graphics object with user data check.
% Retrieves those handle graphics objects (HGOs) that have the specified
% Tag property and whose UserData property satisfies the given predicate.
%
% Input arguments:
% fcn:
% a predicate (a function that returns a logical value) to test against
% the HG... |
github | MariusKlug/mobilab-master | javaStringArray.m | .m | mobilab-master/dependency/PropertyGrid/javaStringArray.m | 650 | utf_8 | e90f222d2061320a2f7db70ca2a7dd52 | % Converts a MatLab cell array of strings into a java.lang.String array.
%
% Input arguments:
% str:
% a cell array of strings (i.e. a cell array of char row vectors)
%
% Output arguments:
% arr:
% a java.lang.String array instance (i.e. java.lang.String[])
%
% See also: javaArray
% Copyright 2009-20... |
github | MariusKlug/mobilab-master | var2str.m | .m | mobilab-master/dependency/PropertyGrid/var2str.m | 458 | utf_8 | 2f91ba4e78a2e61012279db4d2dc609f | % Textual representation of any MatLab value.
% Copyright 2009 Levente Hunyadi
function s = var2str(value)
if islogical(value) || isnumeric(value)
s = num2str(value);
elseif ischar(value) && isvector(value)
s = reshape(value, 1, numel(value));
elseif isjava(value)
s = char(value); % calls java.... |
github | MariusKlug/mobilab-master | getclassfield.m | .m | mobilab-master/dependency/PropertyGrid/getclassfield.m | 393 | utf_8 | afb53cd543b7b10efb50861b8427a061 | % Field value of each object in an array or cell array.
%
% See also: getfield
% Copyright 2010 Levente Hunyadi
function values = getclassfield(objects, field)
values = cell(size(objects));
if iscell(objects)
for k = 1 : numel(values)
values{k} = objects{k}.(field);
end
else
for k = 1... |
github | MariusKlug/mobilab-master | arrayfilter.m | .m | mobilab-master/dependency/PropertyGrid/arrayfilter.m | 504 | utf_8 | 16ad8bf9799bb4f6f4b59c80436e4412 | % Filter elements of array that meet a condition.
% Copyright 2010 Levente Hunyadi
function array = arrayfilter(fun, array)
validateattributes(fun, {'function_handle'}, {'scalar'});
if isobject(array)
filter = false(size(array));
for k = 1 : numel(filter)
filter(k) = fun(array(k));
end... |
github | MariusKlug/mobilab-master | example_propertygrid.m | .m | mobilab-master/dependency/PropertyGrid/example_propertygrid.m | 5,040 | utf_8 | 99d54838a14e5828e7f6105ef3872584 | % Demonstrates how to use the property pane.
%
% See also: PropertyGrid
% Copyright 2010 Levente Hunyadi
function example_propertygrid
properties = [ ...
PropertyGridField('double', pi, ...
'Category', 'Primitive types', ...
'DisplayName', 'real double', ...
'Description', 'Stan... |
github | MariusKlug/mobilab-master | constructor.m | .m | mobilab-master/dependency/PropertyGrid/constructor.m | 2,154 | utf_8 | 9da591550a8c3a29766b663278c282b2 | % Sets public properties of a MatLab object using a name-value list.
% Properties are traversed in the order they occur in the class definition.
% Copyright 2008-2009 Levente Hunyadi
function obj = constructor(obj, varargin)
assert(isobject(obj), ...
'Function operates on MatLab new-style objects only.');
... |
github | MariusKlug/mobilab-master | nestedassign.m | .m | mobilab-master/dependency/PropertyGrid/nestedassign.m | 1,507 | utf_8 | 08c578ceaca65281fe25ff69a7f1965f | % Assigns the given value to the named property of an object or structure.
% This function can deal with nested properties.
%
% Input arguments:
% obj:
% the structure, handle or value object the value should be assigned to
% name:
% a property name with dot (.) separating property names at
% different... |
github | MariusKlug/mobilab-master | javaArrayList.m | .m | mobilab-master/dependency/PropertyGrid/javaArrayList.m | 674 | utf_8 | 609654a2899b5a4f573da531aa2a190e | % Converts a MatLab array into a java.util.ArrayList.
%
% Input arguments:
% array:
% a MatLab row or column vector (with elements of any type)
%
% Output arguments:
% list:
% a java.util.ArrayList instance
%
% See also: javaArray
% Copyright 2010 Levente Hunyadi
function list = javaArrayList(array)... |
github | MariusKlug/mobilab-master | meshresample.m | .m | mobilab-master/dependency/iso2mesh/meshresample.m | 1,665 | utf_8 | a84fc4c4bfcb7894e079f34b8a9c6f9d | function [node,elem]=meshresample(v,f,keepratio)
%
% [node,elem]=meshresample(v,f,keepratio)
%
% resample mesh using CGAL mesh simplification utility
%
% author: Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% date: 2007/11/12
%
% input:
% v: list of nodes
% f: list of surface elements (each row for each triangle... |
github | MariusKlug/mobilab-master | surfaceclean.m | .m | mobilab-master/dependency/iso2mesh/surfaceclean.m | 1,015 | utf_8 | 7e36bba6243ce6e4c9645e4599663dfe | function f=surfaceclean(f,v)
%
% f=surfaceclean(f,v)
%
% remove surface patches that are located inside
% the bounding box faces
%
% author: Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% date: 2008/04/08
%
% input:
% v: surface node list, dimension (nn,3)
% f: surface face element list, dime... |
github | MariusKlug/mobilab-master | plotsurf.m | .m | mobilab-master/dependency/iso2mesh/plotsurf.m | 2,254 | utf_8 | b188df3b9718f9dedf52e613d919ccc1 | function hm=plotsurf(node,face,varargin)
%
% hm=plotsurf(node,face,opt)
%
% plot 3D surface meshes
%
% author: Qianqian Fang <fangq at nmr.mgh.harvard.edu>
%
% input:
% node: node coordinates, dimension (nn,3); if node has a
% 4th column, it will be used to set the color at each node.
% face: tr... |
github | MariusKlug/mobilab-master | cleanline.m | .m | mobilab-master/dependency/cleanline/cleanline.m | 28,715 | utf_8 | 027d8eaf358ee66c68aaac75c580fb44 | function [EEG, Sorig, Sclean, f, amps, freqs, g] = cleanline(varargin)
% Mandatory Information
% --------------------------------------------------------------------------------------------------
% EEG EEGLAB data structure
% ---------------------------------------------------------------... |
github | MariusKlug/mobilab-master | load_xdf.m | .m | mobilab-master/dependency/xdfimport1.13b/load_xdf.m | 43,376 | utf_8 | 4d8ec8234316ff730a167b753f5a696f |
function [streams,fileheader] = load_xdf(filename,varargin)
% Import an XDF file.
% [Streams,FileHeader] = load_xdf(Filename, Options...)
%
% This is a MATLAB importer for mult-stream XDF (Extensible Data Format) recordings. All
% information covered by the XDF 1.0 specification is imported, plus any additional meta-d... |
github | MariusKlug/mobilab-master | eegplugin_xdfimport.m | .m | mobilab-master/dependency/xdfimport1.13b/eegplugin_xdfimport.m | 2,526 | utf_8 | 65efeb97d83bfe9268d1b766b340fb0d | % eegplugin_xdfimport() - EEGLAB plugin for importing XDF data files.
% With this menu it is possible to import a raw XDF file (*.xdf) or
% a compressed file (*.xdfz).
%
% Usage:
% >> eegplugin_xdfimport(menu);
% >> eegplugin_xdfimport(menu, trystrs, catchstrs);
%
% I... |
github | MariusKlug/mobilab-master | eeg_load_xdf.m | .m | mobilab-master/dependency/xdfimport1.13b/eeg_load_xdf.m | 11,499 | utf_8 | 31bd4e493b2a6b178e0b96aefe4be801 | function raw = eeg_load_xdf(filename, varargin)
% Import an XDF file from disk
% EEG = eeg_load_xdf(Filename, Options...)
%
% In:
% Filename : name of the xdf file
%
% Options... : list of name-value pairs for further options; the allowed names are as follows:
% 'streamname' : import only the first s... |
github | MariusKlug/mobilab-master | pop_loadxdf.m | .m | mobilab-master/dependency/xdfimport1.13b/pop_loadxdf.m | 4,515 | utf_8 | 585952592e1218043944245f50745c2f | % pop_loadxdf() - Load an XDF file (*.xdf or *.xdfz).
% (pop out window if no arguments)
%
% Usage:
% >> [EEG] = pop_loadxdf;
% >> [EEG] = pop_loadxdf( filename, 'key', 'val', ...);
%
% Graphic interface:
%
% "Stream name to import" - [edit box] specify name of stream to import; if nonempty, only ... |
github | MariusKlug/mobilab-master | readlocs.m | .m | mobilab-master/private/readlocs.m | 33,794 | utf_8 | 3492a371521cd53d52c5bfae1191dc91 | % readlocs() - read electrode location coordinates and other information from a file.
% Several standard file formats are supported. Users may also specify
% a custom column format. Defined format examples are given below
% (see File Formats).
% Usage:
% >> eloc = readlocs( ... |
github | MariusKlug/mobilab-master | arrow.m | .m | mobilab-master/private/arrow.m | 55,523 | utf_8 | 832e19d534abb17e958d7ed9b099e3fc | function [h,yy,zz] = arrow(varargin)
% ARROW Draw a line with an arrowhead.
%
% ARROW(Start,Stop) draws a line with an arrow from Start to Stop (points
% should be vectors of length 2 or 3, or matrices with 2 or 3
% columns), and returns the graphics handle of the arrow(s).
%
% ARROW uses the mouse (cl... |
github | MariusKlug/mobilab-master | filter_fast.m | .m | mobilab-master/private/filter_fast.m | 2,217 | utf_8 | ff8dbc217baa7b521116ca1bc40cecbb | function [X,Zf] = filter_fast(B,A,X,Zi,dim)
% [Y,Zf] = filter_fast(B,A,X,Zi,Dim)
% Equivalent to filter(), except for being faster when both the filter and the signal are long, by using FFT convolution (needs fftfilt).
% The function is faster than filter when approx. length(B)>256 and size(X,Dim)>1024, otherwise slowe... |
github | MariusKlug/mobilab-master | supergui.m | .m | mobilab-master/private/supergui.m | 19,268 | utf_8 | 6a0502b15c9a86ec3b55dc3d09a1bccf | % supergui() - a comprehensive gui automatic builder. This function help
% to create GUI very fast without bothering about the
% positions of the elements. After creating a geometry,
% elements just place themselves into the predefined
% locations. It is especially... |
github | MariusKlug/mobilab-master | warndlg2.m | .m | mobilab-master/private/warndlg2.m | 1,031 | utf_8 | 4d58c147c6515911a93ba2375203951d | % warndlg2() - same as warndlg for eeglab()
%
% Author: Arnaud Delorme, CNL / Salk Institute, 12 August 2002
%
% See also: inputdlg2(), questdlg2()
% Copyright (C) Arnaud Delorme, CNL / Salk Institute, arno@salk.edu
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GN... |
github | MariusKlug/mobilab-master | errordlg2.m | .m | mobilab-master/private/errordlg2.m | 1,467 | utf_8 | 710e811cd40d8f506b5264089f50c95c | % errordlg2() - Makes a popup dialog box with the specified message and (optional)
% title.
%
% Usage:
% errordlg2(Prompt, Title);
%
% Example:
% errordlg2('Explanation of error','title of error');
%
% Input:
% Prompt - A text string explaning why the user is seeing this error message.
% Title ... |
github | MariusKlug/mobilab-master | readbdf.m | .m | mobilab-master/private/readbdf.m | 4,332 | utf_8 | c3b6b9329f9fb8a095dd6d9ad219d63d | % readbdf() - Loads selected Records of an EDF or BDF File (European Data Format
% for Biosignals) into MATLAB
% Usage:
% >> [DAT,signal] = readedf(EDF_Struct,Records,Mode);
% Notes:
% Records - List of Records for Loading
% Mode - 0 Default
% 1 ... |
github | MariusKlug/mobilab-master | questdlg2.m | .m | mobilab-master/private/questdlg2.m | 3,106 | utf_8 | 01fea41510a88ed83bbd6971fa358789 | % questdlg2() - questdlg function clone with coloring and help for
% eeglab().
%
% Usage: same as questdlg()
%
% Warning:
% Case of button text and result might be changed by the function
%
% Author: Arnaud Delorme, CNL / Salk Institute, La Jolla, 11 August 2002
%
% See also: inputdlg2(), errordlg2(), s... |
github | MariusKlug/mobilab-master | finputcheck.m | .m | mobilab-master/private/finputcheck.m | 8,676 | utf_8 | 98c5e52d4a9cd0c05a41cee29d409e4b | % finputcheck() - check Matlab function {'key','value'} input argument pairs
%
% Usage: >> result = finputcheck( varargin, fieldlist );
% >> [result varargin] = finputcheck( varargin, fieldlist, ...
% callingfunc, mode, verbose );
% Input:
% varargin - Cell array ... |
github | MariusKlug/mobilab-master | dftfilt3.m | .m | mobilab-master/private/dftfilt3.m | 7,390 | utf_8 | 7ef2a5114ee38513d5a55a8f38553cb1 | % dftfilt3() - discrete complex wavelet filters
%
% Usage:
% >> [wavelet,cycles,freqresol,timeresol] = dftfilt3( freqs, cycles, srate, varargin)
%
% Inputs:
% freqs - vector of frequencies of interest.
% cycles - cycles array. If cycles=0, then the Hanning tapered Short-term FFT is used.
% If o... |
github | MariusKlug/mobilab-master | inputdlg2.m | .m | mobilab-master/private/inputdlg2.m | 2,497 | utf_8 | 4279851114340b7a188ddaf80cef7dd4 | % inputdlg2() - inputdlg function clone with coloring and help for
% eeglab().
%
% Usage:
% >> Answer = inputdlg2(Prompt,Title,LineNo,DefAns,funcname);
%
% Inputs:
% Same as inputdlg. Using the optional additionnal funcname parameter
% the function will create a help button. The help message will... |
github | MariusKlug/mobilab-master | uigetfile2.m | .m | mobilab-master/private/uigetfile2.m | 2,667 | utf_8 | a344bcefaca772c110df38301343a003 | % uigetfile2() - same as uigetfile but remember folder location.
%
% Usage: >> uigetfile2(...)
%
% Inputs: Same as uigetfile
%
% Author: Arnaud Delorme & Hilit Serby, Scott Makeig, SCCN, UCSD, 2004
% Thanks to input from Bas Kortmann
%
% Copyright (C) Arnaud Delorme & Hilit Serby, Scott Makeig, SCCN, UCSD, 2004... |
github | MariusKlug/mobilab-master | inputgui.m | .m | mobilab-master/private/inputgui.m | 10,541 | utf_8 | 7f802d20dac28efe617b229a7b7d9397 | % inputgui() - A comprehensive gui automatic builder. This function helps
% to create GUI very quickly without bothering about the
% positions of the elements. After creating a geometry,
% elements just place themselves in the predefined
% locations. It is especial... |
github | MariusKlug/mobilab-master | openbdf.m | .m | mobilab-master/private/openbdf.m | 7,299 | utf_8 | 1cddab9ec084b0d0ec6fc7dcd461932b | % openbdf() - Opens an BDF File (European Data Format for Biosignals) in MATLAB (R)
%
% Usage:
% >> EDF=openedf(FILENAME)
%
% Note: About EDF -> www.biosemi.com/faq/file_format.htm
%
% Author: Alois Schloegl, 5.Nov.1998
%
% See also: readedf()
% Copyright (C) 1997-1998 by Alois Schloegl
% a.schloegl@ieee.org
% Ver ... |
github | MariusKlug/mobilab-master | streamBrowserHandle.m | .m | mobilab-master/glibmobi/streamBrowserHandle.m | 29,405 | utf_8 | 2d8c333df1dab27a9d8db67bd13a5326 | classdef streamBrowserHandle < browserHandle
properties
gObjHandle
windowWidth
normalizeFlag
showChannelNumber
gain
numberOfChannelsToPlot
yTickLabel
colormap
colorInCell
osdColor % onscreen display color
textHandle
roi... |
github | MariusKlug/mobilab-master | MultiStreamBrowserSettings.m | .m | mobilab-master/glibmobi/MultiStreamBrowserSettings.m | 21,497 | utf_8 | c41a8946ae1730a6c1295970afdd6a7b | function varargout = MultiStreamBrowserSettings(varargin)
% MULTISTREAMBROWSERSETTINGS MATLAB code for MultiStreamBrowserSettings.fig
% MULTISTREAMBROWSERSETTINGS, by itself, creates a new MULTISTREAMBROWSERSETTINGS or raises the existing
% singleton*.
%
% H = MULTISTREAMBROWSERSETTINGS returns the handl... |
github | MariusKlug/mobilab-master | vectorBrowserSettings.m | .m | mobilab-master/glibmobi/vectorBrowserSettings.m | 13,155 | utf_8 | 8220bfa2f59a652cfc6e828f75b7202b | function varargout = vectorBrowserSettings(varargin)
% VECTORBROWSERSETTINGS MATLAB code for vectorBrowserSettings.fig
% VECTORBROWSERSETTINGS, by itself, creates a new VECTORBROWSERSETTINGS or raises the existing
% singleton*.
%
% H = VECTORBROWSERSETTINGS returns the handle to a new VECTORBROWSERSETTIN... |
github | MariusKlug/mobilab-master | cometBrowserSettings.m | .m | mobilab-master/glibmobi/cometBrowserSettings.m | 15,314 | utf_8 | 09165093f75d39b0efca95e643b2c986 | function varargout = cometBrowserSettings(varargin)
% COMETBROWSERSETTINGS MATLAB code for cometBrowserSettings.fig
% COMETBROWSERSETTINGS, by itself, creates a new COMETBROWSERSETTINGS or raises the existing
% singleton*.
%
% H = COMETBROWSERSETTINGS returns the handle to a new COMETBROWSERSETTINGS or t... |
github | MariusKlug/mobilab-master | videoStreanBrowserSettings.m | .m | mobilab-master/glibmobi/videoStreanBrowserSettings.m | 11,194 | utf_8 | 916bf19cfb712229adef61eebed0dd6f | function varargout = videoStreanBrowserSettings(varargin)
% VIDEOSTREANBROWSERSETTINGS MATLAB code for videoStreanBrowserSettings.fig
% VIDEOSTREANBROWSERSETTINGS, by itself, creates a new VIDEOSTREANBROWSERSETTINGS or raises the existing
% singleton*.
%
% H = VIDEOSTREANBROWSERSETTINGS returns the handl... |
github | MariusKlug/mobilab-master | MultiStreamBrowser.m | .m | mobilab-master/glibmobi/MultiStreamBrowser.m | 37,112 | utf_8 | 48bfc394dc5af25958dba1853872c2c2 | function varargout = MultiStreamBrowser(varargin)
% MULTISTREAMBROWSER MATLAB code for MultiStreamBrowser.fig
% MULTISTREAMBROWSER, by itself, creates a new MULTISTREAMBROWSER or raises the existing
% singleton*.
%
% H = MULTISTREAMBROWSER returns the handle to a new MULTISTREAMBROWSER or the handle to
%... |
github | MariusKlug/mobilab-master | streamBrowserNG.m | .m | mobilab-master/glibmobi/streamBrowserNG.m | 13,779 | utf_8 | be4b66df5adba8e2fd736556d4b7c32f | function varargout = streamBrowserNG(varargin)
% STREAMBROWSERNG MATLAB code for streamBrowserNG.fig
% STREAMBROWSERNG, by itself, creates a new STREAMBROWSERNG or raises the existing
% singleton*.
%
% H = STREAMBROWSERNG returns the handle to a new STREAMBROWSERNG or the handle to
% the existing si... |
github | MariusKlug/mobilab-master | ribbonBrowserSettings.m | .m | mobilab-master/glibmobi/ribbonBrowserSettings.m | 16,065 | utf_8 | ebb592e5892636a9574c7f990e3c1079 | function varargout = ribbonBrowserSettings(varargin)
% RIBBONBROWSERSETTINGS MATLAB code for ribbonBrowserSettings.fig
% RIBBONBROWSERSETTINGS, by itself, creates a new RIBBONBROWSERSETTINGS or raises the existing
% singleton*.
%
% H = RIBBONBROWSERSETTINGS returns the handle to a new RIBBONBROWSERSETTIN... |
github | MariusKlug/mobilab-master | streamBrowserSettings.m | .m | mobilab-master/glibmobi/streamBrowserSettings.m | 15,724 | utf_8 | 1d2e7839809dc13b598a938568d5eb94 | function varargout = streamBrowserSettings(varargin)
% STREAMBROWSERSETTINGS MATLAB code for streamBrowserSettings.fig
% STREAMBROWSERSETTINGS, by itself, creates a new STREAMBROWSERSETTINGS or raises the existing
% singleton*.
%
% H = STREAMBROWSERSETTINGS returns the handle to a new STREAMBROWSERSETTIN... |
github | MariusKlug/mobilab-master | projectionBrowserSettings.m | .m | mobilab-master/glibmobi/projectionBrowserSettings.m | 18,419 | utf_8 | b7d400db6ebf1a6fdeae7cfce7f74976 | function varargout = projectionBrowserSettings(varargin)
% PROJECTIONBROWSERSETTINGS MATLAB code for projectionBrowserSettings.fig
% PROJECTIONBROWSERSETTINGS, by itself, creates a new PROJECTIONBROWSERSETTINGS or raises the existing
% singleton*.
%
% H = PROJECTIONBROWSERSETTINGS returns the handle to a... |
github | MariusKlug/mobilab-master | browserHandleList.m | .m | mobilab-master/glibmobi/browserHandleList.m | 22,608 | utf_8 | 4bc62591683491b5ca009bcadf573ae7 | classdef browserHandleList < handle
properties
step
master
slHandle
ceHandle
bound
timeTexttHandle
sliderHandle
minTextHandle
maxTextHandle
font
timerObj = [];
state
end
properties(SetObservable)
speed
... |
github | MariusKlug/mobilab-master | my_arrow.m | .m | mobilab-master/glibmobi/my_arrow.m | 55,855 | utf_8 | 9b97311b96139a995fae155ddeb5f2df | function [h,yy,zz] = my_arrow(varargin)
% ARROW Draw a line with an arrowhead.
%
% ARROW(Start,Stop) draws a line with an arrow from Start to Stop (points
% should be vectors of length 2 or 3, or matrices with 2 or 3
% columns), and returns the graphics handle of the arrow(s).
%
% ARROW uses the mouse ... |
github | MariusKlug/mobilab-master | genCoordBrowserSettings.m | .m | mobilab-master/glibmobi/genCoordBrowserSettings.m | 16,477 | utf_8 | 6e2468fb4fbcc01ce79f56c94f6d5ca4 | function varargout = genCoordBrowserSettings(varargin)
% GENCOORDBROWSERSETTINGS MATLAB code for genCoordBrowserSettings.fig
% GENCOORDBROWSERSETTINGS, by itself, creates a new GENCOORDBROWSERSETTINGS or raises the existing
% singleton*.
%
% H = GENCOORDBROWSERSETTINGS returns the handle to a new GENCOOR... |
github | MariusKlug/mobilab-master | StreamsList.m | .m | mobilab-master/glibmobi/StreamsList.m | 9,469 | utf_8 | febd6669da5eae43671669a2c756f33d | function varargout = StreamsList(varargin)
% STREAMSLIST MATLAB code for StreamsList.fig
% STREAMSLIST, by itself, creates a new STREAMSLIST or raises the existing
% singleton*.
%
% H = STREAMSLIST returns the handle to a new STREAMSLIST or the handle to
% the existing singleton*.
%
% STREAMSLI... |
github | MariusKlug/mobilab-master | browserHandle.m | .m | mobilab-master/glibmobi/browserHandle.m | 9,592 | utf_8 | 1c56d9d87df719fbada8ac331090c178 | classdef browserHandle < handle
properties
step = 1;
onscreenDisplay
nowCursor
master = [];
uuid
%dcmHandle
axesHandle
figureHandle
sliderHandle
streamHandle
cursorHandle
timeTexttHandle
timerObj = [];
ti... |
github | MariusKlug/mobilab-master | streamBrowser2.m | .m | mobilab-master/glibmobi/streamBrowser2.m | 5,628 | utf_8 | eefa97a7e4912db88b5e49470859ca44 | function varargout = streamBrowser2(varargin)
% STREAMBROWSER2 MATLAB code for streamBrowser2.fig
% STREAMBROWSER2, by itself, creates a new STREAMBROWSER2 or raises the existing
% singleton*.
%
% H = STREAMBROWSER2 returns the handle to a new STREAMBROWSER2 or the handle to
% the existing singleton... |
github | MariusKlug/mobilab-master | browserHandleListSettings.m | .m | mobilab-master/glibmobi/browserHandleListSettings.m | 9,544 | utf_8 | 74c099f7931b5a967ce9b1c1ed6d0d82 | function varargout = browserHandleListSettings(varargin)
% BROWSERHANDLELISTSETTINGS MATLAB code for browserHandleListSettings.fig
% BROWSERHANDLELISTSETTINGS, by itself, creates a new BROWSERHANDLELISTSETTINGS or raises the existing
% singleton*.
%
% H = BROWSERHANDLELISTSETTINGS returns the handle to a... |
github | MariusKlug/mobilab-master | segmentBrowserSettings.m | .m | mobilab-master/glibmobi/segmentBrowserSettings.m | 15,230 | utf_8 | 4490221be9834697c648b051c02b05da | function varargout = segmentBrowserSettings(varargin)
% SEGMENTBROWSERSETTINGS MATLAB code for segmentBrowserSettings.fig
% SEGMENTBROWSERSETTINGS, by itself, creates a new SEGMENTBROWSERSETTINGS or raises the existing
% singleton*.
%
% H = SEGMENTBROWSERSETTINGS returns the handle to a new SEGMENTBROWSE... |
github | MariusKlug/mobilab-master | cometBrowser2Settings.m | .m | mobilab-master/glibmobi/cometBrowser2Settings.m | 17,963 | utf_8 | ac701423f773ca175471bd5ab9506874 | function varargout = cometBrowser2Settings(varargin)
% COMETBROWSER2SETTINGS MATLAB code for cometBrowser2Settings.fig
% COMETBROWSER2SETTINGS, by itself, creates a new COMETBROWSER2SETTINGS or raises the existing
% singleton*.
%
% H = COMETBROWSER2SETTINGS returns the handle to a new COMETBROWSER2SETTIN... |
github | MariusKlug/mobilab-master | mocapBrowserHandle.m | .m | mobilab-master/glibmobi/mocapBrowserHandle.m | 26,253 | utf_8 | 3ceeda85e2fc3c20c8ebfce6b6fabf04 | classdef mocapBrowserHandle < browserHandle
properties
markerHandle
textHandle
lineHandle
showChannelNumber
numberOfChannelsToPlot
color
lineColor
lineWidth
floorColor
background
dim
label
connectivity
fi... |
github | MariusKlug/mobilab-master | mocapBrowserSettings.m | .m | mobilab-master/glibmobi/mocapBrowserSettings.m | 17,608 | utf_8 | bea56a991292a7c5a01d5adf65345ef4 | function varargout = mocapBrowserSettings(varargin)
% MOCAPBROWSERSETTINGS MATLAB code for mocapBrowserSettings.fig
% MOCAPBROWSERSETTINGS, by itself, creates a new MOCAPBROWSERSETTINGS or raises the existing
% singleton*.
%
% H = MOCAPBROWSERSETTINGS returns the handle to a new MOCAPBROWSERSETTINGS or t... |
github | jihunhamm/GRAM-master | load_nii_ext.m | .m | GRAM-master/Code/NIFTI/load_nii_ext.m | 3,698 | utf_8 | ba8d603eb3f4099c840a192995acbe18 | % Load NIFTI header extension after its header is loaded using load_nii_hdr.
%
% Usage: ext = load_nii_ext(filename)
%
% filename - NIFTI file name.
%
% Returned values:
%
% ext - Structure of NIFTI header extension, which includes num_ext,
% and all the extended header sections in the header extens... |
github | jihunhamm/GRAM-master | rri_orient.m | .m | GRAM-master/Code/NIFTI/rri_orient.m | 2,081 | utf_8 | dc7dc5e38cf317da9f9628117e2b24bb | % Convert image of different orientations to standard Analyze orientation
%
% Usage: nii = rri_orient(nii);
% Jimmy Shen (jimmy@rotman-baycrest.on.ca), 26-APR-04
%___________________________________________________________________
function [nii, orient, pattern] = rri_orient(nii, varargin)
if nargin >... |
github | jihunhamm/GRAM-master | save_untouch0_nii_hdr.m | .m | GRAM-master/Code/NIFTI/save_untouch0_nii_hdr.m | 8,813 | utf_8 | a0a201073cb18f09b62842e94094c451 | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function save_nii_hdr(hdr, fid)
if ~isequal(hdr.hk.sizeof_hdr,348),
error('hdr.hk.sizeof_hdr must be 348.');
end
write_header(hdr, fid);
return; % save_nii_hdr
%------------------------------------------------... |
github | jihunhamm/GRAM-master | rri_zoom_menu.m | .m | GRAM-master/Code/NIFTI/rri_zoom_menu.m | 770 | utf_8 | f0bae2b3d88fd719c47fd467e867e19f | % Imbed a zoom menu to any figure.
%
% Usage: rri_zoom_menu(fig);
%
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
%
%--------------------------------------------------------------------
function menu_hdl = rri_zoom_menu(fig)
if isnumeric(fig)
menu_hdl = uimenu('Parent',fig, ...
'Label','... |
github | jihunhamm/GRAM-master | affine.m | .m | GRAM-master/Code/NIFTI/affine.m | 16,664 | utf_8 | 419b609560eb98534c0e32cc4506cc7f | % Using 2D or 3D affine matrix to rotate, translate, scale, reflect and
% shear a 2D image or 3D volume. 2D image is represented by a 2D matrix,
% 3D volume is represented by a 3D matrix, and data type can be real
% integer or floating-point.
%
% You may notice that MATLAB has a function called 'imtransform.... |
github | jihunhamm/GRAM-master | load_untouch_nii.m | .m | GRAM-master/Code/NIFTI/load_untouch_nii.m | 3,502 | utf_8 | 65ae72f78b9e70e45dd094541b9ad213 | % Load NIFTI or ANALYZE dataset, but not applying any appropriate affine
% geometric transform or voxel intensity scaling.
%
% Although according to NIFTI website, all those header information are
% supposed to be applied to the loaded NIFTI image, there are some
% situations that people do want to leave the ... |
github | jihunhamm/GRAM-master | collapse_nii_scan.m | .m | GRAM-master/Code/NIFTI/collapse_nii_scan.m | 5,537 | utf_8 | 9537b0b4d87757892fe5321c09ea4e56 | % Collapse multiple single-scan NIFTI files into a multiple-scan NIFTI file
%
% Usage: collapse_nii_scan(scan_file_pattern, [collapsed_filename], [scan_file_folder])
%
% Here, scan_file_pattern should look like: 'myscan_0*.img'
% If collapsed_filename is omit, 'multi_scan.nii' will be used
% If scan_file_fol... |
github | jihunhamm/GRAM-master | rri_orient_ui.m | .m | GRAM-master/Code/NIFTI/rri_orient_ui.m | 5,635 | utf_8 | 3361ce417798ffe2c6b53cf194b2a146 | % Return orientation of the current image:
% orient is orientation 1x3 matrix, in that:
% Three elements represent: [x y z]
% Element value: 1 - Left to Right; 2 - Posterior to Anterior;
% 3 - Inferior to Superior; 4 - Right to Left;
% 5 - Anterior to Posterior; 6 - Superior to Inferior;
% e.g.:
% Standard... |
github | jihunhamm/GRAM-master | load_untouch0_nii_hdr.m | .m | GRAM-master/Code/NIFTI/load_untouch0_nii_hdr.m | 8,293 | utf_8 | d823050e9ba931a2ba7f9d9a3893d2d1 | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function hdr = load_nii_hdr(fileprefix, machine)
fn = sprintf('%s.hdr',fileprefix);
fid = fopen(fn,'r',machine);
if fid < 0,
msg = sprintf('Cannot open file %s.',fn);
error(msg);
else
fseek(fid,0,'bof')... |
github | jihunhamm/GRAM-master | load_nii.m | .m | GRAM-master/Code/NIFTI/load_nii.m | 5,093 | utf_8 | 8a9f2da84eb7f288985a10f6cd3cd311 | % Load NIFTI or ANALYZE dataset. Support both *.nii and *.hdr/*.img
% file extension. If file extension is not provided, *.hdr/*.img will
% be used as default.
%
% A subset of NIFTI transform is included. For non-orthogonal rotation,
% shearing etc., please use 'reslice_nii.m' to reslice the NIFTI file.
% I... |
github | jihunhamm/GRAM-master | unxform_nii.m | .m | GRAM-master/Code/NIFTI/unxform_nii.m | 1,221 | utf_8 | ff8be64760837046b931857d59ca304e | % Undo the flipping and rotations performed by xform_nii; spit back only
% the raw img data block. Initial cut will only deal with 3D volumes
% strongly assume we have called xform_nii to write down the steps used
% in xform_nii.
%
% Usage: a = load_nii('original_name');
% manipulate a.img to make... |
github | jihunhamm/GRAM-master | load_untouch_nii_hdr.m | .m | GRAM-master/Code/NIFTI/load_untouch_nii_hdr.m | 8,739 | utf_8 | eb068c88e2b7bb518ea557d0734bc65d | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function hdr = load_nii_hdr(fileprefix, machine, filetype)
if filetype == 2
fn = sprintf('%s.nii',fileprefix);
if ~exist(fn)
msg = sprintf('Cannot find file "%s.nii".', fileprefix);
error(msg);
end
... |
github | jihunhamm/GRAM-master | save_nii_ext.m | .m | GRAM-master/Code/NIFTI/save_nii_ext.m | 1,015 | utf_8 | db919f3a7a4b2f64dae641b1e97fa4a0 | % Save NIFTI header extension.
%
% Usage: save_nii_ext(ext, fid)
%
% ext - struct with NIFTI header extension fields.
%
% NIFTI data format can be found on: http://nifti.nimh.nih.gov
%
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
%
function save_nii_ext(ext, fid)
if ~exist('ext','var') | ~exist('fi... |
github | jihunhamm/GRAM-master | view_nii_menu.m | .m | GRAM-master/Code/NIFTI/view_nii_menu.m | 8,917 | utf_8 | e34038557f63a8d2746261bb1eb678d3 | % Imbed Zoom, Interp, and Info menu to view_nii window.
%
% Usage: view_nii_menu(fig);
%
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
%
%--------------------------------------------------------------------
function menu_hdl = view_nii_menu(fig, varargin)
if isnumeric(fig)
menu_hdl = init(fig);
... |
github | jihunhamm/GRAM-master | load_nii_hdr.m | .m | GRAM-master/Code/NIFTI/load_nii_hdr.m | 11,977 | utf_8 | d308af107b98a904c76dd5c85773ae80 | % Load NIFTI dataset header. Support both *.nii and *.hdr/*.img file
% extension. If file extension is not provided, *.hdr/*.img will be
% used as default.
%
% Usage: [hdr, filetype, fileprefix, machine] = load_nii_hdr(filename)
%
% filename - NIFTI file name.
%
% Returned values:
%
% hdr - st... |
github | jihunhamm/GRAM-master | load_nii_img.m | .m | GRAM-master/Code/NIFTI/load_nii_img.m | 12,701 | utf_8 | c94851ebb66c23d0dea37d9842810a8c | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function [img,hdr] = load_nii_img(hdr,filetype,fileprefix,machine,img_idx,dim5_idx,dim6_idx,dim7_idx,old_RGB)
if ~exist('hdr','var') | ~exist('filetype','var') | ~exist('fileprefix','var') | ~exist('machine','var')
error('Usage: [img,... |
github | jihunhamm/GRAM-master | bresenham_line3d.m | .m | GRAM-master/Code/NIFTI/bresenham_line3d.m | 4,682 | utf_8 | f2e52d1f3ac9779b22baf3bb4d2ac201 | % Generate X Y Z coordinates of a 3D Bresenham's line between
% two given points.
%
% A very useful application of this algorithm can be found in the
% implementation of Fischer's Bresenham interpolation method in my
% another program that can rotate three dimensional image volume
% with an affine matrix:
... |
github | jihunhamm/GRAM-master | make_nii.m | .m | GRAM-master/Code/NIFTI/make_nii.m | 6,528 | utf_8 | 88cb024743f181dfa57a4aafe83ad571 | % Make nii structure specified by an N-D matrix. Usually, N is 3 for
% 3D matrix [x y z], or 4 for 4D matrix with time series [x y z t].
% However, NIfTI allows a maximum of 7D matrix. For RGB24 datatype, an
% extra dimension for RGB should be inserted immediately after [x y z].
% Optional parameters can also... |
github | jihunhamm/GRAM-master | verify_nii_ext.m | .m | GRAM-master/Code/NIFTI/verify_nii_ext.m | 1,721 | utf_8 | 0339aeb8d7286e4f08165c9eeeb4c2cd | % Verify NIFTI header extension to make sure that each extension section
% must be an integer multiple of 16 byte long that includes the first 8
% bytes of esize and ecode. If the length of extension section is not the
% above mentioned case, edata should be padded with all 0.
%
% Usage: [ext, esize_total] = ... |
github | jihunhamm/GRAM-master | get_nii_frame.m | .m | GRAM-master/Code/NIFTI/get_nii_frame.m | 2,652 | utf_8 | 7f67ac6821c48b74c24faac0ef38920c | % Return time frame of a NIFTI dataset. Support both *.nii and
% *.hdr/*.img file extension. If file extension is not provided,
% *.hdr/*.img will be used as default.
%
% It is a lightweighted "load_nii_hdr", and is equivalent to
% hdr.dime.dim(5)
%
% Usage: [ total_scan ] = get_nii_frame(filename)
%
... |
github | jihunhamm/GRAM-master | flip_lr.m | .m | GRAM-master/Code/NIFTI/flip_lr.m | 3,568 | utf_8 | d95b62698d44a65a3c2f02fbabc632ac | % When you load any ANALYZE or NIfTI file with 'load_nii.m', and view
% it with 'view_nii.m', you may find that the image is L-R flipped.
% This is because of the confusion of radiological and neurological
% convention in the medical image before NIfTI format is adopted. You
% can find more details from:
%
%... |
github | jihunhamm/GRAM-master | save_nii.m | .m | GRAM-master/Code/NIFTI/save_nii.m | 8,027 | utf_8 | 67deef13ee438b8ebfa1c6d14654b53e | % Save NIFTI dataset. Support both *.nii and *.hdr/*.img file extension.
% If file extension is not provided, *.hdr/*.img will be used as default.
%
% Usage: save_nii(nii, filename, [old_RGB])
%
% nii.hdr - struct with NIFTI header fields (from load_nii.m or make_nii.m)
%
% nii.img - 3D (or 4D) matrix o... |
github | jihunhamm/GRAM-master | rri_file_menu.m | .m | GRAM-master/Code/NIFTI/rri_file_menu.m | 4,153 | utf_8 | c9faa3905c642854eeed98ab8b02998e | % Imbed a file menu to any figure. If file menu exist, it will append
% to the existing file menu. This file menu includes: Copy to clipboard,
% print, save, close etc.
%
% Usage: rri_file_menu(fig);
%
% rri_file_menu(fig,0) means no 'Close' menu.
%
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
%
... |
github | jihunhamm/GRAM-master | reslice_nii.m | .m | GRAM-master/Code/NIFTI/reslice_nii.m | 8,227 | utf_8 | cbe59b7295edeb04ca04bede5463c0f2 | % The basic application of the 'reslice_nii.m' program is to perform
% any 3D affine transform defined by a NIfTI format image.
%
% In addition, the 'reslice_nii.m' program can also be applied to
% generate an isotropic image from either a NIfTI format image or
% an ANALYZE format image.
%
% The resliced N... |
github | jihunhamm/GRAM-master | save_untouch_nii.m | .m | GRAM-master/Code/NIFTI/save_untouch_nii.m | 5,741 | utf_8 | 315d2b753fe28c9a51f476dabcd1e126 | % Save NIFTI or ANALYZE dataset that is loaded by "load_untouch_nii.m".
% The output image format and file extension will be the same as the
% input one (NIFTI.nii, NIFTI.img or ANALYZE.img). Therefore, any file
% extension that you specified will be ignored.
%
% Usage: save_untouch_nii(nii, filename)
%
%... |
github | jihunhamm/GRAM-master | view_nii.m | .m | GRAM-master/Code/NIFTI/view_nii.m | 145,584 | utf_8 | 5ec29085cf7879b5210cfa916d0267a5 | % VIEW_NII: Create or update a 3-View (Front, Top, Side) of the
% brain data that is specified by nii structure
%
% Usage: status = view_nii([h], nii, [option]) or
% status = view_nii(h, [option])
%
% Where, h is the figure on which the 3-View will be plotted;
% nii is the brain data in NIFTI format;
% o... |
github | jihunhamm/GRAM-master | mat_into_hdr.m | .m | GRAM-master/Code/NIFTI/mat_into_hdr.m | 2,691 | utf_8 | 847d96698f45f7c5e7decbb3a0c3187f | %MAT_INTO_HDR The old versions of SPM (any version before SPM5) store
% an affine matrix of the SPM Reoriented image into a matlab file
% (.mat extension). The file name of this SPM matlab file is the
% same as the SPM Reoriented image file (.img/.hdr extension).
%
% This program will convert the ANALYZE 7.5 SPM... |
github | jihunhamm/GRAM-master | xform_nii.m | .m | GRAM-master/Code/NIFTI/xform_nii.m | 18,549 | utf_8 | 170ca286cea4b773db433c6d8d9eecdd | % internal function
% 'xform_nii.m' is an internal function called by "load_nii.m", so
% you do not need run this program by yourself. It does simplified
% NIfTI sform/qform affine transform, and supports some of the
% affine transforms, including translation, reflection, and
% orthogonal rotation (N*90 ... |
github | jihunhamm/GRAM-master | extra_nii_hdr.m | .m | GRAM-master/Code/NIFTI/extra_nii_hdr.m | 8,085 | utf_8 | 4f76a8a66736025a0acf3efa15a2d2aa | % Decode extra NIFTI header information into hdr.extra
%
% Usage: hdr = extra_nii_hdr(hdr)
%
% hdr can be obtained from load_nii_hdr
%
% NIFTI data format can be found on: http://nifti.nimh.nih.gov
%
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
%
function hdr = extra_nii_hdr(hdr)
switch hdr.dime.da... |
github | jihunhamm/GRAM-master | rri_xhair.m | .m | GRAM-master/Code/NIFTI/rri_xhair.m | 2,300 | utf_8 | 95954b8cd43e01fba5c4b2f335be1780 | % rri_xhair: create a pair of full_cross_hair at point [x y] in
% axes h_ax, and return xhair struct
%
% Usage: xhair = rri_xhair([x y], xhair, h_ax);
%
% If omit xhair, rri_xhair will create a pair of xhair; otherwise,
% rri_xhair will update the xhair. If omit h_ax, current axes will
% b... |
github | jihunhamm/GRAM-master | save_untouch_nii_hdr.m | .m | GRAM-master/Code/NIFTI/save_untouch_nii_hdr.m | 8,721 | utf_8 | 0d396eaeebb6114f24d56ab74a8299cf | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function save_nii_hdr(hdr, fid)
if ~isequal(hdr.hk.sizeof_hdr,348),
error('hdr.hk.sizeof_hdr must be 348.');
end
write_header(hdr, fid);
return; % save_nii_hdr
%------------------------------------------------... |
github | jihunhamm/GRAM-master | expand_nii_scan.m | .m | GRAM-master/Code/NIFTI/expand_nii_scan.m | 700 | utf_8 | fb3d6d7df5878c0c027423997afd6093 | % Expand a multiple-scan NIFTI file into multiple single-scan NIFTI files
%
% Usage: expand_nii_scan(multi_scan_filename, [img_idx], [path_to_save])
%
% NIFTI data format can be found on: http://nifti.nimh.nih.gov
%
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
%
function expand_nii_scan(filename, img_idx, n... |
github | jihunhamm/GRAM-master | bipolar.m | .m | GRAM-master/Code/NIFTI/bipolar.m | 2,239 | utf_8 | c860ec93d96b6ab636c985280d79958d | %BIPOLAR returns an M-by-3 matrix containing a blue-red colormap, in
% in which red stands for positive, blue stands for negative,
% and white stands for 0.
%
% Usage: cmap = bipolar(M, lo, hi, contrast); or cmap = bipolar;
%
% cmap: output M-by-3 matrix for BIPOLAR colormap.
% M: number of shades in th... |
github | jihunhamm/GRAM-master | save_nii_hdr.m | .m | GRAM-master/Code/NIFTI/save_nii_hdr.m | 9,918 | utf_8 | d9d21bc6b562c03abdb82fa9fbadd536 | % Save NIFTI dataset header. Support both *.nii and *.hdr/*.img file
% extension.
%
% Usage: save_nii_hdr(hdr, fid)
%
% hdr - struct with NIFTI header fields.
%
% fileprefix - NIFTI file name without extension.
%
% Part of this file is copied and modified under GNU license from
% MRI_TOOLBOX de... |
github | jihunhamm/GRAM-master | astar_search.m | .m | GRAM-master/Code/matlab_bgl/astar_search.m | 3,582 | utf_8 | 528ff641877279dc012bed23ea2d9d21 | function [d pred f]=astar_search(A,s,h,varargin)
% ASTAR_SEARCH Perform a heuristically guided (A*) search on the graph.
%
% [d pred rank]=astar_search(A,s,h,optionsu) returns the distance map,
% search tree and f-value of each node in an astar_search.
% The search begins at vertex s. The heuristic h guides the searc... |
github | jihunhamm/GRAM-master | grid_graph.m | .m | GRAM-master/Code/matlab_bgl/grid_graph.m | 2,553 | utf_8 | 4c43dba3494901741531114e9307da9f | function [A coords] = grid_graph(varargin)
% GRID_GRAPH Generate a grid graph or hypergrid graph
%
% [A xy] = grid_graph(m,n) generates a grid graph with m vertices along the
% x axis and n vertices along the y axis. The xy output gives the 2d
% coordinates of each vertex.
% [A xyz] = grid_graph(m,n,k) genera... |
github | jihunhamm/GRAM-master | path_histogram.m | .m | GRAM-master/Code/matlab_bgl/custom/path_histogram.m | 2,057 | utf_8 | 8ba677da99d2a4a4e26d41487c0ea5db | function [l c] = path_histogram(G,varargin)
% PATH_HISTOGRAM Compute a histogram of all shortest paths in graph G
%
% [l c] = path_histogram(G) computes all shortest paths in A one at a time
% and forms the histogram of the shortest distances between all vertices.
%
% [l c] = path_histogram(G,struct('sample',N)) uses... |
github | jihunhamm/GRAM-master | bacon_numbers.m | .m | GRAM-master/Code/matlab_bgl/examples/bacon_numbers.m | 939 | utf_8 | 6f7f6c07dfde59ec0fd693b43e29e93f | function bn = bacon_numbers(A,u)
% BACON_NUMBERS Compute the Bacon numbers for a graph.
%
% bn = bacon_numbers(A,u) computes the Bacon numbers for all nodes in the
% graph assuming that Kevin Bacon is node u.
% allocate storage for the bacon numbers
% the ipdouble call allocates storage that can be modified in... |
github | jihunhamm/GRAM-master | rtest_1.m | .m | GRAM-master/Code/matlab_bgl/test/rtest_1.m | 1,767 | utf_8 | 591edf7b20b839883d608054412f6829 | function rval=rtest_1()
n = 49;
[A,b] = testmat(n,2);
x0 = [1:n]'/(n+1);
y0 = [1:n]'/(n+1);
x = repmat(x0,1,n);
y = repmat(y0',n,1);
xy = [x(:),y(:)];
rval = 0;
try
T = mst(A);
T = T + diag(diag(A));
rval = 1;
catch
lasterr
end;
try
A(1,2)= -1;
A(2,1)= -1;
T = prim_mst(A);
rval ... |
github | jihunhamm/GRAM-master | rtest_6.m | .m | GRAM-master/Code/matlab_bgl/test/rtest_6.m | 609 | utf_8 | eb8fb5b91bb3daf03c595491cc14de96 | function rval = rtest_6()
rval = 0;
try
% create a line graph
n = 10;
A = sparse(1:n-1,2:n,1,n,n);
A = A+A';
u = 1;
v = 5;
d = dist_uv(A,u,v);
if any(d(v+1:end) > 0)
error('breadth_first_search did not stop correctly');
end
rval = 1;
catch
lasterr
end
end... |
github | jihunhamm/GRAM-master | GRAM_Isomap.m | .m | GRAM-master/Code/Core/GRAM_Isomap.m | 2,779 | utf_8 | 8c11bce68bd75616799ddb12b50d3601 | %/*
% File: GRAM_Isomap.m
% Date: $Date: $
% Version: $Revision: $
% Author: $Author: $
% ID: $Id: $
%
% File Description
% function GRAM_Montage(dirData,SliceNum)
% Compute and display the ISOMAP embedding
%... |
github | jihunhamm/GRAM-master | Isomap_overlay.m | .m | GRAM-master/Code/Core/Isomap_overlay.m | 2,788 | utf_8 | c9d754e5d2edb569f454ff75dedb6b2d | %/*
% File: GRAM_Isomap.m
% Date: $Date: $
% Version: $Revision: $
% Author: $Author: $
% ID: $Id: $
%
% File Description
% function GRAM_Montage(dirData,SliceNum)
% Compute and display the ISOMAP embedding
%... |
github | jihunhamm/GRAM-master | GRAM_ShowPath.m | .m | GRAM-master/Code/Core/GRAM_ShowPath.m | 1,348 | utf_8 | fa5a46942968f5ab237c9c9aa08f4545 | %/*
% File: GRAM_ShowPath.m
% Date: $Date: $
% Version: $Revision: $
% Author: $Author: $
% ID: $Id: $
%
% File Description
% GRAM_ShowPath(dirSubject,onepath)displays images from dirSubject on the
% given path (one... |
github | jihunhamm/GRAM-master | GRAM_PairwiseDistance.m | .m | GRAM-master/Code/Core/GRAM_PairwiseDistance.m | 3,133 | utf_8 | 9c35b119776eb6ba6f37525cb2b5a591 | %/*
% File: GRAM_PairwiseDistance.m
% Date: $Date: $
% Version: $Revision: $
% Author: $Author: $
% ID: $Id: $
%
% File Description
% function [pdist,pMSE,pHE] = GRAM_PairwiseDistance(dirSubject,w,dirResult)
% ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.