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
SMASHtoolbox/release-master
overlay.m
.m
release-master/+SMASH/+Graphics/+AxesTools/overlay.m
2,142
utf_8
fdf6c2ba5f994e51d738b0aa3d87c56d
% overlay Overlay two axes objects % % This function overlays two axes objects in a new figure. % overlay(haxes); % The input "haxes" must contain two axes handles. Labels and tick marks % for the first axes are shown on the bottom/left, while the second axes % uses the top/right. % % Overlaid axes can be linked wi...
github
SMASHtoolbox/release-master
AxesArray.m
.m
release-master/+SMASH/+Graphics/+AxesTools/AxesArray.m
1,667
utf_8
aee9817218a58389ece4af2d1ad86f63
% AxesArray : create a continuous array of axes % % This function is similar to the subplot command with the exception that % all axes touch the adjacent neighbor. This is convenient when many % different plots need to be displayed with the same axis settings. % Axes handles are returned as output to allow the user to...
github
SMASHtoolbox/release-master
position.m
.m
release-master/+SMASH/+Graphics/+AxesTools/@Inset/old/position.m
2,063
utf_8
3ba7afe43c244f902b0211271c13718a
% position Position inset rectancle and axes % % This method manually positions the inset rectangle and axes. % position(object); % Positioning is controlled through a modal dialog box % % See also AxesInset % % % created January 19, 2016 by Daniel Dolan (Sandia National Laboratories) % function position(object) %...
github
SMASHtoolbox/release-master
update.m
.m
release-master/+SMASH/+Graphics/+AxesTools/@Inset/old/update.m
2,520
utf_8
bbe8b57d36db431471a91c01d2e93724
% update Update inset display % % This method updates inset bounds and/or the inset position. Property % changes are no applied until this method is called. % object.XBound=[a b]; % object.YBound=[c d]; % update(object); % % See also AxesInset % % % created January 19, 2016 by Daniel Dolan (Sandia National L...
github
SMASHtoolbox/release-master
AdjustRectangle.m
.m
release-master/+SMASH/+Graphics/+AxesTools/@Inset/old/private/AdjustRectangle.m
2,870
utf_8
afb94d32ac111d64a506968d587b59b9
function AdjustRectangle(src,~,object) % determine how and where click occurred haxes=ancestor(src,'axes'); fig=ancestor(haxes,'figure'); selection=get(fig,'SelectionType'); if ~strcmpi(selection,'normal') return end start=get(haxes,'CurrentPoint'); % determine adjustment mode pos=get(src,'Position'); x1=pos(1)...
github
SMASHtoolbox/release-master
AtomicMass.m
.m
release-master/+SMASH/+Reference/AtomicMass.m
4,988
utf_8
164d023063bd65daeeb29835e6f5c7b2
% AtomicMass Look up atomic mass % % This function looks up atomic mass [g/mol] by element name or symbol. % mass=AtomicMass('Cu'); % mass=AtomicMass('copper'); % Note that symbols are treated in a case-sensitive manner while names are % not, e.g. 'cu' is not a valid symbol but 'Copper' is a valid name. % % Speci...
github
SMASHtoolbox/release-master
PeriodicTable.m
.m
release-master/+SMASH/+Reference/PeriodicTable.m
6,550
utf_8
51ab9df223a53c0b739777a252d14f93
% PeriodicTable Access data from the periodic table % % This function provides element data from the periodic table. % Numeric input: % entry=PeriodicTable(number); % looks up an element by atomic number. Character input: % entry=PeriodicTable(symbol); % entry=PeriodicTable(name); % looks up an element by symb...
github
SMASHtoolbox/release-master
RefractiveIndex.m
.m
release-master/+SMASH/+Reference/RefractiveIndex.m
7,481
utf_8
6d6fa4a3460982db4d4249efb5f86d38
% RefractiveIndex Refractive index data % % This function accesses the data library of RefractiveIndex.info as of % February 2019. Calling the function with no inputs: % data=RefractiveIndex(); % allows interactive selection of one table entry. Entries can also be % requested with name/source matching patterns. % ...
github
SMASHtoolbox/release-master
AcousticData.m
.m
release-master/+SMASH/+Reference/AcousticData.m
4,889
utf_8
04e839314fbd1a0939be12d5b6117ad9
% UNDER CONSTRUCTION % AcousticData Look up acoustic data % % This function provides acoustic data for various materials. The calling % syntax is: % [data,name]=AcousticData(pattern); % where the input "pattern" is search pattern. Data from any material % matching this pattern is returned as function outputs or pr...
github
SMASHtoolbox/release-master
PhysicalConstant.m
.m
release-master/+SMASH/+Reference/PhysicalConstant.m
6,464
utf_8
7f1cae099fc28e40725178fb312f6bcb
% PhysicalConstant Look up physical constant values % % This function provides numeric values for a variety of physical constants. % [value,unit]=PhysicalConstant(symbol,system); % The first input indices the symbol associated with the physical constant, % e.g. 'c0' is the speed of light. % [value,unit]=PhysicalC...
github
SMASHtoolbox/release-master
char2cellstr.m
.m
release-master/+SMASH/+General/char2cellstr.m
580
utf_8
9d5f9c65dc9efdc49eea642e0b2f5cfd
% UNDER CONSTRUCTION % This function converts a character array into a cell array of character % vectors. New line characters are used to separate entries from the % original array. % out=char2cellstr(in) % % See also SMASH.General % % % % function out=char2cellstr(in) % manage input % identify new lines start=...
github
SMASHtoolbox/release-master
matchStructure.m
.m
release-master/+SMASH/+General/matchStructure.m
345
utf_8
bbc4d60ee9788fe2c03581c7ab4443b3
% matchStructure Case-insensitive assignment on an existing structure % % >> data=matchStructure(data,name,value); function data=matchStructure(data,name,value) list=fieldnames(data); for k=1:numel(list) if strcmpi(name,list{k}) data.(list{k})=value; return end end error('ERROR: unable to...
github
SMASHtoolbox/release-master
testName.m
.m
release-master/+SMASH/+General/testName.m
2,344
utf_8
31b6261ca0dc4ad3f137c5c074d68da3
% testName Test name against pattern % % This function determines if a specified name matches a given pattern. % result=matchName(name,pattern) % The outut "result" is true if the input "name" is compatible with input % "pattern". Both inputs must be charater strings: the pattern string % may contain wildcards (*),...
github
SMASHtoolbox/release-master
matchPattern.m
.m
release-master/+SMASH/+General/matchPattern.m
3,359
utf_8
527fbcdea38df94d94ec2d975a782fc1
% matchPattern Match text against pattern % % This function matches text to a specified pattern. % result=matchPattern(list,pattern); % The input "list" is a character string or a cell array of strings to be % matched against the input "pattern" (character string). The pattern may % contain wild cards (asterisks)...
github
SMASHtoolbox/release-master
separateArgument.m
.m
release-master/+SMASH/+General/separateArgument.m
2,042
utf_8
d086aaf61227295e37cff3ba419be62f
% separateArgument Separate argument list % % This function separates an argument list into the following categories. % -Position arguments are non-character values referenced by numeric % index. Empty values and characters beginning with an asterisk are % also treated as positional arguments. % -Name/...
github
SMASHtoolbox/release-master
testLabel.m
.m
release-master/+SMASH/+General/testLabel.m
465
utf_8
80129fd537672b9e9f9bd7c71257019f
% testLabel Check for valid label % % This function determines if a value is a valid labe. % status=testLabel(value); % The output "status" is true when the input "value" is a character array, % a cell array of characters, or a string variable. The output is false in % all other cases. % % See also SMASH.General % ...
github
SMASHtoolbox/release-master
clipArray.m
.m
release-master/+SMASH/+General/clipArray.m
3,300
utf_8
ee10935c9952dee49354e4ef21ff82d0
% clipArray Remove clipped values from an array % % This function removes clipped values from an array of arbitrary % size/shape. The valid data range can be specified explicitly: % out=clipArray(in,'Range',range); % where "range" is a two-column array. All values from numeric array "in" % within this range are pa...
github
SMASHtoolbox/release-master
sigprint.m
.m
release-master/+SMASH/+General/sigprint.m
5,426
utf_8
a54de82932c1f30a23459beac2063a91
% sigprint Uncertainty-based printing of signficant digits % % This function prints a numeric value based on a specified uncertainty. % [vstr,ustr]=sigprint(value,uncertainty); % The output strings "vstr" and "ustr" are formatted versions of the inputs % "value" and "uncertainty". The uncertainty string uses one % ...
github
SMASHtoolbox/release-master
structure2list.m
.m
release-master/+SMASH/+General/structure2list.m
551
utf_8
fcd5c18764665a032be6529131f495d7
% structure2list Convert a structure to a name/value list % % This function converts a MATLAB structure to a cell array of name/value % pairs. % list=structure2list(data); % % See also SMASH.General % % % created March 3, 2016 by Daniel Dolan (Sandia National Laboratories) % function list=structure2list(data) % m...
github
SMASHtoolbox/release-master
testColor.m
.m
release-master/+SMASH/+General/testColor.m
1,393
utf_8
6a41f8fc1b1418501ca51d5241725380
% testColor Test color value % % This function determines if a specified value is a valid color % specification. % >> result=testColor(value) % The output "result" is true if the input value is: % -A three-column array of values in the range [0 1]. % -A short/long color name recognized by MATLAB. % ...
github
SMASHtoolbox/release-master
dumpStructure.m
.m
release-master/+SMASH/+General/dumpStructure.m
1,293
utf_8
bc3b8b744269e22f85fbfb732e6b47be
% dumpStructure Dump structure to a cell array of strings % % This function dumps the contents of a structure to a cell array of % strings. % output=dumpStructure(data); % Each element of the output array corresponds to one structure field with % the format 'name : value'. Compound field names are shown for nested ...
github
SMASHtoolbox/release-master
enprint.m
.m
release-master/+SMASH/+General/enprint.m
2,235
utf_8
19228a9e66fa79382db1f856e918b88c
% enprint Print with engineering notation % % This function prints a number with engineering notation. % result=enprint(number); % The output "result" displays the number in modified scientific notation. % -Exponents are always factors of three. % -Mantissa and exponents signs are always displayed. % The default...
github
SMASHtoolbox/release-master
testNumber.m
.m
release-master/+SMASH/+General/testNumber.m
1,736
utf_8
053545cce7cc8f891bfa9253b073ff09
% testNumber Apply number tests % % This function function applies various number tests to a variable. A % basic call: % >> result=testNumber(value); % determines if the variable "value" contains a single, finite number (not NaN or % an empty value). Additional tests--positive, negative, integer, and % finite--can...
github
SMASHtoolbox/release-master
DataClass.m
.m
release-master/+SMASH/+General/@DataClass/DataClass.m
7,729
utf_8
92b6a68719e2b9b40c5d737da28a205c
% This class defines core properties and methods for objects that store % data. The class is meant primarily as a superclass, but can be called % directly. The Signal and Image classes (located in SMASH.SignalAnalysis % and SMASH.ImageAnalysis, respectively) are based on this class. % % See also SMASH, SMASH.General....
github
SMASHtoolbox/release-master
comment.m
.m
release-master/+SMASH/+General/@DataClass/comment.m
598
utf_8
5e7ff550e0ccec2b4ff4d431aac1752b
% comment Edit comments associated with an object % % This method edits the "Comemnts" property of an object. When invoked: % >> object=comment(object); % a graphical window shows the existing description and allow changes to be % made. % % See also DataClass % % % created November 14, 2013 by Daniel Dolan (Sandia...
github
SMASHtoolbox/release-master
revealMethod.m
.m
release-master/+SMASH/+General/@DataClass/revealMethod.m
640
utf_8
0a6848b094b9329e2ba6f025bba6ed28
% revealMethod remove methods from the HiddenMethod list % % Usage: % >> object=revealMethod(object,name1,name2,...); % % See also DataClass, hideMethod % % % created November 14, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=revealMethod(object,varargin) for m=1:numel(varargin) if ~ism...
github
SMASHtoolbox/release-master
concealProperty.m
.m
release-master/+SMASH/+General/@DataClass/concealProperty.m
748
utf_8
9063c1a1b6f4be60d32afa2078f19f94
% hideProperty Add properties to the ConcealedProperties list % % Usage: % >> object=hideProperty(object,name1,name2,...) % % See also DataClass, revealProperty % % % created November 14, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=concealProperty(object,varargin) for m=1:numel(varargin) ...
github
SMASHtoolbox/release-master
doc.m
.m
release-master/+SMASH/+General/@DataClass/doc.m
610
utf_8
0aee5b82c3dfbe9998ec571f4853863c
% DOC Access documentation for a class object % % This method accesses documentation for an existing object, bypassing the % need for an absolute class name. % >> object=Package.Class(...); % create object % >> doc(object); % access class documentation % >> doc(object,Method); % access method documentation % %...
github
SMASHtoolbox/release-master
store.m
.m
release-master/+SMASH/+General/@DataClass/store.m
1,444
utf_8
74e8469e9c48152a1206d7e95553215e
% store Store object in an archive % % This method stores an object in a Sandia Data Archive (SDA) file. % >> store(object,filename,label); % The file name must have a *.sda extension (case insensitive). The object % label must be a text string not already present in the archive file. % Labels can use any number A...
github
SMASHtoolbox/release-master
revealProperty.m
.m
release-master/+SMASH/+General/@DataClass/revealProperty.m
675
utf_8
94502f765175b5446a02c0c3a671e67b
% revealProperty Remove properties from the ConcealedProperties list % % Usage: % >> object=revealProperty(object,name1,name2,...); % % See also DataClass,hideProperty % % % created November 14, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=revealProperty(object,varargin) for m=1:numel(vara...
github
SMASHtoolbox/release-master
create.m
.m
release-master/+SMASH/+General/@DataClass/create.m
249
utf_8
cad62b17e7aedbc65ae1c86f29052406
% create Create DataClass object from numeric data function object=create(object,varargin) Narg=numel(varargin); assert(Narg==1,'ERROR: invalid number of inputs'); assert(isnumeric(varargin{1}),'ERROR: invalid input'); object.Data=varargin{1}; end
github
SMASHtoolbox/release-master
updateHistory.m
.m
release-master/+SMASH/+General/@DataClass/updateHistory.m
324
utf_8
4754bf99f9302ff932d3f2f7c65a244f
% updateHistory Append calling function to the ObjectHistory list % % Usage: % >> object=updateHistory(object); % % % created November 14, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=updateHistory(object) callstack=dbstack('-completenames'); object.ObjectHistory{end+1}=callstack(2).name; ...
github
SMASHtoolbox/release-master
restore.m
.m
release-master/+SMASH/+General/@DataClass/restore.m
251
utf_8
2a341d8b685af87bf3caae054227d21b
% restore Restore DataClass object from an archive function object=restore(data) object=SMASH.General.DataClass(NaN); name=fieldnames(data); for n=1:numel(name) if isprop(object,name{n}) object.(name{n})=data.(name{n}); end end end
github
SMASHtoolbox/release-master
help.m
.m
release-master/+SMASH/+General/@DataClass/help.m
570
utf_8
fa348a6051edc1b1be58408d94b4f03b
% HELP Access help for a class object % % This method accesses help for an existing object, bypassing the % need for an absolute class name. % >> object=Package.Class(...); % create object % >> help(object); % access class help % >> help(object,Method); % access method help % % See also DataClass, doc % % % c...
github
SMASHtoolbox/release-master
concealMethod.m
.m
release-master/+SMASH/+General/@DataClass/concealMethod.m
721
utf_8
28466763c9a9e5f5f1a3d2d949b86d65
% hideMethod Add method(s) to the ConcealedMethod list % % Usage: % >> object=hideMethod(object,name1,name2,...); % % See also DataClass, revealMethod % % % created November 14, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=concealMethod(object,varargin) for m=1:numel(varargin) if ~isme...
github
SMASHtoolbox/release-master
limit.m
.m
release-master/+SMASH/+General/@DataClass/old/limit.m
741
utf_8
6d98188bf30a5fc63991f79dc55dbe98
% LIMIT Limit object to a region of interest % % This method... % % See also DataAccess % % % created % function object=limit(object,varargin) % apply limit array N=numel(varargin); for n=1:N % verify Grid and LimitIndex properties Grid=sprintf('Grid%d',n); if ~isprop(object,Grid) && isprop(object,'Grid')...
github
SMASHtoolbox/release-master
disp.m
.m
release-master/+SMASH/+General/@DataClass/old/disp.m
2,536
utf_8
69bfe2422fed90eb752c1b95c44765cc
% DISP Display object properties and methods % % This method provides a consistent display format for data objects. It % can be invoked explicitly: % >> disp(object); % or automatically by the absence of a semicolumn at the end of a line. % >> object % By default, only visible properties and methods of the obje...
github
SMASHtoolbox/release-master
project.m
.m
release-master/+SMASH/+General/@ScalarSpaceGroup/project.m
115
utf_8
f212c1ce293cfb8dfa9c7c51733fc39d
% UNDER CONSTRUCTION % % This method projects space values onto a a function result=project(object,varargin) end
github
SMASHtoolbox/release-master
lookup.m
.m
release-master/+SMASH/+General/@ScalarSpaceGroup/lookup.m
134
utf_8
3e79dc22f3bcc3dd3154174d5ddcb041
% UNDER CONSTRUCTION % % This method looks up space values at specified grid locations... function result=lookup(object,varargin) end
github
SMASHtoolbox/release-master
apply.m
.m
release-master/+SMASH/+General/@GraphicOptions/apply.m
2,456
utf_8
206d7ea38977876a4ad779a1a2e7ce5b
% apply Apply graphic options % % This method applies graphic objects to a target object. % >> apply(object,target); % The input "target" must be a graphic handle or an array of handles. % % By default, this method applies options to the target object and all of % its parent objects (up to the figure level). Pass...
github
SMASHtoolbox/release-master
delete.m
.m
release-master/+SMASH/+General/@DataStack/delete.m
1,048
utf_8
e6fa4229e6ef087cfb7b60a7a3642a08
% delete Delete stack(s) % % This method deletes one or more data stacks from memory. Individual % stacks should be deleted by name: % DataStack.delete(name); % individual stack % DataStack.delete(name1,name2,...); % multipe stacks % % Calling the method with no input: % DataStack.delete(); % deletes *all* st...
github
SMASHtoolbox/release-master
probe.m
.m
release-master/+SMASH/+General/@DataStack/probe.m
970
utf_8
b79b88b7fd4be667ce12888cb20eeaa9
% probe Probe data stacks % % This method probes existing data stacks. When called without input: % list=DataStack.probe(); % the name of all data stacks is returned as a cell array of strings % (output "list"). Passing a defined stack name: % N=DataStack.probe(name); % returns the number of layers in that stac...
github
SMASHtoolbox/release-master
pop.m
.m
release-master/+SMASH/+General/@DataStack/pop.m
712
utf_8
87dfbc43db80bb9fba988603c1a55363
% pop Pop value off of data stack % % This method pops values off a named data stack. % value=DataStack.pop(name); % The input "name" must match the name of an existing stack, i.e. one that % has been pushed to during the current MATLAB session. % % Empty stacks, where the pop method has been called more times than...
github
SMASHtoolbox/release-master
push.m
.m
release-master/+SMASH/+General/@DataStack/push.m
548
utf_8
1b8d54c91369923476db980fd797974f
% push Push value onto data stack % % This method pushes a value onto a named data stack. % DataStack.push(name,value); % The input "name" must be a valid MATLAB variable name. The input "value" % is pushed onto that stack. % % See also pop, probe, isvarname % % % created November 11, 2018 by Daniel Dolan (Sandia...
github
SMASHtoolbox/release-master
manageStack.m
.m
release-master/+SMASH/+General/@DataStack/private/manageStack.m
1,450
utf_8
d1d8487f2f04e96a89c6c8441c83b4b1
% Valid modes: % manageStack('push',name,value); % % value=manageStack('pop',name); % % list=manageStack('probe',name); % % manageStack('delete',name,...); % function varargout=manageStack(mode,varargin) mlock persistent StackMemory if isempty(StackMemory) StackMemory=struct(); end if strcmp(mode,'pus...
github
SMASHtoolbox/release-master
project.m
.m
release-master/+SMASH/+General/@VectorSpace/project.m
115
utf_8
f212c1ce293cfb8dfa9c7c51733fc39d
% UNDER CONSTRUCTION % % This method projects space values onto a a function result=project(object,varargin) end
github
SMASHtoolbox/release-master
lookup.m
.m
release-master/+SMASH/+General/@VectorSpace/lookup.m
134
utf_8
3e79dc22f3bcc3dd3154174d5ddcb041
% UNDER CONSTRUCTION % % This method looks up space values at specified grid locations... function result=lookup(object,varargin) end
github
SMASHtoolbox/release-master
group.m
.m
release-master/+SMASH/+General/@GroupedTable/group.m
1,192
utf_8
2f027ad0878392b0906e5aacb8be3931
% group Define group column and width % % This method defines group column and width. % object=group(object,column,width); % object=group(object,column); % default width is zero % The input "column" (integer) defines one column that is used to % segregrate data into distinct groups. % % The input "width" indicate...
github
SMASHtoolbox/release-master
view.m
.m
release-master/+SMASH/+General/@GroupedTable/view.m
5,149
utf_8
317a03cebcc1d1970efd7a149855f5e7
% view View grouped data % % This method displays grouped data plots in a new figure. % view(object,GridColumn,DataColumn); % The input "GridColumn" defines the column(s) used for the horizontal % axes. The input "Data" indicates the columns(s) used for the vertical % axes. Both of these inputs can be arrays, in w...
github
SMASHtoolbox/release-master
extract.m
.m
release-master/+SMASH/+General/@GroupedTable/extract.m
1,480
utf_8
075f355e8c3cc1134f05e657cbf2641e
% Extract Extract grouped data % % This method extracts grouped data from a table. % result=extract(object); % The output is a structure array of grouped data using all table columns % (including the group column). Fields in this structure include: % -'Data' for the extracted data of one group % -'Group' for ...
github
SMASHtoolbox/release-master
project.m
.m
release-master/+SMASH/+General/old/@Space/project.m
115
utf_8
f212c1ce293cfb8dfa9c7c51733fc39d
% UNDER CONSTRUCTION % % This method projects space values onto a a function result=project(object,varargin) end
github
SMASHtoolbox/release-master
lookup.m
.m
release-master/+SMASH/+General/old/@Space/lookup.m
134
utf_8
3e79dc22f3bcc3dd3154174d5ddcb041
% UNDER CONSTRUCTION % % This method looks up space values at specified grid locations... function result=lookup(object,varargin) end
github
SMASHtoolbox/release-master
apply.m
.m
release-master/+SMASH/+General/old/@PlotOptions/apply.m
2,284
utf_8
5af14043aa84f1e1c6ee1bf0885962fa
% apply Apply PlotOptions to existing graphic(s) % % This method applies settings from a PlotOptions object to an existing % graphic object. % >> apply(object,target); % The input "target" must be a graphic handle or an array of handles. % Settings are applied to the target and all its parent objects (axes, % figu...
github
SMASHtoolbox/release-master
PlotOptions.m
.m
release-master/+SMASH/+General/old/@PlotOptions/PlotOptions.m
4,448
utf_8
f14855008744aacbe5a4c51fdb7f2734
% This class manages options for graphical display. % % See also General, Options % % % created November 17, 2014 by Daniel Dolan (Sandia National Laboratory) % classdef PlotOptions < SMASH.General.Options %% methods (Hidden=true) function object=PlotOptions(varargin) % line properites ...
github
SMASHtoolbox/release-master
get.m
.m
release-master/+SMASH/+General/old/@Options/get.m
390
utf_8
55a6bbf894d4645c792d7c11bf6c2044
% get Reveal existing option value % % This method reads the value of an existing option. % >> value=get(object,name); % % See also Options, add, describe, set % % % created November 17, 2014 by Daniel Dolan (Sandia National Laboratory) % function value=get(object,name) index=findName(object.Name,name); assert(~...
github
SMASHtoolbox/release-master
add.m
.m
release-master/+SMASH/+General/old/@Options/add.m
2,104
utf_8
84eade23b1a80602a3fc64587f523902
% add Add option to an Options object % % This method adds a new option to an existing Options object. % >> object=add(object,name,default,allowed); % The inputs "name" and "default" are required. A unique name must be % specified--an error is thrown if the requested name is already in use. % The default value must...
github
SMASHtoolbox/release-master
remove.m
.m
release-master/+SMASH/+General/old/@Options/remove.m
830
utf_8
557aa6029bb1fb6c4ab02a2ae76d33f6
% remove Remove option from an Options object % % This method removes an existing option from an Options object. % >> object=remove(object,name); % % See also Options, add % % % created November 16, 2014 by Daniel Dolan (November 16, 2014) % function object=remove(object,name) % handle input assert(nargin==2,'ERR...
github
SMASHtoolbox/release-master
describe.m
.m
release-master/+SMASH/+General/old/@Options/describe.m
2,163
utf_8
73ce12ea1a3965ecb48d6c8ec23c5dd7
% describe Show/add option description % % This method shows object descriptions. % >> describe(object,name); % specific option % >> describe(object); % all options % % Option descriptions are also controlled with this method. To change a % description: % >> object=decribe(object,name,description); % wher...
github
SMASHtoolbox/release-master
convert.m
.m
release-master/+SMASH/+General/old/@Options/convert.m
924
utf_8
956bc36e74b6909f999ab9bb50120328
% convert Convert Options object to another format % % This method converts an Options object to a cell array or structure. % >> option=convert(object,'cell'); % >> option=convert(object,'structure'); % The default format 'cell' is convenient for passing options to function % as a name/value list. % >> [......
github
SMASHtoolbox/release-master
set.m
.m
release-master/+SMASH/+General/old/@Options/set.m
1,371
utf_8
a16bca5824e041d177ff608510f3da19
% set Change existing option value % % This method changes values in an existing option. % >> object=set(object,name,value); % Te requested value is tested against the option's allowed values (if % defined) before the assignment is made. % % Multiple options can be set at the same time. % >> object=set(object,na...
github
SMASHtoolbox/release-master
subsasgn.m
.m
release-master/+SMASH/+General/old/@Options/old/subsasgn.m
862
utf_8
833c907e1cf2e254d19e6b9ebb29f71a
function object=subsasgn(object,data,value) assert(numel(data)==1,'ERROR: invalid option name'); assert(strcmp(data.type,'.'),'ERROR: invalid option name') assert(isnumeric(value) | ischar(value),'ERROR: invalid value'); index=findName(object.Name,data.subs); assert(~isempty(index),'ERROR: invalid option name'); vali...
github
SMASHtoolbox/release-master
project.m
.m
release-master/+SMASH/+General/@ScalarSpace/project.m
115
utf_8
f212c1ce293cfb8dfa9c7c51733fc39d
% UNDER CONSTRUCTION % % This method projects space values onto a a function result=project(object,varargin) end
github
SMASHtoolbox/release-master
lookup.m
.m
release-master/+SMASH/+General/@ScalarSpace/lookup.m
134
utf_8
3e79dc22f3bcc3dd3154174d5ddcb041
% UNDER CONSTRUCTION % % This method looks up space values at specified grid locations... function result=lookup(object,varargin) end
github
SMASHtoolbox/release-master
trackLoop.m
.m
release-master/+SMASH/+MUI/trackLoop.m
3,886
utf_8
0db2b46c35a507eb73e7a08a61716ffb
% trackLoop Loop progress tracking % % This function tracks progress in serial/parallel for loops, letting users % know that a slow calculation is running. These reports may add several % seconds to the total execution time, so this feature is not recommended % for fast loops. % % An initial function call: % updateF...
github
SMASHtoolbox/release-master
setFonts.m
.m
release-master/+SMASH/+MUI/setFonts.m
3,811
utf_8
7953d5764494a9b53a0eff73a8a30bb6
% setFonts Control figure fonts % % This function controls the font settings used in *new* figures; Font % settings are specified in name/value pairs. % setFonts(name,value,...); % There are roughly 60 font settings across the various graphic objects % that can appear in a figure, but most of these fall into recurri...
github
SMASHtoolbox/release-master
findTags.m
.m
release-master/+SMASH/+MUI/findTags.m
1,098
utf_8
aec16944d7104b3c47c095915f4dafcd
% findTags Find tagged graphics % % This function finds tagged graphics within a parent object. % h=findTags(parent); % The output "h" is a structure of object handles named by tag; untagged % objects are *not* returned. % % The input "parent" indicates the parent object % % See also SMASH.MUI, guihandles % % % ...
github
SMASHtoolbox/release-master
slice.m
.m
release-master/+SMASH/+MUI/@Figure/slice.m
2,246
utf_8
aac7af9c44cdaca72c9e039825098a37
function slice(object,mode) switch mode case 'create' h=uitoggletool('Parent',object.ToolBar,... 'Tag','Slice','ToolTipString','Slice image',... 'Cdata',local_graphic('SliceIcon'),'Separator','off',... 'ClickedCallback',@callback); object.ToolButton.Slice=h; ...
github
SMASHtoolbox/release-master
dump.m
.m
release-master/+SMASH/+MUI/@Figure/dump.m
1,554
utf_8
eace90c781c1d70128a16023865ddcee
% % created April 2, 2018 by Daniel Dolan (Sandia National Laboratories) % function dump(object,mode) switch mode case 'create' h=uipushtool('Parent',object.ToolBar,... 'Tag','Dump','ToolTipString','Dump plots',... 'Cdata',local_graphic('DumpIcon'),'Separator','off',... ...
github
SMASHtoolbox/release-master
ROIstatistics.m
.m
release-master/+SMASH/+MUI/@Figure/ROIstatistics.m
6,086
utf_8
3675e5f57efad96085da6e3264dd98f6
function ROIstatistics(object,mode) switch mode case 'create' h=uitoggletool('Parent',object.ToolBar,... % stopped here 'Tag','ROIstatistics','ToolTipString','Region of interest (ROI) statistics',... 'Cdata',local_graphic('ROIicon'),'Separator','off',... 'ClickedCallback...
github
SMASHtoolbox/release-master
locate.m
.m
release-master/+SMASH/+MUI/@Figure/locate.m
3,278
utf_8
bb249fa5e464a6c131529027fd831893
% LOCATE Adjust Figure location % % This method adjusts the location of a Figure with respect to the entire % screen: % >> locate(object,location); % or a reference figure. % >> locate(object,location,reference); % reference is a figure handle % Valid locations are 'center' [default], 'North', 'South', 'East', % '...
github
SMASHtoolbox/release-master
manualscale.m
.m
release-master/+SMASH/+MUI/@Figure/manualscale.m
3,826
utf_8
04500b31e17e84c9ceecb22227c5ea49
function manualscale(object,mode) switch mode case 'create' h=uitoggletool('Parent',object.ToolBar,... 'Tag','ManualScale','ToolTipString','Manual scale',... 'Cdata',local_graphic('ManualScaleIcon'),'Separator','off',... 'ClickedCallback',@callback); object.ToolB...
github
SMASHtoolbox/release-master
datacursor.m
.m
release-master/+SMASH/+MUI/@Figure/datacursor.m
2,272
utf_8
baa75e24304be3e823649ca1d7c00b79
function datacursor(object,mode) switch mode case 'create' h=uitoggletool('Parent',object.ToolBar,... 'Tag','DataCursor','ToolTipString','Data cursor',... 'Cdata',local_graphic('DatatipIcon'),'Separator','off',... 'ClickedCallback',@callback); object.ToolButton.D...
github
SMASHtoolbox/release-master
clone.m
.m
release-master/+SMASH/+MUI/@Figure/clone.m
4,942
utf_8
1e1cb359903f833223474f55616b4014
% created August 4, 2013 by Daniel Dolan (Sandia National Laboratories) % revised August 5, 2013 by Daniel Dolan % -legends and colorbars now cloned with their source axes % revised May 15, 2014 by Daniel Dolan % -callbacks (button down, context, etc.) removed from cloned objects function clone(object,mode) switch...
github
SMASHtoolbox/release-master
help.m
.m
release-master/+SMASH/+MUI/@Figure/help.m
599
utf_8
64cfb2e8a1f571678ae4cf2441716e66
function help(object,mode) switch mode case 'create' h=uipushtool('Parent',object.ToolBar,... 'Tag','Help','ToolTipString','Toolbar help',... 'Cdata',local_graphic('HelpIcon'),'Separator','off',... 'ClickedCallback',@callback); object.ToolButton.help=h; case ...
github
SMASHtoolbox/release-master
export.m
.m
release-master/+SMASH/+MUI/@Figure/export.m
3,156
utf_8
b66536dcdec736bf054edc807df4f314
function export(object,mode) switch mode case 'create' h=uipushtool('Parent',object.ToolBar,'Tag','saveas',... 'ToolTipString','Export figure',... 'CData',local_graphic('SaveIcon'),... 'ClickedCallback',{@callback,object}); object.ToolButton.SaveAS=h; case 'h...
github
SMASHtoolbox/release-master
overlay.m
.m
release-master/+SMASH/+MUI/@Figure/overlay.m
5,366
utf_8
2c47b64c5bd14f0f60562d55fe35ba99
function overlay(object,mode) switch mode case 'create' h=uitoggletool('Parent',object.ToolBar,... 'Tag','overlay','ToolTipString','Overlay (x,y) data',... 'Cdata',local_graphic('OverlayIcon'),'Separator','off',... 'ClickedCallback',@callback); object.ToolButton....
github
SMASHtoolbox/release-master
local_graphic.m
.m
release-master/+SMASH/+MUI/@Figure/private/local_graphic.m
60,302
utf_8
c32c846bd76112618c0fce3ee3f788c9
% local_graphic : local graphics for MinimalFigure function cdata=local_graphic(name) switch name case 'AutoScaleIcon' cdata(:,:,1) = [ ... NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN ; ... NaN 255 255 255 255 255 255 255 255 255 255 255 255 255 255 NaN ; ... ...
github
SMASHtoolbox/release-master
verify.m
.m
release-master/+SMASH/+MUI/@Figure/private/verify.m
147
utf_8
6ba1c4cf0529a1557999bf619a8e2677
function verify(object) if ~isvalid(object) || ~ishandle(object.Handle) delete(object); error('ERROR: figure no longer exists'); end end
github
SMASHtoolbox/release-master
slice.m
.m
release-master/+SMASH/+MUI/@Figure/old/slice.m
1,553
utf_8
f3039feaca9d00a81e624742a01f1b75
function slice(fig,mode) toolbar=findobj(fig,'Tag','MinimalFigureToolbar'); toggle=findobj(toolbar,'Tag','slice'); switch mode case 'on' haxes=ValidAxes(fig); if numel(haxes)>0 data=get(toggle,'UserData'); set(fig,'WindowButtonUpFcn',@sliceCallback,... 'Point...
github
SMASHtoolbox/release-master
ValidTarget.m
.m
release-master/+SMASH/+MUI/@Figure/old/ValidTarget.m
292
utf_8
8935915541423fb86aea97a41c32c997
% function result=ValidTarget(target) result=false; % verify target is an axes object type=get(target,'Type'); if ~strcmp(type,'axes') return end % ignore legend and colorbar objects tag=get(haxes,'Tag'); if strcmp(tag,'legend') || strcmp(tag,'colorbar') return end result=true;
github
SMASHtoolbox/release-master
figure_old.m
.m
release-master/+SMASH/+MUI/@Figure/old/figure_old.m
9,472
utf_8
4f64dbc290db51f0817adafd5d3e13f6
% mui.figure : create a MUI figure %% main function and support functions function varargout=figure(varargin) % create figure fig=figure(varargin{:}); % create toolbar set(fig,'MenuBar','none','Toolbar','none','DockControls','off'); % create the toolbar data.figset{1}='Pointer'; data.figset{end+2}='PointerShapeCDat...
github
SMASHtoolbox/release-master
ROIstatistics.m
.m
release-master/+SMASH/+MUI/@Figure/old/ROIstatistics.m
7,130
utf_8
acdb6991010cab9a7a76709939dc33e9
% ROIstatistics : activate region of interest statistics for a figure % % This function permits auto scaling of select axes objects within a % figure. When active, clicking on an axes causes that axes to be auto % scaled; if the figure contains a single axes, it is auto scaled % immediately. The figure pointer is cha...
github
SMASHtoolbox/release-master
WindowButton.m
.m
release-master/+SMASH/+MUI/@Figure/old/WindowButton.m
1,281
utf_8
b81f745190476841b3d8b69ffd4df38c
% WindowButton : store/reset window button state and pointers % % Usage: % >> WindowButton(fig,'store'); % >> WindowButton(fig,'recall'); function WindowButton(fig,operation) field={... 'Pointer' 'PointerShapeCData' 'PointerShapeHotSpot' ... 'WindowButtonDownFcn' 'WindowButtonUpFcn' 'WindowButtonMotionFcn' ...
github
SMASHtoolbox/release-master
manualscale.m
.m
release-master/+SMASH/+MUI/@Figure/old/manualscale.m
4,505
utf_8
b3c2da3f7265363be69fb4feb437c80d
% manualscale : selective manual scaling for a figure % % This function permits manual scaling of select axes objects within a % figure. When active, clicking on an axes brings up a dialog box for % manually setting axis limits; if the figure contains a single axes, the dialog % comes up immediately. The figure point...
github
SMASHtoolbox/release-master
tightscale.m
.m
release-master/+SMASH/+MUI/@Figure/old/tightscale.m
1,924
utf_8
33ffd110aa1e220c8b758fb240d6a405
% tightscale : selective tight scaling for a figure % % This function permits tight scaling of select axes objects within a % figure. When active, clicking on an axes causes that axes to be tight % scaled; if the figure contains a single axes, it is tight scaled % immediately. The figure pointer is changed to a cross...
github
SMASHtoolbox/release-master
autoscale.m
.m
release-master/+SMASH/+MUI/@Figure/old/autoscale.m
1,163
utf_8
b74a02254b50cd9a5bea9f65c1d730df
function autoscale(fig,state) % handle input if nargin<2 error('ERROR: figure handle and state input are required'); end % determine if more than one axes is present haxes=findobj(fig,'Type','axes'); if numel(haxes)==1 axis(haxes,'auto'); return end switch lower(state) case 'on' WindowBu...
github
SMASHtoolbox/release-master
clone.m
.m
release-master/+SMASH/+MUI/@Figure/old/clone.m
2,214
utf_8
7c67dcff594abcfde39924e54b0470cf
% clone : selectively clone axes to its own figure % % This function permits cloning of select axes objects within a % figure. When active, clicking on an axes makes a copy of that axes in a % new figure .The figure pointer is changed to a crosshair % while cloning is active. % % Usage: % >> clone on; % activate clon...
github
SMASHtoolbox/release-master
MinimalFigure.m
.m
release-master/+SMASH/+MUI/@Figure/old/MinimalFigure.m
37,529
utf_8
ec3fa00ea70e64e5c799b55dbfa60538
% MinimalFigure: create a minimalistic figure useful for GUIs % % This function creates a MATLAB non-dockable, menu-less figure with a % custom toolbar. Aside from these customizations, all standard figure % features can be specified as inputs: % MinimalFigure('Units','pixels','Position',[0 0 600 480]); % example % o...
github
SMASHtoolbox/release-master
overlay.m
.m
release-master/+SMASH/+MUI/@Figure/old/overlay.m
5,389
utf_8
a2518665980714c1d63f6c31b7671dbb
% overlay : overlay data on an existing axes % % This function overlays (x,y) data from a file on selected axes object. % The figure pointer is changed to a crosshair while overlay is % active. % % Usage: % >> overlay on; % activate overlay on current figure % >> overlay off; % deactivate overlay on current figure % ...
github
SMASHtoolbox/release-master
tracking.m
.m
release-master/+SMASH/+MUI/+GUILayout/+uix/tracking.m
5,988
utf_8
fccbfb28138da702922a5a605bcb423c
function varargout = tracking( varargin ) %tracking Track anonymized usage data % % tracking(p,v,id) tracks usage to the property p for the product version % v and identifier id. No personally identifiable information is tracked. % % r = tracking(...) returns the server response r, for debugging purposes. %...
github
SMASHtoolbox/release-master
Text.m
.m
release-master/+SMASH/+MUI/+GUILayout/+uix/Text.m
15,451
utf_8
8acacfb7d4da6e4b084f28ff1ebc6855
classdef Text < matlab.mixin.SetGet %uix.Text Text control % % t = uix.Text(p1,v1,p2,v2,...) constructs a text control and sets % parameter p1 to value v1, etc. % % A text control adds functionality to a uicontrol of Style text: % * Set VerticalAlignment to 'top', 'middle' or 'bo...
github
SMASHtoolbox/release-master
loadIcon.m
.m
release-master/+SMASH/+MUI/+GUILayout/+uix/loadIcon.m
3,228
utf_8
15fc42b7b92439d8ef2b48cac7828dbd
function cdata = loadIcon( filename, bgcol ) %loadIcon Load an icon and set the transparent color % % cdata = uix.loadIcon(filename) loads the icon from the specified % filename. For PNG files with transparency, the transparent pixels are % set to NaN. For other files, pixels that are pure green are set t...
github
SMASHtoolbox/release-master
ChildObserver.m
.m
release-master/+SMASH/+MUI/+GUILayout/+uix/ChildObserver.m
9,050
utf_8
ca853750869b05d4214ddf3474a93712
classdef ( Hidden, Sealed ) ChildObserver < handle %uix.ChildObserver Child observer % % co = uix.ChildObserver(o) creates a child observer for the graphics % object o. A child observer raises events when objects are added to % and removed from the property Children of o. % % Se...
github
SMASHtoolbox/release-master
Empty.m
.m
release-master/+SMASH/+MUI/+GUILayout/+uix/Empty.m
2,730
utf_8
8370636fc1b842d73a35d3f44fb23483
function obj = Empty( varargin ) %uix.Empty Create an empty space % % obj = uix.Empty() creates an empty space that can be used to add gaps % between elements in layouts. % % obj = uix.Empty(param,value,...) also sets one or more property % values. % % See the <a href="matlab:doc uix.Empty">document...
github
SMASHtoolbox/release-master
reset.m
.m
release-master/+SMASH/+MUI/@Waitbar/reset.m
393
utf_8
20d9e835dceb1c212103d99bc29edb08
% RESET Rest Waitbar object % % This method resets a Waitbar object to zero progress. % >> reset(object); % % See also Waitbar, increment, update % % created October 10, 2013 by Daniel Dolan (Sandia National Laboratories) function reset(object) if ~ishandle(object.Handle) error('ERROR: wait bar no longer exis...
github
SMASHtoolbox/release-master
increment.m
.m
release-master/+SMASH/+MUI/@Waitbar/increment.m
560
utf_8
40bf9b3b3c7209471c3c840e031f3b03
% INCREMENT Increment Waitbar object % % This method advances Waitbar object by the specified increment. The % graphical bar is updated when the accumulated increments exceed the % threshold. % % % See also Waitbar, reset, update % % created October 9, 2013 by Daniel Dolan (Sandia National Laboratories) function incr...
github
SMASHtoolbox/release-master
update.m
.m
release-master/+SMASH/+MUI/@Waitbar/update.m
1,167
utf_8
160d07633c5662d42e312cc4d2fecd3b
% UPDATE Update Waitbar object % % This method updates a Waitbar object *if* the requested state differs % from the current state by more than the threshold amount. % % Example: % >> w=Waitbar('Calculation progress','progress'); % Progress starts at 0 % w.Threshold=0.25; % set threshold at 25% % update(w,0.10)...
github
SMASHtoolbox/release-master
promote.m
.m
release-master/+SMASH/+MUI/@Thumbnail/promote.m
1,702
utf_8
36534dc29db955260ed60227a0a5a771
% promote Promote axes to the primary % % This method promotes a specified axes to the be primary axes. % promote(object,haxes); % NOTE: there must be at least two axes in the parent object (figure, % uipanel, or uitab) for this operation to work. % % See also Thumbnail, refresh % % % created August 16, 2017 by Da...
github
SMASHtoolbox/release-master
refresh.m
.m
release-master/+SMASH/+MUI/@Thumbnail/refresh.m
2,171
utf_8
8023bb7a9b2b28cc7e1d4a188f727fa4
% refresh Update axes % % This methods updates the locations and appearances of axes in a thumbnail % arrangment. % refresh(object); % Changing the size/location property automatically calls this method. % Manual refreshes are recommended when new plot objects (lines, images, % etc.) are added, especially when these...
github
SMASHtoolbox/release-master
get.m
.m
release-master/+SMASH/+MUI/@Line/get.m
305
utf_8
cf33f085d363fcb973c409557051538b
% This method gets custom line property values % % >> get(object,name); % % created August 3, 2013 by Daniel Dolan (Sandia National Laboratories) function output=get(object,name) if (nargin<2) || isempty(name) get(object.Handle); else output=get(object.Handle,lower(name)); end end