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 | digread.m | .m | release-master/programs/THRIVE/private/digread.m | 1,579 | utf_8 | 6db078678ff1d5af5b616c2cc402f678 | % digread : Read DIG binary files
%
% Usage:
% [signal,time,info]=digread(filename);
%
% If the no input is specified, the user will be prompted for a file name
% by a dialog box. The signal and its time base are stored as 1D arrays in
% the first two outputs (respectively). Additional information is returned
% as ... |
github | SMASHtoolbox/release-master | softpad.m | .m | release-master/programs/THRIVE/private/softpad.m | 1,479 | utf_8 | 97f2b2ecc2bcc307888a5cc3f2835fd7 | % softpad : signal padding with soft transitions to zero
%
% Given a 1D array, this function returns a zero padded array with a soft
% boundary transitions. The transition extends over a specified fraction (5% by
% default) of the input array size. The output array size is smallest power of
% two sufficient to contai... |
github | SMASHtoolbox/release-master | ReadEditBox.m | .m | release-master/programs/THRIVE/private/ReadEditBox.m | 379 | utf_8 | cfe111f3c6188d2aeb9abe1a6471c456 | % read edit box callback
function data=ReadEditBox(src,varargin)
entry=get(src,'String');
[data,count,err,next]=sscanf(entry,'%g',1);
if isempty(data) % use stored value for failed read
data=get(src,'UserData');
set(src,'String',num2str(data));
else % store new value for successful read
entry=entry(1:(nex... |
github | SMASHtoolbox/release-master | EllipseScreen.m | .m | release-master/programs/THRIVE/private/EllipseScreen.m | 20,724 | utf_8 | 6d124d890eec127d74329160a530e76b | function fig=EllipseScreen(oldfig)
% allocate mising input
if nargin<1
oldfig='';
end
% create figure (if necessary)
tag='THRIVE_EllipseScreen';
fig=findall(0,'Type','figure','Tag',tag);
if isempty(fig)
fig=createGUI('Tag',tag);
end
% determine how figure was called
if isempty(oldfig)
return
end
switch g... |
github | SMASHtoolbox/release-master | QuadratureScreen.m | .m | release-master/programs/THRIVE/private/QuadratureScreen.m | 15,069 | utf_8 | 284adc49615a713496c62cd22d24901a | % this function needs to be significantly revised. Entry into the figure
% should calculated Dx and Dy for both the characterization and experient
% time ranges, as well as the fringe shift and intensity variation for the
% experiment time range. The function currently known as
% GenerateQuadrature should really just ... |
github | SMASHtoolbox/release-master | busyfig.m | .m | release-master/programs/THRIVE/private/busyfig.m | 929 | utf_8 | a75e427968dee33a2006443a0a5fc746 | % busyfig : control a figure's busy state
%
% This function provides a "busy" state for use within a callback in situations
% where a waitbar may not be appropriate. For example, a figure could be made
% busy while data is loaded from a file to prevent further actions. When the
% process is complete, the busy stat... |
github | SMASHtoolbox/release-master | clean_legend.m | .m | release-master/programs/THRIVE/private/clean_legend.m | 439 | utf_8 | d4cb242e585823acec8a495f27bb520f | % clean_legend : eliminates duplicate tag information in legend
function varargout=clean_legend(varargin)
[legend_h,object_h,plot_h,text_strings]=legend(varargin{:});
set(object_h,'Tag',''); % remove legend tags (avoids multiple tag issues)
% handle output
if nargout>0
varargout{1}=legend_h;
end
if nargout>1
... |
github | SMASHtoolbox/release-master | ColumnReader.m | .m | release-master/programs/THRIVE/private/ColumnReader.m | 2,719 | utf_8 | 69d30f890b11b414cd1dd8d0f44b305d | % ColumnReader : extract column data from a file
%
% This function extracts numerical data columns from a text file. Columns
% are denoted by white space and/or delimeter characters (',', ';', and '&'
% by default). A header containing any valid ASCII character may be
% placed at the beginning of the file. The progr... |
github | SMASHtoolbox/release-master | IterativeEllipseFit.m | .m | release-master/programs/THRIVE/private/IterativeEllipseFit.m | 1,607 | utf_8 | 68c7811104148203b54054d04077aa87 | % IterativeEllipseFit : iterative ellipse fit with fixed parameter options
% created 12/06/07 by Daniel Dolan
function params=IterativeEllipseFit(D1,D2,D3,guess,fixed,options)
% input check
if nargin<4
error('At least four inputs are required');
end
if nargin<5
fixed=[];
end
if nargin<6
options='';
end
... |
github | SMASHtoolbox/release-master | yokowfmread.m | .m | release-master/programs/THRIVE/private/yokowfmread.m | 2,190 | utf_8 | 2c6c8af0e08f191383bc39f2b33b246b | % yokowfmread : read binary data from a Yokogawa WFM file
%
% Usage:
% [signal,time,info,header]=yokowfmread(filename);
%
% Most users will only care about the first two output arguments: the
% signal waveform and time base. The third ouput contains an information
% structure about the file, and the fourth output is ... |
github | SMASHtoolbox/release-master | ResultsScreen.m | .m | release-master/programs/THRIVE/private/ResultsScreen.m | 15,805 | utf_8 | 901eeef41ceeb0cca7dde63ba32bf6e7 | % ResultsScreen:
%
function fig=ResultsScreen(oldfig)
% allocate mising input
if nargin<1
oldfig='';
end
% create figure (if necessary)
tag='THRIVE_ResultsScreen';
fig=findall(0,'Type','figure','Tag',tag);
if isempty(fig)
fig=createGUI('Tag',tag);
end
% determine how figure was called
if isempty(... |
github | SMASHtoolbox/release-master | wfmread.m | .m | release-master/programs/THRIVE/private/wfmread.m | 15,509 | utf_8 | f85b15b89fd918d02dc1aeed6f8642cd | % wfmread : Read Tektronix binary data files
%
% This function is an updated version of wfmread. The original version
% (written by Daniel Dolan) supported the TDS XXX family of digitizers
% (e.g., TDS 694). Tektronix has since released various TDS XXXX models
% (e.g., TDS 5000), which use a different binary fil... |
github | SMASHtoolbox/release-master | LoadScreen.m | .m | release-master/programs/THRIVE/private/LoadScreen.m | 22,342 | utf_8 | 645c99345029e67ad6446860b0d8e677 | % LoadScreen:
%
function fig=LoadScreen(oldfig)
% allocate mising input
if nargin<1
oldfig='';
end
% create figure (if necessary)
tag='THRIVE_LoadScreen';
fig=findall(0,'Type','figure','Tag',tag);
if isempty(fig)
fig=createGUI('Tag',tag);
end
% call specific operations
if isempty(oldfig)
return
end
swit... |
github | SMASHtoolbox/release-master | SelectFile.m | .m | release-master/programs/THRIVE/private/SelectFile.m | 1,141 | utf_8 | ee363400cceb1ed7c91716451e66aff9 | % select file callback (read from and write to target edit box)
function SelectFile(src,eventdata,target,RWoption,FilterSpec,DialogTitle)
% input check
if (nargin<4) || isempty(RWoption)
RWoption='read';
end
if (nargin<5) || isempty(FilterSpec)
FilterSpec={'*.*','All files'};
end
if (nargin<6) || isempty(Dialo... |
github | SMASHtoolbox/release-master | SmoothDerivative.m | .m | release-master/programs/THRIVE/private/SmoothDerivative.m | 3,665 | utf_8 | 943c7ef18e80bf8990f4e11a2d797f27 | % SmoothDerivative : calculate a smooth derivative using the Savitzky-Golay
% method. The derivative level may be specified by an array of positive
% integers (including zero); the result for each array entry is returned as
% a separate function output. The order and number of points used in the
% calculation are spec... |
github | SMASHtoolbox/release-master | MatchFigures.m | .m | release-master/programs/THRIVE/private/MatchFigures.m | 296 | utf_8 | 5a05ca596bb926944794bb97d70aaed2 | % match the position of two figures
function MatchFigures(old,new)
% probe old figure size (pixels)
units=get(old,'Units');
set(old,'Units','pixels');
pos=get(old,'Position');
set(old,'Units',units);
% set new figure size (pixels)
units=get(new,'Units');
set(new,'Position',pos,'Units',units); |
github | SMASHtoolbox/release-master | local_graphic.m | .m | release-master/programs/THRIVE/private/local_graphic.m | 47,988 | utf_8 | 6057317245c67185aa419e3493142a84 |
% 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 | MinimalFigure.m | .m | release-master/programs/THRIVE/private/MinimalFigure.m | 39,719 | utf_8 | dc544409e3f6d4139086822d9b6e9ffe | % 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 | QuadratureScreen.m | .m | release-master/programs/THRIVE/private/old/QuadratureScreen.m | 13,753 | utf_8 | 89ffb5bc68b41f4d5bba8d1d2bc8c94f | % QuadratureScreen:
%
function fig=QuadratureScreen(oldfig)
% allocate mising input
if nargin<1
oldfig='';
end
% create figure (if necessary)
tag='THRIVE_QuadratureScreen';
fig=findall(0,'Type','figure','Tag',tag);
if isempty(fig)
fig=createGUI('Tag',tag);
end
% determine how figure was called
if isempty(o... |
github | SMASHtoolbox/release-master | FTderiv.m | .m | release-master/programs/THRIVE/private/old/FTderiv.m | 772 | utf_8 | 34ba0e4a8b5ecd2d595c7557cc7c1a87 | function [dxdt,x]=FTderiv(x,tau,T)
% soft padding
N=numel(x);
x=softpad(x);
N2=numel(x);
% perform FFT
xt=fft(x);
mpos=0:(N2/2);
mneg=(N2/2-1):-1:1;
m=[mpos -mneg];
omega=2*pi*m/(N2*T);
% apply derivative transfer
[H,Z]=DerivativeTransfer(omega,tau);
x=ifft(xt.*Z,N2);
dxdt=ifft(xt.*H,N2);
% elimate padded points
x=... |
github | SMASHtoolbox/release-master | wfmread.m | .m | release-master/programs/THRIVE/private/old/wfmread.m | 15,207 | utf_8 | c399b4817fd3900428ba2c9c8529eb44 | % wfmread : Read Tektronix binary data files
%
% This function is an updated version of wfmread. The original version
% (written by Daniel Dolan) supported the TDS XXX family of digitizers
% (e.g., TDS 694). Tektronix has since released various TDS XXXX models
% (e.g., TDS 5000), which use a different binary fil... |
github | SMASHtoolbox/release-master | extractFile.m | .m | release-master/+SMASH/+FileAccess/extractFile.m | 138 | utf_8 | b46966deb634bb1f5fec608459b58bc9 | % UNDER CONSTRUCTION
%
function extractFile(archive,varargin)
object=SMASH.FileAccess.SDAfile(archive);
export(object,varargin{:});
end |
github | SMASHtoolbox/release-master | probeFile.m | .m | release-master/+SMASH/+FileAccess/probeFile.m | 2,308 | utf_8 | ce7fec809b968a48ee267cd4514ef4ca | % PROBEFILE Reveal contents of a multi-record file
%
% This function reveals the contents of multi-record files.
% >> probefile(filename,format);
% The following formats can be used specified when a file is probed.
% -'agilent' and 'keysight'
% -'zdas' and 'saturn'
% -'pff' and 'sda'
% -'column'
%... |
github | SMASHtoolbox/release-master | ZDAS.m | .m | release-master/+SMASH/+FileAccess/ZDAS.m | 2,549 | utf_8 | 6a1d85c30cf11a2f9284c92ae34f6eee | %
%%
function varargout=ZDAS(varargin)
%% handle input
assert((nargin>0),'ERROR: invalid number of inputs');
if ischar(varargin{1})
local=varargin{1};
assert(exist(local,'dir'),'ERROR: invalid local directory');
network='';
if (nargin==2) && ischar(varargin{2})
network=varargin{2};
... |
github | SMASHtoolbox/release-master | sda2workspace.m | .m | release-master/+SMASH/+FileAccess/sda2workspace.m | 3,031 | utf_8 | 1ad166d10cf29210ff5995b01a555590 | % sda2workspace Load archive into the current workspace
%
% This function loads records from an archive file (*.sda) into the current
% workspace. The archive can be specified manually:
% sda2workspace(file);
% or selected interactively.
% sda2workspace();
% Each variable is named after the record it's create fr... |
github | SMASHtoolbox/release-master | SupportedFormats.m | .m | release-master/+SMASH/+FileAccess/SupportedFormats.m | 4,206 | utf_8 | c47500476f8da853cb4e8d660a9c81f2 | % SMASH supports many file formats. Some of these formats are associated
% with a specific file type and extension, while others cover mutiple file
% types and/or extensions. Specific associations, where they exist, are
% noted below.
%
% Text formats:
% 'block' : Numeric data blocks stored in columns, sep... |
github | SMASHtoolbox/release-master | verifyFormat.m | .m | release-master/+SMASH/+FileAccess/verifyFormat.m | 986 | utf_8 | 9961c75d32df7726586b746d2e225ae0 | % verifyFormat Verify file format
%
% This function determines if a requested format name is supported by the
% FileAccess package.
% verifyFormat(name); % result printed in the command window
% valid=verifyFormat(name); % logical result returned
% The input "name" must be a character array.
%
% See also SMASH.Fi... |
github | SMASHtoolbox/release-master | renameFiles.m | .m | release-master/+SMASH/+FileAccess/renameFiles.m | 1,893 | utf_8 | ab5817ecbf10ce08ff6ed9f3d66bb122 | % renameFiles Mapped file renaming
%
% This function renames a group of files using a map file.
% renameFiles(location,map);
% The input "location" indicates the directory where the files are located.
% The default location is the current directory.
%
% The input "map" is the name of a text file containing "old >>... |
github | SMASHtoolbox/release-master | readFile.m | .m | release-master/+SMASH/+FileAccess/readFile.m | 4,634 | utf_8 | f51c95e50ae06515722c651e00ad60d3 | % READFILE Read from a text or binary file
%
% This function reads various text and binary file formats. To read from a
% specific file, use the command:
% >> data=readFile(filename,[format],[record]);
% The second and third inputs are optional in many situations.
% -"format" should be specified if the file's ext... |
github | SMASHtoolbox/release-master | mergeSplits.m | .m | release-master/+SMASH/+FileAccess/mergeSplits.m | 2,244 | utf_8 | 0589f85afaeaf4a8ae3b02743cdf5118 | % mergeSplits Restore complete file from a set of split SDA files
%
% This function merges a set of split SDA files into a complete file. All
% split files must be available, but only one name needs to be passed to
% this function. For example, suppose the original file "mydata" was split
% into "mydata_file1.sda" a... |
github | SMASHtoolbox/release-master | sda2mat.m | .m | release-master/+SMASH/+FileAccess/sda2mat.m | 1,517 | utf_8 | 9ddbadd0450b79ba2630e170d5f720ae | % sda2mat Convert archive to a MAT file
%
% This function converts an archive (*.sda file) to a *.mat file,
% which is compatible with MATLAB's load command.
% sda2mat(archive,matfile)
% The user is prompted to select omitted and/or empty file names
%
% See also SMASH.FileAccess, mat2sda
%
%
% created November 20,... |
github | SMASHtoolbox/release-master | mat2sda.m | .m | release-master/+SMASH/+FileAccess/mat2sda.m | 1,548 | utf_8 | 4cf0b39086976ba55aa36a0eda711d76 | % mat2sda Convert MAT file to an archive
%
% This function converts a MAT file (created with MATLAB's save command) to
% a *.sda archive.
% mat2sda(matfile,archive)
% The user is prompted to select ommitted and/or empty file names.
%
% See also SMASH.FileAccess, sda2mat
%
%
% created November 20, 2016 by Daniel Do... |
github | SMASHtoolbox/release-master | archiveFile.m | .m | release-master/+SMASH/+FileAccess/archiveFile.m | 185 | utf_8 | 93f4503a667301e4d89fae56f045290f | % archiveFile Import data file into an archive
%
% UNDER CONSTRUCTION
function archiveFile(archive,varargin)
object=SMASH.FileAccess.SDAfile(archive);
import(object,varargin{:});
end |
github | SMASHtoolbox/release-master | splitFile.m | .m | release-master/+SMASH/+FileAccess/splitFile.m | 3,191 | utf_8 | 213a24a2e1705438597927fb328b7383 | % splitFile Split a file into a set of SDA files
%
% This function divides a file into set of SDA files. It is intended for
% data transmission with maximum file size limits (such as email). To
% split a file, type the following command.
% >> splitFile(original,bytes);
% The first input specifies the original file... |
github | SMASHtoolbox/release-master | writeFile.m | .m | release-master/+SMASH/+FileAccess/writeFile.m | 3,142 | utf_8 | a62a3a8fa92b5b41558be5f7ed15e05f | % WRITEFILE Write data to a file
%
% This method writes data from MATLAB to a file in 'column', 'dig', or
% 'sda' format based on the specified file extension. Any extension other
% than *.dig or *.sda uses the 'column' or 'block format based on the
% input "table" (numeric matrix or cell array of numeric matrices,
% ... |
github | SMASHtoolbox/release-master | workspace2sda.m | .m | release-master/+SMASH/+FileAccess/workspace2sda.m | 2,511 | utf_8 | bca04cc93b975fc1a8eceb1e04bddcab | % workspace2sda Save the current workspace to an archive
%
% This function saves all variables in the current workspace to an archive
% file (*.sda). The archive can be specified manually:
% workspace2sda(file);
% or selected interactively.
% workspace2sda();
% Each variable is stored as a record with the same n... |
github | SMASHtoolbox/release-master | determineFormat.m | .m | release-master/+SMASH/+FileAccess/determineFormat.m | 1,394 | utf_8 | faee551e2e61fa8b5f18e63d0d24a1f5 | % determineFormat Determine file format
%
% This function determines the format of a file as automatically as
% possible. The file's extension is used if there is an clear match
% to a supported format. Format matching can be restricted to a subset of
% supported formats to minimize ambiguity. If a clear match is no... |
github | SMASHtoolbox/release-master | probeDAS.m | .m | release-master/+SMASH/+FileAccess/DAS/probeDAS.m | 418 | utf_8 | 9749f5fb3fe5c42dcdec37eea2dd7f71 | % probeDAS
%
% >> names=probeDAS(shot,style);
%
% See also readDAS
%
function data=probeDAS(shot,style)
% handle input
assert(nargin==2,'ERROR: invalid number of inputs')
target=DASfile(shot,style);
switch lower(style)
case {'s','saturn'}
object=SMASH.FileAccess.DigitizerFile(target,'saturn');
ot... |
github | SMASHtoolbox/release-master | readDAS.m | .m | release-master/+SMASH/+FileAccess/DAS/readDAS.m | 2,347 | utf_8 | 0c7077468e4bed053111a545978a49d5 | % readDAS Read from a local/network DAS archive
%
% This function reads data acquisition system (DAS) archives stored locally
% or on a network drive. These archives are collection of *.hdf files,
% each labeled by experiment number. Four archive styles are currently
% supported:
% -'c' or 'cmdas' : standard Z a... |
github | SMASHtoolbox/release-master | read.m | .m | release-master/+SMASH/+FileAccess/@ColumnFile/read.m | 814 | utf_8 | 922c0cfadc607cbf343507fba56cbaec | % READ Read from a ColumnFile object
%
% >> output=read(object,[delim],[mincol]);
% The output is a structure with the following fields.
% -FileName
% -FileType
% -Header
% -Data
%
% see also ColumnFile, probe
%
function output=read(object,delim,mincol)
% handle input
if nargin<2
delim=[];
end
if ... |
github | SMASHtoolbox/release-master | probe.m | .m | release-master/+SMASH/+FileAccess/@ColumnFile/probe.m | 1,736 | utf_8 | 3f9508e6cf4f13eb209f9b5ea642a85c | % PROBE Probe the file associated with a ColumnFile object
%
% Syntax:
% >> output=probe(object,[delim],[mincol]);
% The output is a structure with the following fields.
% -HeaderLines
% -NumberColumns
% -Format
%
% See also ColumnFile, read, write
%
function varargout=probe(object,delim,mincol)
if isemp... |
github | SMASHtoolbox/release-master | write.m | .m | release-master/+SMASH/+FileAccess/@ColumnFile/write.m | 1,116 | utf_8 | d94a13cf4c98b1e281b93a1027cfd34f | % WRITE Write to a ColumnText object
%
% Syntax:
% >> success=write(object,data,[format],[header]);
% The output is a logical flag indicating if the write was successful
% (true).
%
% see also ColumnFile
%
%
function success=write(object,data,format,header)
if exist(object.FullName,'file')
message{1}='Target f... |
github | SMASHtoolbox/release-master | select.m | .m | release-master/+SMASH/+FileAccess/@ColumnFile/old/select.m | 581 | utf_8 | 10db5f36c79ab6daed6513e51acbf6b4 | % SELECT Select file for ColumnFile object
%
% This methods selects the file accessed by a ColumnFile object. The file
% name can be specified directly:
% >> object=select(object,filename);
% or interactively.
% >> object=select(object); % user will be prompted to select a file
%
% See also ColumnFile, probe, re... |
github | SMASHtoolbox/release-master | append.m | .m | release-master/+SMASH/+FileAccess/@SDAfile/append.m | 216 | utf_8 | a743337396c72988c0cb4470fcee9438 | % UNDER CONSTRUCTION
%
% created November 23, 2016 by Daniel Dolan (Sandia National Laboratories)
%
function append(object,label,dimension,data)
try
info=h5info(object.ArchiveFile,dataset);
catch
end
end |
github | SMASHtoolbox/release-master | select.m | .m | release-master/+SMASH/+FileAccess/@SDAfile/select.m | 2,566 | utf_8 | e9a0a8236fd6de8e22fb00a076d8d520 | % select Select record from an archive
%
% This method allows users to browse and select a record from an archive
% file.
% >> choice=select(archive,[pattern],[reference]);
% A dialog box lists the label, type, and description for
% records found in the archive. Record choice can be restricted with an
% optional t... |
github | SMASHtoolbox/release-master | import.m | .m | release-master/+SMASH/+FileAccess/@SDAfile/import.m | 1,267 | utf_8 | 82987e1fec29000b0a584db787a83896 | % import Import file into archive
%
% This method imports an external file into an archive file. The imported
% file is automatically labelled by name. An optional description and
% deflate level can be specified.
% >> import(object,filename,[description],[deflate]);
%
% See also SDAfile, export, insert, probe, sel... |
github | SMASHtoolbox/release-master | probe.m | .m | release-master/+SMASH/+FileAccess/@SDAfile/probe.m | 2,541 | utf_8 | 920a01e5fd6201d2e5816022f775fa6f |
% probe Probe archive file
%
% This method probes the state and contents of an archive file. When
% called without outputs:
% >> probe(archive);
% the function prints the state and contents to the command window.
% Specific values are returned as outputs.
% >> [label,type,description,status]=probe(object);
%
% T... |
github | SMASHtoolbox/release-master | remove.m | .m | release-master/+SMASH/+FileAccess/@SDAfile/remove.m | 1,964 | utf_8 | 8b9349b34d8073ea8ec7846707f08d62 | % remove Remove record from an archive
%
% This method removes one or more records from an archive file.
% >> remove(archive,label1,label2,...);
% CAUTION: record removal can be slow (depending on the remaining archive
% contents) and is irreversible!
%
% See also SDAfile, probe
%
%
% created October 9, 2014 by Dan... |
github | SMASHtoolbox/release-master | describe.m | .m | release-master/+SMASH/+FileAccess/@SDAfile/describe.m | 1,041 | utf_8 | 85324f91d1647274b39327aa1ceccc6d | % desribe Revise record description
%
% This method changes the description associated with an archive record.
% >> describe(archive,label,description);
% Descriptions are helpful for clarifying the contents of tersely labelled
% records.
%
% See also SDAfile, probe, select
%
%
% created October 9, 2014 by Daniel Do... |
github | SMASHtoolbox/release-master | replace.m | .m | release-master/+SMASH/+FileAccess/@SDAfile/replace.m | 1,370 | utf_8 | 21c89e8283506bb7f7f6381ba36ec3ed | % replace Replace record data
%
% This method replaces data in an existing record with a new dataset of the
% same type and size.
% replace(archive,label,new);
% NOTE: only numeric, logical, and character records can be replaced!
%
% See also SDAfile, append, insert
%
%
% created November 23, 2016 by Daniel Dolan ... |
github | SMASHtoolbox/release-master | copy.m | .m | release-master/+SMASH/+FileAccess/@SDAfile/copy.m | 1,431 | utf_8 | a047285d50ebf6f9d57e509cb80a463a | % copy Copy records between archives
%
% This method copies records from the current archive to another archive.
% copy(object,destination,label);
% The input "destination" must be a valid SDA file; that file will be
% created if it does not already exist.
%
% See also SDAfile
%
%
% created May 6, 2019 by Daniel Do... |
github | SMASHtoolbox/release-master | extract.m | .m | release-master/+SMASH/+FileAccess/@SDAfile/extract.m | 2,267 | utf_8 | 3c903ef96a625c3c4bbaf14f572ac696 | % extract Extract data from an archive
%
% This method extracts data from an archive file to a MATLAB variable. The
% variable is selected by text label.
% >> data=extract(archive,label);
%
% See also SDAfile, export, import, probe, select
%
% created October 9, 2014 by Daniel Dolan (Sandia National Labs)
% -re... |
github | SMASHtoolbox/release-master | insert.m | .m | release-master/+SMASH/+FileAccess/@SDAfile/insert.m | 3,863 | utf_8 | 393f15f77cbf8b1e0304d3e6f1a1371e | % insert Insert data into an archive
%
% This method inserts a data contained in a MATLAB variable into an archive
% file. The variable is stored with a unique text label for identification
% and access. The following variable types are supported.
% -numeric arrays (double, single, uint8, ...)
% -logical arrays... |
github | SMASHtoolbox/release-master | export.m | .m | release-master/+SMASH/+FileAccess/@SDAfile/export.m | 811 | utf_8 | 7740f397f81ff4bff55488644853dc30 | % export Export data from archive to file
%
% This method exports files stored in archive file to an external file.
% >> export(object,filename,[new]);
% The optional third input "new" exports the stored file to a new name in
% the same directory as the archive file. If omited, exported files use
% the same name as ... |
github | SMASHtoolbox/release-master | readAttribute.m | .m | release-master/+SMASH/+FileAccess/@SDAfile/private/readAttribute.m | 791 | utf_8 | e637416ce74a878ed058fc77ad4dae6b | % readAttribute Read HDF5 attribute
%
% This function reads attributes from a HDF5 file. Most of the work is
% handled by MATLAB's h5readatt function, with additional handling of
% string attributes that may be returned as cell arrays.
%
%
% created March 2, 2017 by Daniel Dolan (Sandia National Laboratories)
%
funct... |
github | SMASHtoolbox/release-master | read.m | .m | release-master/+SMASH/+FileAccess/@BlockFile/read.m | 937 | utf_8 | 73b7a33a10b03a14d0cf4277d4d79106 | % READ Read from a column block file
%
% >> output=read(object,[delim],[mincol]);
% The output is a structure with the following fields.
% -FileName
% -FileType
% -Header
% -Data
%
% see also BlockFile, probe
%
function output=read(object,delim,mincol)
% handle input
if nargin<2
delim=[];
end
if n... |
github | SMASHtoolbox/release-master | probe.m | .m | release-master/+SMASH/+FileAccess/@BlockFile/probe.m | 1,983 | utf_8 | 5c5c406210475a4475a6ea42eb128d80 | % PROBE Probe the column block file
%
% Syntax:
% >> output=probe(object,[delim],[mincol]);
% The output is a structure with the following fields.
% -HeaderLines
% -NumberColumns
% -Format
%
% See also BlockFile, read, write
%
function varargout=probe(object,delim,mincol)
if isempty(object.FileName)
... |
github | SMASHtoolbox/release-master | write.m | .m | release-master/+SMASH/+FileAccess/@BlockFile/write.m | 2,137 | utf_8 | cdcf91df7f67fac8bf493a7cbec07c91 | % WRITE Write to a BlockFile object
%
% Syntax:
% >> success=write(object,data,[format],[header]);
% The output is a logical flag indicating if the write was successful
% (true).
%
% see also BlockFile
%
%
function success=write(object,data,format,header)
if exist(object.FullName,'file')
message{1}='Target fil... |
github | SMASHtoolbox/release-master | select.m | .m | release-master/+SMASH/+FileAccess/@BlockFile/old/select.m | 581 | utf_8 | 10db5f36c79ab6daed6513e51acbf6b4 | % SELECT Select file for ColumnFile object
%
% This methods selects the file accessed by a ColumnFile object. The file
% name can be specified directly:
% >> object=select(object,filename);
% or interactively.
% >> object=select(object); % user will be prompted to select a file
%
% See also ColumnFile, probe, re... |
github | SMASHtoolbox/release-master | read.m | .m | release-master/+SMASH/+FileAccess/@PFFfile/read.m | 2,124 | utf_8 | bfaed16eb0beddf74eee75c0596a2021 | % read Read PFF dataset
%
% This method reads a dataset from a PFF file.
% >> output=read(object,[dataset]);
% The optional input "dataset" is an integer specifying which dataset will
% read (default is 1). The output is a structure that depends on the
% dataset type.
%
% See also PFFfile, probe, select, write
%
%
... |
github | SMASHtoolbox/release-master | probe.m | .m | release-master/+SMASH/+FileAccess/@PFFfile/probe.m | 3,173 | utf_8 | 2450d80f02430acf3675f1f6e6306c76 | % probe Reveal PFF datasets
%
% This method determines the datasets inside a PFF file. The results can
% be returned at the command line:
% >> probe(object)
% or in a graphical window.
% >> probe(object,'gui');
% Calling the function with an output returns the contents as a structure.
% >> dataset=probe(obje... |
github | SMASHtoolbox/release-master | write.m | .m | release-master/+SMASH/+FileAccess/@PFFfile/write.m | 6,248 | utf_8 | ff81edfcb315c9fcab30c9cdf67b5705 | % write Write PFF data
%
% This method writes data to a PFF file as a PFTNGD dataset.
% >> write(object,data);
% The input "data" must be a MATLAB structure with the following fields.
% "Grid" : cell array of M 1-D arrays (required)
% "Vector" : cell array of N M-D arrays (required)
% "GridL... |
github | SMASHtoolbox/release-master | write.m | .m | release-master/+SMASH/+FileAccess/@PFFfile/old/write.m | 3,280 | utf_8 | 9df5f958033515b76535723d5cedbd04 | % write Write data to a PFF object
%
% >> write(object,data);
% UNDER CONSTRUCTION!
%
% See also PFFfile
%
%
%
%
function write(object,data,mode)
% manage input
assert(nargin>=2,'ERROR: insufficient input');
assert(isstruct(data) && (numel(data)==1),...
'ERROR: data must be passed in an individual structure'... |
github | SMASHtoolbox/release-master | read.m | .m | release-master/+SMASH/+FileAccess/@ImageFile/read.m | 2,405 | utf_8 | b9f61b3fec4a6977385c4cb26f2f7ed5 | % READ Read file associated with a ImageFile object
%
% Syntax:
% >> output=read(object,[option]);
% The option input is used for formats files containing more than one
% image. The output is a structure with the following fields.
% -FileName
% -FileType
% -FileOption
% -Grid1
% -Grid2
% -Data
%
%... |
github | SMASHtoolbox/release-master | select.m | .m | release-master/+SMASH/+FileAccess/@ImageFile/select.m | 3,210 | utf_8 | 1209a8cd820038c43ff5603ad54f54ab | % SELECT Select file associated with an ImageFile object
%
% Syntax:
% >> object=select(object,[filename],[format]);
%
% See also ImageFile, read
%
function object=select(object,filename,format)
if nargin<2
filename='';
end
if nargin<3
format='';
end
object=select@SMASH.FileAccess.File(object,filename);
... |
github | SMASHtoolbox/release-master | read_film.m | .m | release-master/+SMASH/+FileAccess/@ImageFile/private/read_film.m | 6,613 | utf_8 | 85f584c0b34d5dff9658c54f69455138 |
function [data,grid1,grid2,record,info]=read_film(name,record)
if nargin<2
record=[];
end
[pathname,filename,ext]=fileparts(name);
switch lower(ext)
case '.img'
if strcmp(ext,'.img')
headerfile=fullfile(pathname,[filename '.hdr']);
else
headerfile=fullfile... |
github | SMASHtoolbox/release-master | read_winspec.m | .m | release-master/+SMASH/+FileAccess/@ImageFile/private/read_winspec.m | 1,164 | utf_8 | 7d29855e0067ea31473c941d3232b9fb |
function [func,info]=read_winspec(filename)
if (nargin<1) || isempty(filename)
choices{1,1}='*.spe;*.SPE';
choices{1,2}='WinSpec files (*.spe)';
choices{2,1}='*.*';
choices{2,2}='All files (*.*)';
[filename,pathname]=uigetfile(choices,'Select data file');
filename=fullfile(pathname,fi... |
github | SMASHtoolbox/release-master | read_optronis.m | .m | release-master/+SMASH/+FileAccess/@ImageFile/private/read_optronis.m | 1,724 | utf_8 | 505f683ab078484850a98316c12d0141 |
% revised May 28, 2014 by Daniel Dolan
% -Automatically remove periods from field names
%
function [data,config,header]=read_optronis(filename)
if (nargin<1) || isempty(filename)
[fname,pname]=uigetfile('*.imd;*.IMD','Select Optronis IMD file');
filename=[pname fname];
end
% open and read IMD file
fid=fope... |
github | SMASHtoolbox/release-master | read_sbfp.m | .m | release-master/+SMASH/+FileAccess/@ImageFile/private/read_sbfp.m | 9,398 | utf_8 | 73f028d3faf3b07ed358d4dc7246504c | function varargout=read_sbfp(filename)
varargout=cell(nargout,1);
if (nargin<1) || isempty(filename)
[fname,pname]=uigetfile({'*.img';'*.IMG'},'Select image file');
if isnumeric(fname) % user pressed cancel
return
end
filename=fullfile(pname,fname);
end
[array,header]=read_SBF_img(filename);
... |
github | SMASHtoolbox/release-master | read_fujiIMG.m | .m | release-master/+SMASH/+FileAccess/@ImageFile/private/read_fujiIMG.m | 2,671 | utf_8 | 6db42de737039dbda4114c5c39564369 | % imgread : read IMG file created by a Fuji image plate scanner
%
% Usage:
% >> [data,info]=imgfujiread(file);
% This procedure reads a FUJI format file for the image plate (IP) data and
% outputs a PSL (Photo-Stimulable Luminenscence) dose equivelent file.
% The data for the conversion and the image paramet... |
github | SMASHtoolbox/release-master | read.m | .m | release-master/+SMASH/+FileAccess/@ParameterFile/read.m | 2,318 | utf_8 | 78ee0ce925b0a451691f5a5e9a6e2701 | % read Read parameter file
%
% This method reads a parameter file into a structure.
% data=read(object);
% The output "data" has structure fields for each parameter set defined in
% the file; repeated set names are stored as structure arrays.
%
% See also ParameterFile, write
%
%
% created May 10, 2018 by Daniel Do... |
github | SMASHtoolbox/release-master | show.m | .m | release-master/+SMASH/+FileAccess/@ParameterFile/show.m | 332 | utf_8 | c79ee9e465838c880dd522e2f060162f | % show Show parameter file
%
% This method shows a parameter file in the command window.
% show(object);
%
% See also ParameterFile, edit
%
%
% created May 10, 2018 by Daniel Dolan (Sandia National Laboratory)
%
function show(object)
current=pwd;
CU=onCleanup(@() cd(current));
cd(object.PathName);
type(object.Fil... |
github | SMASHtoolbox/release-master | edit.m | .m | release-master/+SMASH/+FileAccess/@ParameterFile/edit.m | 330 | utf_8 | b12a0be47d5c0f955e2542f699898be3 | % edit Edit parameter file
%
% This method opens a parameter file in the MATLAB editor
% edit(object);
%
% See also ParameterFile, show
%
%
% created May 10, 2018 by Daniel Dolan (Sandia National Laboratory)
%
function edit(object)
current=pwd;
CU=onCleanup(@() cd(current));
cd(object.PathName);
edit(object.FileN... |
github | SMASHtoolbox/release-master | write.m | .m | release-master/+SMASH/+FileAccess/@ParameterFile/write.m | 53 | utf_8 | 42f80ab4dc16e4060a152834b2df2f2b | % UNDER CONSTRUCTION
function write(object,data)
end |
github | SMASHtoolbox/release-master | read.m | .m | release-master/+SMASH/+FileAccess/@DIGfile/read.m | 524 | utf_8 | 931d7d06678eb690ce0a17ed0715a677 | % READ Read file associated with a DIGfile object
%
% Syntax:
% >> output=read(object);
% The output is a structure with the following fields.
% -FileName
% -Time
% -Signal
%
% See also DIGfile, write
%
function output=read(object)
% error checking
assert(exist(object.FullName,'file')==2,...
'ERROR: c... |
github | SMASHtoolbox/release-master | write.m | .m | release-master/+SMASH/+FileAccess/@DIGfile/write.m | 630 | utf_8 | c25bb05e5f8dc0b162533ab7a2a5425a | % WRITE Write file associated with a DIGfile object
%
% Syntax:
% >> success=write(object,time,signal);
%
%
% This method writes information to the file associated with a Digitizer
% object.
%
%
% see also Digitizer, probe, read
function write(object,time,signal)
if exist(object.FullName,'file')
message{1}='... |
github | SMASHtoolbox/release-master | determineFormat.m | .m | release-master/+SMASH/+FileAccess/private/determineFormat.m | 8,002 | utf_8 | 985c80ab74dccde7b8a59b7b43dcd496 | % determineFormat Determine file format
%
% This function determines the format of a file as automatically as
% possible. The file's extension is used if there is an clear match
% to a supported format. Format matching can be restricted to a subset of
% supported formats to minimize ambiguity. If a clear match is no... |
github | SMASHtoolbox/release-master | probe.m | .m | release-master/+SMASH/+FileAccess/@PDFfile/probe.m | 1,083 | utf_8 | a78508fcf0474f682f0d91fad15a5458 | % probe Probe file
%
% This method probes the PDF file's metadata.
% report=probe(object);
% The output "report" is a structure describing the number of pages,
% encryption status, format version, and so forth. Empty report fields
% indicate information not defined in the file.
%
% See also PDFfile
%
function repor... |
github | SMASHtoolbox/release-master | readPage.m | .m | release-master/+SMASH/+FileAccess/@PDFfile/readPage.m | 1,575 | utf_8 | 2bf2ab5aac6095df5575e3abe8ba2eaa | % readPage Read page image
%
% This method reads a page image from a PDF file.
% readPage(object);
% The first page is read by default at a resolution of 300 dots per inch.
% Other pages and resolutions can also be specified.
% readPage(object,page,DPI);
% The input "page" is an integer matching any valid page ... |
github | SMASHtoolbox/release-master | generate.m | .m | release-master/+SMASH/+FileAccess/@PDFfile/generate.m | 4,824 | utf_8 | f2073bce9b8ceb4538033ec69faaddd8 | % generate Generate PDF file
%
% This *static* method generates a PDF file from an existing figure.
% PDFfile.generate(file,name,value,...);
% The mandatory input "file" indicates the PDF file name. Optional
% name/value pairs define file settings.
% -'Figure' controls which figure is used (default is current fi... |
github | SMASHtoolbox/release-master | readText.m | .m | release-master/+SMASH/+FileAccess/@PDFfile/readText.m | 621 | utf_8 | cb6c14905e9b46bfd71a11001ebb8249 | % readText Read text data
%
% This method reads all text data from a PDF file.
% data=readText(object);
% The output "data" is a character array.
%
% NOTE: text layout strongly depends on file construction! Extracted text
% may have different white spacing and line structure than the file shows in
% a PDF viewer... |
github | SMASHtoolbox/release-master | read.m | .m | release-master/+SMASH/+FileAccess/@LUNA/read.m | 1,624 | utf_8 | 33ef0f5df2b6bc76440e7dfb32b53fe8 | % read Read LUNA scan from a file
%
% This file reads LUNA scans from a file.
% >> object=read(object,filename,[record]);
% A read operation is performed automatically at object creation.
%
function object=read(object,filename,record)
% manage input
if (nargin<2) || isempty(filename)
[filename,pathname]=uiget... |
github | SMASHtoolbox/release-master | modify.m | .m | release-master/+SMASH/+FileAccess/@LUNA/modify.m | 2,437 | utf_8 | 8a2448c62b24c5344cf266c78a91aa95 | % modify Modify time axes of scan
%
% This method modifies the time axes of a LUNA scan. The time step between
% points and the total time range are specified as follows.
% >> object=modify(object,step,[tmin max]);
% Empty and omitted inputs allow particular settings to remain fixed.
% >> object=modify(object,... |
github | SMASHtoolbox/release-master | explore.m | .m | release-master/+SMASH/+FileAccess/@LUNA/explore.m | 14,502 | utf_8 | 8c85a9a6479b8420efb4e3f26dd94b01 | % explore Explore scan
%
% This method provides interactive exploration of a LUNA scan
% explore(object);
%
% See also LUNA
%
%
% created March 9, 2020 by Daniel Dolan (Sandia National Laboratories)
%
function varargout=explore(object)
assert(exist('xline','file') == 2,...
'ERROR: this method requires MATLAB 2... |
github | SMASHtoolbox/release-master | locate.m | .m | release-master/+SMASH/+FileAccess/@LUNA/locate.m | 1,976 | utf_8 | 03d53f312f416983f6413fafc72bc426 | % locate Locate scan peak
%
% This method locates peaks in a LUNA scan using a finite time width.
% [time,RL]=locate(object,width);
% The "time" output is the integration center of maximum area for the
% specified width. The "RL" output is the estimated return loss (in dB) of
% this integration.
%
% By default, pe... |
github | SMASHtoolbox/release-master | store.m | .m | release-master/+SMASH/+FileAccess/@LUNA/store.m | 945 | utf_8 | 736a9f1da7c8aa57df8e7f993cfde973 | % store Store scan in an archive file
%
% This method stores LUNA scans in a Sandia Data Archive (*.sda) file. In
% addition to a file name, the scan must be given a text label that is
% unique within the file.
% >> store(object,filename,label);
% Multiple scans, as well as other records, may be located in a singl... |
github | SMASHtoolbox/release-master | view.m | .m | release-master/+SMASH/+FileAccess/@LUNA/view.m | 1,326 | utf_8 | 16f027925881badbfd89fc32a3d96050 | % view Display scan
%
% This method displays a LUNA scan as a line plot in a new figure
% view(object);
% h=view(object); % return graphic handle
%
%
% See also LUNA
%
%
% created April 29, 2015 by Daniel Dolan (Sandia National Laboratories)
%
function varargout=view(object,units)
% manage input
if (nargin < 2)... |
github | SMASHtoolbox/release-master | read.m | .m | release-master/+SMASH/+FileAccess/@DigitizerFile/read.m | 3,224 | utf_8 | 446f940c4b17fbf51c6e3e1edc348011 | % READ Read file associated with a DigitizerFile object
%
% Syntax:
% >> output=read(object,[option]);
% The option input is only used for 'agilent' format files containing more
% than one signal. The output is a structure with the following fields.
% -FileName
% -FileType
% -FileOption
% -Header
% -... |
github | SMASHtoolbox/release-master | select.m | .m | release-master/+SMASH/+FileAccess/@DigitizerFile/select.m | 3,600 | utf_8 | 362878d8e3ea20935eebe66f621a5542 | % SELECT Select file/format for a DigitizerFile object
%
% Syntax:
% >> object=select(object,[filename],[format]);
%
% see also FileAccess, probe, read
%
%
function object=select(object,filename,format)
if nargin<2
filename='';
end
if nargin<3
format='';
end
object=select@SMASH.FileAccess.File(object,fil... |
github | SMASHtoolbox/release-master | probe.m | .m | release-master/+SMASH/+FileAccess/@DigitizerFile/probe.m | 1,995 | utf_8 | d2f3bca6628b4a2f77cc9265cd567f81 | % PROBE Probe the file associated with a DigitizerFile object
%
% Syntax:
% >> output=probe(object);
% The output is a structure with the following fields.
% -NumberSignals
% -Name ('agilent' format only)
%
% See also DigitizerFile, read
%
%
function varargout=probe(object)
% error checking
assert(exist(obje... |
github | SMASHtoolbox/release-master | read_tektronixWFM.m | .m | release-master/+SMASH/+FileAccess/@DigitizerFile/private/read_tektronixWFM.m | 14,270 | utf_8 | 079b78cca8e1dd4c9a62d01ddd7055c0 | function [y,t,info,iover,iunder]=read_tektronixWFM(filename)
% input check
if nargin<1
filename='';
end
if isempty(filename)
[fname,pname]=uigetfile('*.wfm;*.WFM','Choose Tektronix WFM file');
filename=[pname fname];
end
if exist(filename,'file')~=2
id='wfmread:FileNotFound';
message='F... |
github | SMASHtoolbox/release-master | probe_agilent.m | .m | release-master/+SMASH/+FileAccess/@DigitizerFile/private/probe_agilent.m | 4,232 | utf_8 | 66b591bc8f069d2d39b00b070547f9da | function report=probe_agilent(filename)
[~,~,ext]=fileparts(filename);
switch lower(ext)
case '.h5'
report=probe_agilentH5(filename);
case '.bin'
report=probe_agilentBIN(filename);
otherwise
error('ERROR: invalid file extension');
end
end
%%
function report=probe_agilentH5(filena... |
github | SMASHtoolbox/release-master | read_lecroy.m | .m | release-master/+SMASH/+FileAccess/@DigitizerFile/private/read_lecroy.m | 6,699 | utf_8 | 3c7623fd88d3ab042d6f3da3362183a5 | function varargout=read_lecroy(filename)
% handle input
if (nargin<1) || isempty(filename)
[fname,pname]=uigetfile('*.trc;*.TRC','Choose LeCroy TRC file');
if isnumeric(fname) % user pressed cancel
varargout{1}=fname;
return
end
filename=[pname fname];
end
% read file
machineformat... |
github | SMASHtoolbox/release-master | read_zdas.m | .m | release-master/+SMASH/+FileAccess/@DigitizerFile/private/read_zdas.m | 1,628 | utf_8 | af75f08f84d0fcb85f35243d32f8b679 | %
function [signal,time]=read_zdas(filename,signal_name)
file_id = hdfh('open',filename,'read',0);
status = hdfv('start',file_id);
vgroup_ref = 4;
vdata_ref = 9;
vgroup_id = hdfv('attach',file_id,vgroup_ref,'r');
count = hdfv('ntagrefs',vgroup_id);
ndatasets = count/8;
for i=0:ndatasets-1
vdata_id = hdfvs('attac... |
github | SMASHtoolbox/release-master | read_agilent.m | .m | release-master/+SMASH/+FileAccess/@DigitizerFile/private/read_agilent.m | 2,675 | utf_8 | 5d8e8fc7ef00cb58c33a455f4a6f1166 | function [signal,time]=read_agilent(filename,index)
% manage input
if (nargin<1) || isempty(filename)
types={};
types(end+1,:)={'*.h5;*.H5','Agilent/Keysight HDF5 files'};
types(end+1,:)={'*.*','All files'};
[filename,pathname]=uigetfile(types,'Select Agilent/Keysight data file');
if isnumeric(file... |
github | SMASHtoolbox/release-master | read_saturn.m | .m | release-master/+SMASH/+FileAccess/@DigitizerFile/private/read_saturn.m | 1,640 | utf_8 | 086486254e1c9035efae470def6d007c | %
function [signal,time]=read_saturn(filename,signal_name)
file_id = hdfh('open',filename,'read',0);
status = hdfv('start',file_id);
vgroup_ref = 6; % testing
vdata_ref = 7;
vgroup_id = hdfv('attach',file_id,vgroup_ref,'r');
count = hdfv('ntagrefs',vgroup_id);
ndatasets = count/8;
for i=0:ndatasets-1
vdata_id = ... |
github | SMASHtoolbox/release-master | read_agilent.m | .m | release-master/+SMASH/+FileAccess/@DigitizerFile/private/old/read_agilent.m | 1,593 | utf_8 | 98db0dfd747d3c43c68eee93524fa019 | % revised November 18, 2014 by Daniel Dolan
% -I discovered that some signals are stored as integers, while
% others are stored as floating point.
function [signal,time]=read_agilent(filename,index)
% handle input
if (nargin<1) || isempty(filename)
types={};
types(end+1,:)={'*.h5;*.H5','Agilent HDF5 file... |
github | SMASHtoolbox/release-master | read.m | .m | release-master/+SMASH/+FileAccess/@CustomFile/read.m | 906 | utf_8 | 6481b091e632b4f10c29a2003c7741c4 | % READ Read from a CustomFile object
%
% >> output=read(object);
%
% See also FileAccess, select
%
%
function output=read(object)
if ~exist(object.FullName,'file')
error('ERROR: file does not exist');
end
output.FileName=object.FileName;
output.Format=object.Format;
switch lower(object.Format)
case 'ocean... |
github | SMASHtoolbox/release-master | select.m | .m | release-master/+SMASH/+FileAccess/@CustomFile/select.m | 1,053 | utf_8 | cc24052c6dafbb7c71c4c088d551e062 | % SELECT Select file/format for a CustomFile object
%
% Syntax:
% >> object=select(object,[filename],[format]);
%
% see also FileAccess, read
%
%
function object=select(object,filename,format)
if nargin<2
filename='';
end
if nargin<3
format='';
end
object=select@SMASH.FileAccess.File(object,filename);
i... |
github | SMASHtoolbox/release-master | OptronicLab.m | .m | release-master/+SMASH/+FileAccess/@CustomFile/private/OptronicLab.m | 1,204 | utf_8 | 2cd1fb59a0bc7872057a134d61f36376 | % Read data from Optronic Laboratory 750 Spectradiometer file
% [lambda,measurement,fileinfo]=OptronicLab(filename)
% Created 3/1/2004 by Daniel Dolan
%
function [lambda,measurement,fileinfo]=OptronicLab(filename)
if nargin<1
filename=[];
end
if isempty(filename)
[fname,pname]=uigetfile({...
'*.dat;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.