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
OceanOptics.m
.m
release-master/+SMASH/+FileAccess/@CustomFile/private/OceanOptics.m
995
utf_8
45c4fc05971c7e29d3d2d2dd509e5760
% OceanOptics : read Ocean Optics spectrometer data % % Usage: % >> [wavelength,counts,rate,header]=OceanOptics(filename); % % created 11/12/2010 by Daniel Dolan (Sandia National Laboratories) function [wavelength,counts,rate,header]=OceanOptics(filename) % handle input if (nargin<1) || isempty(filename) [filena...
github
SMASHtoolbox/release-master
OptronicLabDump.m
.m
release-master/+SMASH/+FileAccess/@CustomFile/private/old/OptronicLabDump.m
2,262
utf_8
2cff925ceccdd1829595989b262a8c0b
% OptronicLabDump : read dump file from Optronic spectrometer % % [data,header,extra,rawdata]=OptronicLabDump(filename) % function [data,header,extra,rawdata]=OptronicLabDump(filename) if nargin<1 filename=[]; end if isempty(filename) [fname,pname]=uigetfile({... '*.txt;*.TXT','Text files (*.txt,*.T...
github
SMASHtoolbox/release-master
append.m
.m
release-master/+SMASH/+FileAccess/@File/append.m
726
utf_8
4aab16b42a2315a75fe6cbcfa293d1c8
% append Append text to file % % This method appends text to a File object. % append(object,data); % The input "data" can be a character string or a cell array of character % strings; in the latter case, each element is written on a separate line. % % See also File % % % created October 17, 2018 by Daniel Dolan % f...
github
SMASHtoolbox/release-master
select.m
.m
release-master/+SMASH/+FileAccess/@File/select.m
1,036
utf_8
011d09d15475b978b7401337b2e84e3c
% SELECT Select file associated with a File object % % This is a generic select method for all subclasses of File. % % Syntax: % >> object=select(object,[filename]); % % function object=select(object,name) if (nargin<2) || isempty(name) [filename,pathname]=uigetfile(object.FilterSpec,object.DialogTitle); i...
github
SMASHtoolbox/release-master
edit.m
.m
release-master/+SMASH/+FileAccess/@File/edit.m
263
utf_8
69c308b2b5f63c4aae6eb419b7e08723
% edit Edit text file % % This method opens the referenced text file in the MATLAB editor. % edit(object); % % See also File % function edit(object) try edit(fullfile(object.PathName,object.FileName)); catch error('ERROR: cannot edit file'); end end
github
SMASHtoolbox/release-master
wipe.m
.m
release-master/+SMASH/+FileAccess/@File/wipe.m
706
utf_8
b36faa5bc47afc73eb9c87fc56430a79
% wipe Wipe file contents % % This method wipes the contents of a file without deleting it. % wipe(object); % function wipe(object,prompt) % manage input if (nargin < 2) || isempty(prompt) || strcmpi(prompt,'-prompt') prompt=true; elseif strcmpi(prompt,'-noprompt') prompt=false; else error('ERROR: inva...
github
SMASHtoolbox/release-master
read.m
.m
release-master/+SMASH/+FileAccess/@Spreadsheet/read.m
2,707
utf_8
c176e53da0a3ec72631c7b7de6602f81
% read Read worksheet data % % This method reads all data from one worksheet. % data=read(object,sheet); % The input "sheet" should be omitted when reading text files; omitting this % input in an Excel file automatically references the first worksheet. % Worksheets can be specified by name ('Sheet1') or numeric inde...
github
SMASHtoolbox/release-master
view.m
.m
release-master/+SMASH/+FileAccess/@Spreadsheet/view.m
1,276
utf_8
2c988546e0f53024dee762e22e800e6c
% view View worksheet data % % This method displays worksheet data in an interactive table. % view(object); % first sheet or text data % view(object,sheet); % specified sheet % For Excel files, sheets can be specified by name or numeric index. % % See also Spreadsheet, read, extract % % % created January 23, 201...
github
SMASHtoolbox/release-master
extract.m
.m
release-master/+SMASH/+FileAccess/@Spreadsheet/extract.m
2,129
utf_8
c51ddd191a4d86c01d5fd041fe6279ac
% extract Extract worksheet data % % This method extracts data from a worksheet. % data=extract(object); % first sheet or text file % data=extract(object,sheet); % specified sheet % For Excel files, sheets can be specified by name or numeric index. % % Extracted data is return as a cell array of character strings...
github
SMASHtoolbox/release-master
read.m
.m
release-master/+SMASH/+FileAccess/@SimpleDatabase/read.m
1,397
utf_8
5273fad23cb6517af46cf956d9e7c626
% read Read from database file % % This method reads all records from the database file into a structure % array. % >> data=read(object); % % See also SimpleDatabase, write % % % created May 30, 2014 by Daniel Dolan (Sandia National Laboratories) % function data=read(object) % extract records from database body [p...
github
SMASHtoolbox/release-master
add.m
.m
release-master/+SMASH/+FileAccess/@SimpleDatabase/add.m
949
utf_8
9b0df68bd0b6f47b2bf322d092f6d244
% add Add to the database file % % This method adds a structure array to the end of *existing* database file. % >> add(object,record); % % See also SimpleDatabase, probe, write % % % created May 30, 2014 by Daniel Dolan (Sandia National Laboratories) % function add(object,record) % verify input assert(nargin>=2,'E...
github
SMASHtoolbox/release-master
probe.m
.m
release-master/+SMASH/+FileAccess/@SimpleDatabase/probe.m
2,069
utf_8
8a87114c2576f0dc0f6c785114cc591b
% probe Probe database file % % This method probes an exisiting database file. When called with no % outputs: % >> probe(object); % the method prints a short summary of the database's contents. More % complete information is obtained with outputs. % >> [parameter,header,body]=probe(object); % % See also SimpleD...
github
SMASHtoolbox/release-master
remove.m
.m
release-master/+SMASH/+FileAccess/@SimpleDatabase/remove.m
516
utf_8
15557f049be65df9470d3e01c9214e80
% remove Remove record(s) from the database file % % This method removes records from an exisiting database file.% % >> remove(object,number); % Records are specified by a single number or an array of numbers. % % See also SimpleDatabase, sort, view % % % created May 30, 2014 by Daniel Dolan (Sandia National Labora...
github
SMASHtoolbox/release-master
sort.m
.m
release-master/+SMASH/+FileAccess/@SimpleDatabase/sort.m
1,178
utf_8
c4ed0c5494df9fe634b72206cc3e70b5
% sort Sort database records % % This method sorts records in an exisiting database file. Sorting is % performed on a specified field name. % >> sort(object,name); % A third input controls the sort order. % >> sort(object,name,'ascend'); % default behavior % >> sort(object,name,'descend'); % % See also SimpleDa...
github
SMASHtoolbox/release-master
write.m
.m
release-master/+SMASH/+FileAccess/@SimpleDatabase/write.m
1,942
utf_8
81005d039b0451037712bad5f899033c
% write Write to database file % % This method writes a structure array to the database file. % >> write(object,data); % All existing information in this file is overwritten! To preserve % existing database records, use the "add" method. % % See also SimpleDatabase, add % % % created May 30, 2014 by Daniel Dolan...
github
SMASHtoolbox/release-master
view.m
.m
release-master/+SMASH/+FileAccess/@SimpleDatabase/view.m
564
utf_8
1f3418dce7ab3e7cb8dd81ce95048f04
% view Display one or more records % % This method displays specific records from the database file in the % command window. % >> view(object,index); % The input "index" can specify a specific record or multipl records. % % See also SimpleDatabase, probe, remove, sort % % % created May 30, 2014 by Daniel Dolan (San...
github
SMASHtoolbox/release-master
read.m
.m
release-master/+SMASH/+FileAccess/@TagFile/read.m
4,419
utf_8
c05b4ae52ae36e9a335f1c1725dcc582
% read Read tagged block % % This method reads the text block associated with a particular tag. % out=read(object,tag); % 'raw' format % out=read(object,tag,format); % By default, the output "out" is a cell array of character strings % representing the raw block data. Additional block formats can be % specifie...
github
SMASHtoolbox/release-master
probe.m
.m
release-master/+SMASH/+FileAccess/@TagFile/probe.m
2,384
utf_8
f37479e6bc55949fb26ea21e484b5189
% probe Probe tagged file % % This method looks for tagged blocks within a text file. % list=probe(object); % return list of tags % probe(object); % prints list in the command window % % Repeated tags found in the same file will generate warnings. % % See also TagFile, read, write % % % created October 16, 2018 ...
github
SMASHtoolbox/release-master
write.m
.m
release-master/+SMASH/+FileAccess/@TagFile/write.m
4,135
utf_8
a4e09c75583b1c14b136f358123f9581
% write Write tagged block % % This method writes a text block using a specified tag. % write(object,tag,data); % The block format is determined automatically from the data type. % -Two-dimensional numeric and logical arrays are written directly. % -Table objects are written as comma-separated columns. % -C...
github
SMASHtoolbox/release-master
butterworth.m
.m
release-master/+SMASH/+SignalAnalysis/butterworth.m
1,040
utf_8
acd39b2866368051b5d22202569631da
% butterworth Butterworth filter transfer function % % This function generates the transfer function for a Butterworth filter. % transfer=butterworth(cutoff,order); % The inputs of the function define the filter's cutoff frequency and % order. The output "transfer" is a function handle that accepts frequency % as i...
github
SMASHtoolbox/release-master
square.m
.m
release-master/+SMASH/+SignalAnalysis/square.m
2,106
utf_8
31964a0d7fe8af0859c59819887ef2bf
% square Genereate a square wave % % This function generates a square wave on a specified time base. % value=square(time,frequency,duty,delay); % The output "value" is an array of zeros and ones of the same size/shape as % the input "time". The remaining inputs provide optional modifications to % that square wave. ...
github
SMASHtoolbox/release-master
SignalGUI.m
.m
release-master/+SMASH/+SignalAnalysis/SignalGUI.m
46,924
utf_8
58f9beae60492491b43cece3549e658b
%% SignalGUI is a GUI interface for the SMASH.SignalAnalysis.Signal package % % To open the GUI simply call the method: % >> SMASH.SignalAnalysis.SignalGUI % % There are four menus: Signal, Edit, Analyze, Plot. % In addition to the menu bar, two toolbars are available. The one next to % the help toolbar is 'Selected...
github
SMASHtoolbox/release-master
sinc.m
.m
release-master/+SMASH/+SignalAnalysis/sinc.m
1,749
utf_8
de13249c01e6c6023441515f4215903d
% sinc Sinc function % % This function calculates y=sin(x)/x for all values of x. % y=sinc(x); % The input "x" must be a real floating point array. The output "y" is an % array of the same size/shape as "x" with the same floating point % precision. % % The normalized sinc function y=sin(pi*x)/(pi*x) can be requeste...
github
SMASHtoolbox/release-master
generate.m
.m
release-master/+SMASH/+SignalAnalysis/@PulseTrain/generate.m
1,302
utf_8
b972816e2b184e2014d4d9d1d7a145b6
% generate Generate pulse train % % This method generates a pulse train signal. % result=generate(object); % The output "result" is a Signal object. % % NOTE: this method is automatically called by the dependent property % Output. There should be no reason for user to call the method directly. % % See also PulseTra...
github
SMASHtoolbox/release-master
PulseTrain.m
.m
release-master/+SMASH/+SignalAnalysis/@PulseTrain/PulseTrain.m
4,904
utf_8
e7474131ebacf83245794441f8583d65
% UNDER construction % % Pulse train class % % This class describes and generates pulsed train signals. These trains % are defined on a uniformly spaced grid, which can be specified % explicitly: % object=PulseTrain(x); % or from a Signal object source. % object=PulseTrain(source); % % See also SMASH.SignalAnaly...
github
SMASHtoolbox/release-master
view.m
.m
release-master/+SMASH/+SignalAnalysis/@PulseTrain/view.m
521
utf_8
e9078c312e29a752fafe93441d3bd6ac
% view View pulse train % % This method displays the current pulse train in a new figure. % view(object); % % See also PulseTrain % % % created April 26, 2019 by Daniel Dolan (Sandia National Laboratories) % function varargout=view(object) output=object.Output; if nargout == 0 view(output); else varargout=...
github
SMASHtoolbox/release-master
connes.m
.m
release-master/+SMASH/+SignalAnalysis/@WindowFunction/connes.m
1,155
utf_8
89605bec065cebfa7c93c3caceb095f7
% connes Generate Connes window % % This *static* method generates a Connes window of specified size. % y=WindowFunction.connes(N); % integer "N" (default value is 101) % y=WindowFunction.connes(array); % determine N from "array" size. % Requesting a second output: % [y,x]=WindowFunction.connes(...); % return...
github
SMASHtoolbox/release-master
flattop.m
.m
release-master/+SMASH/+SignalAnalysis/@WindowFunction/flattop.m
1,711
utf_8
1519dfdc894439cd01ab0f7ce1586ec3
% flattop Generate flat-top window % % This *static* method generates a flat-top window of specified size. % y=WindowFunction.flattop(N); % integer "N" (default value is 101) % y=WindowFunction.flattop(array); % determine N from "array" size. % Requesting a second output: % [y,x]=WindowFunction.flattop(...); ...
github
SMASHtoolbox/release-master
vorbis.m
.m
release-master/+SMASH/+SignalAnalysis/@WindowFunction/vorbis.m
1,054
utf_8
53f66370cd5a90c234910b91030831f4
% vorbis Generate Vorbis window % % This *static* method generates a Vorbis window of specified size. % y=WindowFunction.vorbis(N); % integer "N" (default value is 101) % y=WindowFunction.vorbis(array); % determine N from "array" size. % Requesting a second output: % [y,x]=WindowFunction.vorbis(...); % returns...
github
SMASHtoolbox/release-master
hann.m
.m
release-master/+SMASH/+SignalAnalysis/@WindowFunction/hann.m
1,029
utf_8
79d07805451d2458248bbf99858088e8
% hann Generate Hann window % % This *static* method generates a Hann window of specified size. % y=WindowFunction.hann(N); % integer "N" (default value is 101) % y=WindowFunction.hann(array); % determine N from "array" size. % Requesting a second output: % [y,x]=WindowFunction.hann(...); % returns an array of...
github
SMASHtoolbox/release-master
blackman.m
.m
release-master/+SMASH/+SignalAnalysis/@WindowFunction/blackman.m
1,065
utf_8
57bad98a53acafc909b26d1700965bc0
% blackman Generate Blackman window % % This *static* method generates a Blackman window of specified size. % y=WindowFunction.blackman(N); % integer "N" (default value is 101) % y=WindowFunction.blackman(array); % determine N from "array" size. % Requesting a second output: % [y,x]=WindowFunction.Blackman(......
github
SMASHtoolbox/release-master
psinc.m
.m
release-master/+SMASH/+SignalAnalysis/@WindowFunction/psinc.m
1,613
utf_8
39bbe37dd51cd597d931efc0816e1f31
% psinc Generate power cosine window % % This *static* method generates a power cosine window of specified size. % y=WindowFunction.psinc(N); % integer "N" (default value is 101) % y=WindowFunction.psinc(array); % determine N from "array" size. % Requesting a second output: % [y,x]=WindowFunction.psinc(...); ...
github
SMASHtoolbox/release-master
singla.m
.m
release-master/+SMASH/+SignalAnalysis/@WindowFunction/singla.m
1,665
utf_8
df34e9ffa9cda27e9a382f9cce268e13
% singla Generate Singla-Singh window % % This *static* method generates a Singla-Singh window of specified size. % y=WindowFunction.singla(N); % integer "N" (default value is 101) % y=WindowFunction.singla(array); % determine N from "array" size. % Requesting a second output: % [y,x]=WindowFunction.singla(.....
github
SMASHtoolbox/release-master
pcosine.m
.m
release-master/+SMASH/+SignalAnalysis/@WindowFunction/pcosine.m
1,577
utf_8
7ce9e745880d79719365efac3aa5e538
% pcosine Generate power cosine window % % This *static* method generates a power cosine window of specified size. % y=WindowFunction.pcosine(N); % integer "N" (default value is 101) % y=WindowFunction.pcosine(array); % determine N from "array" size. % Requesting a second output: % [y,x]=WindowFunction.pcosin...
github
SMASHtoolbox/release-master
bspline.m
.m
release-master/+SMASH/+SignalAnalysis/@WindowFunction/bspline.m
2,425
utf_8
f56944ffff860cf97b2f210df9f57de3
% bspline Generate B-spline window % % This *static* method generates a B-spline window of specified size. % y=WindowFunction.bspline(N); % integer "N" (default value is 101) % y=WindowFunction.bspline(array); % determine N from "array" size. % Requesting a second output: % [y,x]=WindowFunction.bspline(...); ...
github
SMASHtoolbox/release-master
tukey.m
.m
release-master/+SMASH/+SignalAnalysis/@WindowFunction/tukey.m
1,550
utf_8
3d9eba53aefc6479ead35eb9b3ba7a1d
% tukey Generate Tukey window % % This *static* method generates a Tukey window of specified size. % y=WindowFunction.tukey(N); % integer "N" (default value is 101) % y=WindowFunction.tukey(array); % determine N from "array" size. % Requesting a second output: % [y,x]=WindowFunction.tukey(...); % returns an a...
github
SMASHtoolbox/release-master
calculate.m
.m
release-master/+SMASH/+SignalAnalysis/@RedundantSignal/calculate.m
2,235
utf_8
fff8ca05bbee2fdf926756c7b7442528
% calculate Calculate source signal % % This method calculates the source signal from a set of redundant signals. % object=calculate(object); % The process begins with a reverse transformation, mapping measured data % to a set of equivalent signals. These signals are combined by weighted % average using the followi...
github
SMASHtoolbox/release-master
suggestRange.m
.m
release-master/+SMASH/+SignalAnalysis/@RedundantSignal/suggestRange.m
3,507
utf_8
0a3d883e20681c07bcdc13aa812ff360
% suggestRange Suggest measurement ranges % % This method suggest measurement ranges for specified source bound using % the current parameter state. % range=suggestRange(object,bound); % The input "bound" must be a two-element arry defining the maximumim and % minimum values of the source signal. The output "range"...
github
SMASHtoolbox/release-master
reset.m
.m
release-master/+SMASH/+SignalAnalysis/@RedundantSignal/reset.m
1,288
utf_8
2d55a0f8e0bf1616d759fdea257c939b
% reset Reset measurement % % This method resets measured signals % object=reset(object,data); % The input "data" must be a SignalGroup object. % % Labels, parameters, ranges, and noise levels are preserved *if* the number % of measurements does not change. Specifying a different number of % measurements changes th...
github
SMASHtoolbox/release-master
characterize.m
.m
release-master/+SMASH/+SignalAnalysis/@RedundantSignal/characterize.m
2,416
utf_8
2b9b85f686cb639799953e169e8423f7
% characterize Sinusoid characterization % % This method characterizes redundant measurements using a sinusoid that % spans a known range. % object=characterize(object,span); % use object data % object=characterize(object,span,ref); % use reference object % The input "span" must be an array of two numbers that de...
github
SMASHtoolbox/release-master
generate.m
.m
release-master/+SMASH/+SignalAnalysis/@RedundantSignal/generate.m
3,174
utf_8
e9c760939ac5be8ccd449d77d117aff9
% generate Generate redundant measurement % % This method generates a redundant measurement for a specified source % signal and parameter array. % object=RedundantSignal.generate(source,parameter); % The input "source" must be a Signal object, and the input "parameter" % must be a three-column array with at least tw...
github
SMASHtoolbox/release-master
summarize.m
.m
release-master/+SMASH/+SignalAnalysis/@RedundantSignal/summarize.m
872
utf_8
1f64279bf64dbff304ce4f586400663a
% summarize Summarize correction parameters % % This methods summarizes the redundant signal correction parameters. When % called with no output: % summarize(object); % these parameters are printed in the command window. Requesting an % output: % report=summarize(object); % returns correction parameters as a st...
github
SMASHtoolbox/release-master
view.m
.m
release-master/+SMASH/+SignalAnalysis/@RedundantSignal/view.m
2,011
utf_8
fe51e2599a5a36f4a853c9b3a38bddf6
% view View signals % % This method displays signals associated with a redundant measurement. % view(object); % show measured signals % view(object,'measurement'); % same as above % view(object,'source'); % show source signal % view(object,'weight'); % show signal weights % view(object,'all'); % show all...
github
SMASHtoolbox/release-master
weld.m
.m
release-master/+SMASH/+SignalAnalysis/@RedundantSignal/old/weld.m
2,173
utf_8
4b5873747666f84be15577ef98eb0029
% weld Weld measurements % % This method "welds" a set of redundant measurements, creating a % representation of the source signal. % result=weld(object); % The process begins with a reverse transformation, mapping measured data % to a set of equivalent signals. These signals are combined by weighted % average usin...
github
SMASHtoolbox/release-master
findRange.m
.m
release-master/+SMASH/+SignalAnalysis/@RedundantSignal/old/findRange.m
545
utf_8
2171f753ce173b1b850861518f204f0f
% object=findRange(object,source) function object=findRange(object,varargin) assert(~all(object.FixRange),'ERROR: all measurement ranges are fixed'); % manage M=object.NumberSignals; try source=SMASH.SignalAnalysis.SignalGroup(varargin{:}); catch ME throwAsCaller(ME); end assert(source.NumberSignals == M...
github
SMASHtoolbox/release-master
compareArrays.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/compareArrays.m
2,179
utf_8
432fa27405da40577fceb96fb855c7ed
% compareArrays Neighborhood array comparison % % This *static* method compares two arrays, determining if one set of % values is greater than the other over a specified neighborhood. % flag=SFR.compareArrays(data,reference,nhood); % The output "flag" is a logical array indicating where values of "data" % are larger...
github
SMASHtoolbox/release-master
evaluateWindow.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/evaluateWindow.m
490
utf_8
b3a04f62207ce3d9dac6eb757e87c82a
% hidden method % % time and frequency are normalized! function [time,window,frequency,transform]=evaluateWindow(object) time=linspace(-0.5,+0.5,object.FullPoints); time=time(:); window=object.Window.Function(time); N2=object.TransformPoints; [frequency,~,transform]=object.calculateFFT(window,N2,'all'); X=real(trans...
github
SMASHtoolbox/release-master
select.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/select.m
3,893
utf_8
60eb40f677f33f04a7ea89f1d7959cb2
% select Select region(s) of interest % % This method selects regions of interest for frequency reduction. This is % usually done interactively with an existing preview. % select(object,index); % Omitting the input "index" uses the most recent preview. An integer % index can be used to specify: % -The most rece...
github
SMASHtoolbox/release-master
generateExample.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/generateExample.m
4,208
utf_8
e8c885c686c9faff856085d91716ff3d
% generateExample Generate example object % % This *static* method generates example objects for SFR testing. % object=SFR.generateExample(name,RMS); % The input "name" indicates one of the following examples. % -'steady' is a constant-frequency signal (default). % -'slowchirp' is a signal where frequency i...
github
SMASHtoolbox/release-master
plot.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/plot.m
6,291
utf_8
d14651976352c4d09c54769e8d04fcfb
% plot Plot object data % % This method plots object data in a new figure. Several plot modes are % provided. % plot(object,'signal'); % time-domain signal (default) % plot(object,'amplitude'); % effective time-domain amplitude % plot(object,'window'); % time-domain window and its frequency-domain representat...
github
SMASHtoolbox/release-master
getResult.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/getResult.m
712
utf_8
762eb2eaaccb55d371f5459266bec24b
% hidden method function [data,label,index]=getResult(object,type,index) assert(isscalar(object),... 'ERROR: results can only be grabbed from scalar objects'); assert(testNumber(index),'ERROR: invalid result index'); assert(ischar(type),'ERROR: invalid result type'); type=lower(type); switch type case 'previ...
github
SMASHtoolbox/release-master
generateParameter.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/generateParameter.m
2,628
utf_8
30c387a7db851e6c1ed6c3a050847d65
% private method function parameter=generateParameter(object,option) parameter=option; parameter.SampleRate=object.SampleRate; parameter.RiseTime=object.RiseTime; parameter.FullPoints=object.FullPoints; parameter.StepPoints=object.StepPoints; parameter.PeakPoints=object.PeakPoints; N2=object.TransformPoints; paramet...
github
SMASHtoolbox/release-master
clean.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/clean.m
455
utf_8
f8131e7c0f67f3687a772247fe5a2e09
% clean Remove preview/reduction backups % % This method removes all preview and reduction backups, leaving only the % most recent results. % clean(object); % % See also SFR, reduce, preview % function clean(object) for n=1:numel(object) data=object(n).Preview; if numel(data) > 1 object(n).Previ...
github
SMASHtoolbox/release-master
generateWindow.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/generateWindow.m
8,284
utf_8
68f62705e9cd2e343eeb1782d3a9e0c3
% generateWindow Generate named window % % This *static* method generates a digital window by name. % result=SFR.generateWindow(name); % result=SFR.generateWindow(name,parameter); % The input "name" is a required character array that selects one of the % following digital windows. % -'boxcar', no parameters % ...
github
SMASHtoolbox/release-master
setName.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/setName.m
941
utf_8
48c1e20e1a22362579c2e640d31d070d
% setName Set object names % % This method sets names in an object array with a base label. % setName(object,label) % Each object name is constructed from the base character "label" and the % element index. The input "label" can also be a string/cellstr array of % *unique* names for each object element % % See also...
github
SMASHtoolbox/release-master
process.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/process.m
1,636
utf_8
83ca03c58ef2d92165d6097c8ab70f08
% hidden method % % This method is a called by preview and reduce. Its primary function is % to manage parallel processing function result=process(object,routine) % manage parallel calculations try %#ok<TRYNC> ps=parallel.Settings; ps.Pool.AutoCreate=false; % prevent parallel w/o existing workers end try ...
github
SMASHtoolbox/release-master
cropTime.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/cropTime.m
2,801
utf_8
815a06b3ad8734fd4adaf341c7493a6d
% cropTime Crop time base % % This method crops the measurement time base to a specified bound. % cropTime(object,bound); % The input "bound" must be a two-element array [left right] of non-zero % width. Specifying -inf for the left bound implies the first measurement % time, and specifying +inf for the right boun...
github
SMASHtoolbox/release-master
preview.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/preview.m
4,026
utf_8
066a89bed11c18b4c7d015b8ddeefd31
% preview Generate reduction preview % % This method generates a simplified frequency reduction preview. % preview(object); % Statistically significant content in the signal is identified in a % time-dependent manner. This process is significantly faster than % complete reduction, providing a quick visualization. %...
github
SMASHtoolbox/release-master
collect.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/collect.m
2,551
utf_8
59ad6bbe8b5a14897ed4cf023aab5769
% collect Collect reduction data % % This method collects reduction data from an object or object array. % result=collect(object); % By default, the most recent reduction from each element of "object" is % combined into the output "result". That output is a ScatteredPatch % class object. % % Specific reductions a...
github
SMASHtoolbox/release-master
setWindow.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/setWindow.m
2,592
utf_8
04599b4adf43195abfafa3e52136a381
% setWindow Set digital window % % This method sets the digital window used in frequency analysis. Windows % can be specified by name with an optional numeric parameter. % setWindow(object,name); % "name" must be character array % setWindow(object,name,parameter); % Supported window names include include: % -...
github
SMASHtoolbox/release-master
shiftTime.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/shiftTime.m
1,293
utf_8
1cb02786531011fc676ab929b06505f0
% shiftTime Shift time base % % This method shifts the measurement time base by a constant value. % shiftTime(object,value); % The input "value" must be a number; the default value is 0. % % All time bases derived from the measurement are automatically shifted. % % See also SFR, cropTime, scaleTime % function shiftT...
github
SMASHtoolbox/release-master
summarize.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/summarize.m
1,507
utf_8
510d37db9adf5b70ae170be65e9dea8c
% summarize Summarize object status % % This method generates a status summary, including noise level and the % number of previews/reductions. This information can be printed in the % command window: % summarize(object); % or returned as a structure. % report=summarize(object); % % See also SFR, plot % function ...
github
SMASHtoolbox/release-master
setFrequencyBand.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/setFrequencyBand.m
2,475
utf_8
edd1170957dc0e2352bc06c93728fea6
% setFrequencyBand Set frequency band edges % % This method sets the frequency band edges used by the preview and reduce % methods. % setFrequencyBand(object,value); % The input "value" is typically a two-element array [low high]. Low % frequency values are bounded by zero, and high frequency values are % bounded b...
github
SMASHtoolbox/release-master
estimateNoise.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/estimateNoise.m
4,301
utf_8
36c47390cfc8e82730db624607a8fc2e
% estimateNoise Estimate noise content % % This method estimates the signal's noise content, updating the Noise % property. % estimateNoise(object); % Noise analysis is performed by dividing the frequency-domain power % spectrum into set of non-overlapping blocks. The median power in each % block is used to estimat...
github
SMASHtoolbox/release-master
generatePatches.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/generatePatches.m
817
utf_8
8a04ad091e1ae6e4cb5fe9d1a6d8ba6c
%% function hc=generatePatches(object,result,cutoff) data=result.Data; if ~isnan(cutoff) keep=data(:,4) >= cutoff; data=data(keep,:); end %data=sortrows(data,4); % plot higher SRN data on top data=transpose(data); box on; hold on; dx=result.RiseTime/2; columns=size(data,2); [x,y,z]=deal(nan(4,columns)); x(1,:...
github
SMASHtoolbox/release-master
estimateAmplitude.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/estimateAmplitude.m
903
utf_8
b3358821fa81712bdd21654f0dcdc82b
% estimateAmplitude Estimate signal amplitude % % This method estimates coherent signal amplitude based on signal power. % Amplitude calculations are performed using the current rise and step time % settings. % value=estimateAmplitude(object); % The output "value" is a two-column array [time amplitude]. % % See also...
github
SMASHtoolbox/release-master
clone.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/clone.m
641
utf_8
7d8268ad2f7dff58e97b4a216943276c
% clone Create independent copy % % This method creates an independent copy of an SFR object. % new=clone(object); % The output "new" contains the same information as "object", but changes % to one do *not* translate to the other. % % See also SFR % function new=clone(object) name={'Name' 'RiseTime' 'StepTime' 'Pea...
github
SMASHtoolbox/release-master
calculateFFT.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/calculateFFT.m
1,970
utf_8
5848d80203180d871f38682aa3da18d8
% calculateFFT Perform FFT calculation % % This *static* method calculates the Fast Fourier Transform (FFT) of a % signal. % [fn,power,amplitude]=SFR.calculateFFT(signal,N2,span); % The input "signal" defines the signal of interest. The input "N2" % indicates the number of transform points over all frequencies; thi...
github
SMASHtoolbox/release-master
identifyContent.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/identifyContent.m
578
utf_8
76fd373627713e178117b58f24152e8d
% function flag=identifyContent(ratio,nhood,threshold) N=numel(ratio); keep=isfinite(ratio); ratio(~keep)=0; while true [value,k]=max(ratio); if value < threshold break end start=1; for m=k:-1:start if ratio(m) < threshold start=m+1; break end en...
github
SMASHtoolbox/release-master
setNoise.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/setNoise.m
2,753
utf_8
2c85442f5cd1eb1beb0c093f1819d76f
% setNoise Set noise content % % This method sets the signal's noise content. % setNoise(object,RMS,profile); % The input "RMS" defines the root mean square for noise content in the % time domain. The input "profile" defines the noise profile spectrum % through a function handle. That function must accept an array...
github
SMASHtoolbox/release-master
reduce.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/reduce.m
7,166
utf_8
7c9b8545b37f7ebb28c0d4266d74ae93
% reduce Perform frequency reduction % % This method performs frequency reduction using the current time/point, % window, and noise settings. Results are stored as a new structure % element of the Reduction property. % reduce(object,name,value,...); % Optional name/value pairs control details of reduction analysis....
github
SMASHtoolbox/release-master
export.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/export.m
5,667
utf_8
e19806959438599c490a3cfe9d8b71b2
% export Export result to file % % This method exports results to a text file. % export(object); % interactive file selection % export(object,file); % manual file selection % By default, the most recent reduction is exported to selected/specified % file. Optional name/value pairs: % export(object,file,na...
github
SMASHtoolbox/release-master
scaleTime.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/scaleTime.m
2,698
utf_8
940ea26f09e047b72cfc661100f998e7
% scaleTime Scale time base % % This method scales the measurement time base by a constant value. % scaleTime(object,value); % The input "value" must be a number > 0. Omitting this value or passing a % value of 1 leaves the object unchanged. % % All time bases derived from the measurement are automatically scaled. ...
github
SMASHtoolbox/release-master
etrapz.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/private/etrapz.m
183
utf_8
9692f5738cdfb81b6eca25e8e8df5404
% utrapz Evenly-spaced trapezoid integration function area=etrapz(y,bound) intervals=numel(y)-1; area=y(1)+2*sum(y(2:end-1))+y(end); area=(bound(2)-bound(1))/(2*intervals)*area; end
github
SMASHtoolbox/release-master
testNumber.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/private/testNumber.m
146
utf_8
d096f3e552435802c299a1cd8ce9692e
% private function to verify numeric scalars function valid=testNumber(in) valid=false; if isnumeric(in) && isscalar(in) valid=true; end end
github
SMASHtoolbox/release-master
removePatches.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/dev/removePatches.m
931
utf_8
a33fc4f0817b65e6a3d945b4d10dd1a1
% UNDER CONSTRUCTION function removePatches(range,target) % manage input assert(nargin > 0,'ERROR: quality range must be specified'); assert(isnumeric(range) && (numel(range) == 2),... 'ERROR: invalid quality range') range=sort(range); assert(diff(range) > 0,'ERROR: quality range width must be > 0'); if (nargin <...
github
SMASHtoolbox/release-master
estimateBandwidth.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/dev/estimateBandwidth.m
1,766
utf_8
f24a619de48e8b254eae95824d8e783a
% estimateBandwidth Estimate measurement bandwidth % % This method analyzes the noise spectrum shape, determining the frequency % below which most of the power resides. This estimate is stored in the % Bandwidth property. % estimateBandwidth(object); % % The behavior of this method is controlled with optional name/...
github
SMASHtoolbox/release-master
studyNoise.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/dev/studyNoise.m
1,767
utf_8
795b52b8f90a4e195aed2424a4fba01f
% study function studyNoise(object,blocks) % make sure there is enough signal safety=10; width=2*safety/object.EffectiveTime; range=object.SampleRate/2; maxblocks=floor(range/width); assert(maxblocks > 5,'ERROR: not enough signal for noise study'); if maxblocks < 20 warning('More signal needed for accurate noise s...
github
SMASHtoolbox/release-master
correctedFFT.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/dev/correctedFFT.m
600
utf_8
43acaadbfe11b8c6cfa09db733993111
% private function function [transform,fn]=correctedFFT(signal,N2,mode) persistent previous if isempty(previous) || (previous.N2 ~= N2) previous.N2=N2; temp=((-N2/2):(N2/2-1))/N2; previous.Full=temp(:); temp=(0:N2/2)/N2; previous.Positive=temp(:); end N=numel(signal); transform=fft(signal,N2)/sqr...
github
SMASHtoolbox/release-master
identifyRegions.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/dev/identifyRegions.m
2,006
utf_8
64b64d717def32fa177f740e4c568484
% identifyRegions Identify distinct regions % % This *static* method identifies distinct regions in a logical array. % bound=SFR.identifyRegions(array,nhood); % The input "nhood" indicates the minimum neighborhood size for identifying % distinct regions. False array values become true inside the neighborhood % of a...
github
SMASHtoolbox/release-master
setBandwidth.m
.m
release-master/+SMASH/+SignalAnalysis/@SFR/dev/setBandwidth.m
720
utf_8
152d2b2bd2927d58cd45136f739dc0c5
% setBandwidth Set measurement bandwidth % % This method sets the measurement bandwidth, i.e. the highest meaningful % frequency. The value can be specified directly: % setBandwidth(object,value); % or transferred from another SFR object. % setBandwidth(object,source); % % See also SFR, estimateBandwidth % func...
github
SMASHtoolbox/release-master
add.m
.m
release-master/+SMASH/+SignalAnalysis/@SinusoidFit/add.m
852
utf_8
e43b3157cbcaad8e94eeb7c10401332f
% add Add sinusoid % % This method adds a new component to the sinusoid fit. Component location % is determined automatically from the strongest residual location. % add(object); % Component location can also be specified manaully % add(object,location); % The input "location" must be a numeric scalar. % % See...
github
SMASHtoolbox/release-master
scaleBasis.m
.m
release-master/+SMASH/+SignalAnalysis/@SinusoidFit/scaleBasis.m
1,687
utf_8
b1bfa2d9eda7c9ab51d17996e1953e0a
% scaleBasis Scale basis functions % % This *protected* method scales basis functions for all defined sinusoids. % scaleBasis(object); % Matrix techniques are used to determine amplitude and phase best suited % to the current frequency settings. % % See also SinusoidFit, optimize % % % created February 25, 2020 by ...
github
SMASHtoolbox/release-master
remove.m
.m
release-master/+SMASH/+SignalAnalysis/@SinusoidFit/remove.m
1,022
utf_8
3807d9af8e3176339be61bd0fd69480b
% UNDER CONSTRUCTION % remove Remove sinusoid % % This method removes one or more components from a sinusoid fit. % remove(object,index); % The input "index" can be an integer or array of integers indicating the % component(s) to be removed. To remove all components: % remove(object,'all'); % % See also Sinusoid...
github
SMASHtoolbox/release-master
move.m
.m
release-master/+SMASH/+SignalAnalysis/@SinusoidFit/move.m
959
utf_8
139a8f65880eac167381e0656a71cebb
% move Move sinusoid % % This method moves one component in a sinusoid fit. % move(object,value,index); % The input "value" is the updated frequency location of the compnent % specified by "index". Omitting the last argument automatically moves the % first component. % % See also SinusoidFit, add, remove % % % cre...
github
SMASHtoolbox/release-master
reset.m
.m
release-master/+SMASH/+SignalAnalysis/@SinusoidFit/reset.m
783
utf_8
549286fbeebceda1f34c411246a679fb
% reset Change signal source % % This method changes the signal source for a sinusoid fit. % reset(object,new); % The input "new" must be a Signal object. The associated spectrum is % automatically updated, preserving the current number of frequency points. % All defined sinusoid frequencies remain unchanged. % % S...
github
SMASHtoolbox/release-master
generate.m
.m
release-master/+SMASH/+SignalAnalysis/@SinusoidFit/generate.m
1,001
utf_8
e50319d3ea82d06537140f29639d014e
% generate Generate frequency spectrum % % This method generates a complex frequency spectrum from the source data. % generate(object,numpoints); % The input "numpoints" indicates the minimum number of frequency grid % points (default is 1000). % % NOTE: this method is automatically called at object creation. Sub...
github
SMASHtoolbox/release-master
summarize.m
.m
release-master/+SMASH/+SignalAnalysis/@SinusoidFit/summarize.m
1,070
utf_8
65c3eeaa15bb61334c2c641bfe4fd4ad
% Summarize List sinusoid parameters % % This method lists the frequency, amplitude, and phase of all defined % sinusoids. Parameters can be printed in the command window: % summarize(object); % or returned as output arguments. % [frequency,amplitude,phase]=summarize(object); % % See also SinusoidFit % % % crea...
github
SMASHtoolbox/release-master
optimize.m
.m
release-master/+SMASH/+SignalAnalysis/@SinusoidFit/optimize.m
988
utf_8
76bafa0912953054b6deed47839ac96d
% UNDER CONSTRUCTION % function optimize(object,index) assert(object.NumberSinusoids > 0,'ERROR: no sinusoids defined'); % manage input valid=1:object.NumberSinusoids; if (nargin < 2) || isempty(index) index=valid; elseif isnumeric(index) for k=1:numel(index) assert(any(index(k) == valid),'ERROR: in...
github
SMASHtoolbox/release-master
view.m
.m
release-master/+SMASH/+SignalAnalysis/@SinusoidFit/view.m
1,633
utf_8
a8bf7e110ec7199200ffcdc40217b495
% view Plot sinusoid data % % This method plots various types of sinusoid data. % view(object,mode); % Valid modes include: % -'signal' shows the source and result signals % -'spectrum' shows the full and remainder spectra % % See also SinusoidFit % % % created February 25, 2020 by Daniel Dolan (Sandia Nation...
github
SMASHtoolbox/release-master
generateBasis.m
.m
release-master/+SMASH/+SignalAnalysis/@SinusoidFit/old/generateBasis.m
668
utf_8
262bcbf220e07a7bab6c1df08c0ec8fc
% UNDER CONSTRUCTION function [positive,negative]=generateBasis(object,index) % manage input assert(object.NumberSinusoids > 0,'ERROR: no sinusoids added'); if (nargin < 2) || isempty(index) index=1; else valid=1:object.NumberSinusoids; assert(isnumeric(index) && isscalar(index) && any(index == valid),... ...
github
SMASHtoolbox/release-master
modifyGrid.m
.m
release-master/+SMASH/+SignalAnalysis/@LongSignal/modifyGrid.m
1,547
utf_8
95d5a09c9f7b30f3d41cd3ae6754bed1
% modifyGrid Modify signal grid % % This method modifies the underlying grid of a LongSignal object. % modifyGrid(object,'Shift',value); % add "value" to the grid % modifyGrid(object,'Scale',value); % multiply grid by "value" % Sequential modifications are proccessed in order. % modifyGrid(object,'Scale',facto...
github
SMASHtoolbox/release-master
verifyFile.m
.m
release-master/+SMASH/+SignalAnalysis/@LongSignal/verifyFile.m
848
utf_8
eb32f062376a71ffb72e53d27d808d7c
% verifyFile Verify data file % % This method verifies that the data file associated with a LongSignal % object is valid. % result=verifyFile(object); % The output result is a logical true or false. % % Data files are automatically checked during object creation, but this % method can be called if subsequent changes...
github
SMASHtoolbox/release-master
partition.m
.m
release-master/+SMASH/+SignalAnalysis/@LongSignal/partition.m
5,168
utf_8
5cb3f0bd027d6d458b8b3104f436eb61
% partition Manage partitioning % % This method manages how LongSignal objects are partitiond into local % analysis regions. Analysis regions *always* span an integer number of % Grid points, and regions are also separated by an integer number of Grid % points Partition parameters "points" and "skip" can be defined %...
github
SMASHtoolbox/release-master
readFile.m
.m
release-master/+SMASH/+SignalAnalysis/@LongSignal/readFile.m
1,979
utf_8
073346cc15f80d31c49e897390a737d3
% readFile Read data file % % This method reads the data file assocated with a LongSignal object. % result=readFile(object,[start stop]); % read finite grid range % result=readFile(object,[-inf stop]); % read starts at first grid point % result=readFile(object,[start +inf]); % read stops at last grid point % re...
github
SMASHtoolbox/release-master
analyze.m
.m
release-master/+SMASH/+SignalAnalysis/@LongSignal/analyze.m
3,607
utf_8
1ceedfa5cd341187394808af7413a227
% analyze Perform local analysis % % This method analyzes local partitions of a LongSignal object. The % precise analysis is defined by a function handle: % result=analyze(object,LocalFcn); % that accepts a SignalGroup object and returns a numeric array. The % output "result" is a SignalGroup object constructed fr...
github
SMASHtoolbox/release-master
convertData.m
.m
release-master/+SMASH/+SignalAnalysis/@LongSignal/convertData.m
2,508
utf_8
35e82afd132051682027fb99e3e7f33c
% UNDER CONSTRUCTION % convertData Convert data file % % This *static* method converts a data file to a binary format for use % with the LongSignal class. % LongSignal.convertData(name,format,record); function convertData(file,format,record,varargin) % manage input if (nargin < 1) || isempty(file) [file,locat...
github
SMASHtoolbox/release-master
convertKeysight.m
.m
release-master/+SMASH/+SignalAnalysis/@LongSignal/private/convertKeysight.m
1,966
utf_8
4e02da592c68bef924572bce29dc0a0c
% H5 only (for now) function convertKeysight(file,record,target,option) % scan *.h5 file location='/Waveforms'; try info=h5info(file,location); catch error('ERROR: invalid digitizer file'); end info=info.Groups; keep=false(size(info)); for k=1:numel(info) [~,name]=fileparts(info(k).Name); index=sscanf...
github
SMASHtoolbox/release-master
convertFile.m
.m
release-master/+SMASH/+SignalAnalysis/@LongSignal/old/convertFile.m
1,249
utf_8
431768b1d87eeb9d03082885b31a2f0f
% UNDER CONSTRUCTION % convertFile Convert data file % % This method converts data from a text function convertFile(object,file,format,record) % manage input if (nargin < 2) || isempty(file) [file,location]=uigetfile('*.*','Select data file'); if isenumeric(file) return end file=fullfile(locati...
github
SMASHtoolbox/release-master
defineTransfer.m
.m
release-master/+SMASH/+SignalAnalysis/@NoiseSignal/defineTransfer.m
2,741
utf_8
66ec56066dbe58979da65689d39de3e4
% defineTransfer Define system transfer function % % This method defines the transfer function for the noise system. % object=defineTransfer(object,type,value); % Several transfer types are supported. % -'nyquist' transfers all frequencies equally up to a specified % fraction of the Nyquist frequency; higher f...