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 | medfilt1.m | .m | release-master/programs/PointVISAR/private/medfilt1.m | 3,240 | utf_8 | 3c6bc7d10bbc47cc8a1c208478c34e05 | function y = medfilt1(x, n, blksz, DIM)
%MEDFILT1 One dimensional median filter.
% Y = MEDFILT1(X,N) returns the output of the order N, one dimensional
% median filtering of X. Y is the same size as X; for the edge points,
% zeros are assumed to the left and right of X. If X is a matrix,
% then MEDFILT1... |
github | SMASHtoolbox/release-master | CreateRecord.m | .m | release-master/programs/PointVISAR/private/CreateRecord.m | 2,391 | utf_8 | 76ccd2dab97f61622759bca77e48faae | % CreateRecord Creates a single VISAR record with default empty fields
function func=CreateRecord(type)
% input check
if nargin<1
type='';
end
if isempty(type)
type='pushpull2';
end
% general parameters
func.Type=type;
func.Label='New record';
func.Analysis='velocity';
func.VPF = 1;
%fun... |
github | SMASHtoolbox/release-master | CommandLineHelp.m | .m | release-master/programs/PointVISAR/private/CommandLineHelp.m | 1,054 | utf_8 | 122a8c589127e6566b8906c2431766cf |
%%%%%%%%%%%%%%%%%%%%%%%%%%
function CommandLineHelp()
%type CommandLineHelp.txt
fprintf('PointVISAR: a multi-channel VISAR analysis program\n');
[version,versiondate]=PointVISARversion;
fprintf('Version %s (%s)\n',version,versiondate);
fprintf('\n');
fprintf('Graphical mode:\n');
fprintf('\t PointVISAR\n');
fprintf... |
github | SMASHtoolbox/release-master | OSenforcer.m | .m | release-master/programs/PointVISAR/private/OSenforcer.m | 241 | utf_8 | b7e954635fecc4dae0db08170df7e6f4 | % OSenforcer : enforce operating system separators
%
% Usage:
% out=OSenforcer(in); converts '\' and '/' to local convention
% created 1/21/2007 by Daniel Dolan
function out=OSenforcer(in)
out=in;
ii=(in=='/')|(in=='\');
out(ii)=filesep; |
github | SMASHtoolbox/release-master | tdscsvread.m | .m | release-master/programs/PointVISAR/private/tdscsvread.m | 777 | utf_8 | 32563d367ed96d700cca6d4cf5efaf5d | % tdscvsread : Reads *.CVS files from TDS scopes
% [x,y]=wfmread(filename)
% filenmame is a character string name of a *.CVS file.
% Created 7/29/200r by Dan Dolan
%
function [x,y]=tdscsvread(filename)
if nargin<1
filename='';
end
if isempty(filename)
[fname,pname]=uigetfile('*.csv;*.CSV','Choos... |
github | SMASHtoolbox/release-master | FixedG.m | .m | release-master/programs/PointVISAR/private/FixedG.m | 471 | utf_8 | 87f80956282775acc76a611503261c60 | % print a number to a string with specified sigfigs
function func=FixedG(number,sigfigs)
if isempty(number)
func='';
return
end
if nargin<2
sigfigs=[];
end
if isempty(sigfigs)
sigfigs=3;
end
minwidth=7; % characters needed to display signs, decimal point, and zeros
space=1; % extra sp... |
github | SMASHtoolbox/release-master | gaussianfit.m | .m | release-master/programs/PointVISAR/private/gaussianfit.m | 3,201 | utf_8 | bfb9af3961a6b5e29823557b885f59f0 | % gaussianfit : fit data to Gaussian curve
%
% Usage:
% >> [params,yfit]=gaussianfit(x,y,guess,options);
function [params,yfit,Dxp]=gaussianfit(x,y,guess,options)
% handle mandatory input
if nargin<2
error('Insufficient number of inputs');
end
Ndata=numel(x);
if numel(x) ~= Ndata
error('Inconsistent sized da... |
github | SMASHtoolbox/release-master | EllipseFit.m | .m | release-master/programs/PointVISAR/private/EllipseFit.m | 3,092 | utf_8 | d550dbd7e854bf753b21e12a8fdbec55 | % EllipseFit : Fit an ellipse to (x,y) data
% Created 8/2/2004 by Daniel Dolan
%
function func = EllipseFit(params, x, y, fixed, options)
if nargin < 4
fixed = [];
end
if isempty(fixed)
%fixed = logical(zeros(size(params)));
fixed=true(size(params));
end
if nargin < 5
options = [];
end
... |
github | SMASHtoolbox/release-master | getdirname.m | .m | release-master/programs/PointVISAR/private/getdirname.m | 273 | utf_8 | 46402772ae5e427c9189454950c8de37 | % getfilename : system dependent frontend to uigetdir
function dirname=getdirname(varargin)
switch lower(computer)
case 'mac'
dirname=native_uigetdir(varargin{:});
%dirname=uigetdir(varargin{:});
otherwise
dirname=uigetdir(varargin{:});
end |
github | SMASHtoolbox/release-master | PointVISARversion.m | .m | release-master/programs/PointVISAR/private/PointVISARversion.m | 706 | utf_8 | e4847b2f35101b24a894ad90de7693de | % PointVISARversion : returns current PointVISAR version number
function [version,versiondate]=PointVISARversion()
%Version history:
% Version 2.1 created May 17, 2005
% Version 2.2 created May 31, 2005
% Version 2.5 created October 15, 2008
% -bug fixes and Windows executable generated August 29, 200... |
github | SMASHtoolbox/release-master | VisarAnalysis.m | .m | release-master/programs/PointVISAR/private/VisarAnalysis.m | 14,256 | utf_8 | 1dcd0dd49c193fd7853df2646b8e72e6 | function record = VisarAnalysis(record, varargin)
% VisarAnalysis Provides a gateway to different stages of Visar
% Analysis.
% This function provides a gateway to the different stages of VISAR
% analysis; most of the actual calculations are performed in separate
% routines called by this function. The u... |
github | SMASHtoolbox/release-master | FourPanels.m | .m | release-master/programs/PointVISAR/private/FourPanels.m | 5,230 | utf_8 | cf1174af1d6f3e9d34bb6017c233a8ea | % FourPanels : create a pair of horizontal panels with slider sizing
% controlled by a slider
% only one FourPanels system can exist with any parent figure or uipanel
function [slider,panel]=FourPanels(varargin)
% make sure an even number of input arguments were given
if logical(rem(nargin,2... |
github | SMASHtoolbox/release-master | FringeDialog.m | .m | release-master/programs/PointVISAR/private/FringeDialog.m | 12,871 | utf_8 | 3ca2be82e94bd04f30b8819ea7693777 | % Displays a modal dialog where the user can modify fringes.
% FringeDlg returns RecordData with the modified fringes.
% The dialog will display two lists, one for Add Fringes, and one for
% Subtract Fringes. The user can click on buttons to create new fringes or
% remove fringes.
% The defaultValue that is passe... |
github | SMASHtoolbox/release-master | EllipsePlot.m | .m | release-master/programs/PointVISAR/private/EllipsePlot.m | 1,213 | utf_8 | e944d86ea636376a55fffe066d0d37c9 | % EllipsePlot : add an ellipse to an axes
% created 1/3/2005 by Daniel Dolan
% store and overwrite modes
%
function varargout = EllipsePlot(params, mode, AxesHandle, numpoints)
% input check
if nargin < 1
params = [];
end
if nargin < 2
mode = '';
end
if nargin < 3
AxesHandle = [];
end
if na... |
github | SMASHtoolbox/release-master | ValidFilename.m | .m | release-master/programs/PointVISAR/private/ValidFilename.m | 1,160 | utf_8 | f16614c0b8373bf345f81d46245b5565 | % ValidFilename : determine if a string is a valid file name
% (multi-platform)
%
%
% Created 1/24/2007 by Daniel Dolan
function func=ValidFilename(filename)
func=true;
forbiddenA={'?','*','|','"','''','<','>','[',']','+','=',',',';',':','\','/'};
forbiddenB={'?','*','|','"','''','<','>','[',']','+','=',',',';',':'};... |
github | SMASHtoolbox/release-master | SaveSignals.m | .m | release-master/programs/PointVISAR/private/SaveSignals.m | 2,049 | utf_8 | bd5432078b696392c02e2f7785cdac6e | % Saves signals for a single VISAR record
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function record=SaveSignals(record)
% file admin
file=record.OutputFile{1};
[pname,file,ext]=fileparts(file);
file=[file ext];
drop=repmat(false,size(file));
forbidden={'?','*','|','"','''','=',',',';',':',...
'(',')','<','>','... |
github | SMASHtoolbox/release-master | LoadConfig.m | .m | release-master/programs/PointVISAR/private/LoadConfig.m | 620 | utf_8 | c721200710fc1a766b9a65dbe863cd96 | % LoadConfig Loads a PointVISAR configuration file.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [data,status]=LoadConfig(filename)
% input check
if nargin<1
filename='';
end
% parse the configuration file
[data,status,filename]=ParseConfig(filename);
if isempty(data)
return
end
% interpr... |
github | SMASHtoolbox/release-master | TimeShiftDialog.m | .m | release-master/programs/PointVISAR/private/TimeShiftDialog.m | 5,931 | utf_8 | e7246c429c8c1d02b7a4e262467817cc |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function TimeShiftDialog(data)
mainfig=findall(0,'Type','figure','Tag','PointVISAR');
maindata=get(mainfig,'UserData');
% create dialog (if necessary)
dlg=findall(0,'Type','figure','Tag','PointVISAR:TimeShift');
if ishandle(dlg)
figure(dlg);
select=findobj(dlg,'Tag','Recor... |
github | SMASHtoolbox/release-master | ThumbnailPanels.m | .m | release-master/programs/PointVISAR/private/ThumbnailPanels.m | 6,125 | utf_8 | aeb2311c337db123fffaeb39731c6b01 | % ThumbnailPanels :
function [slider,panel,label,button]=ThumbnailPanels(varargin)
% make sure an even number of input arguments were given
if logical(rem(nargin,2))
error('Unmatched number of input arguments')
end
% define variables
parent=[];
SliderValue=[];
SliderThickness=[];
NumThumbs=[];
PanelLabel={};
Butt... |
github | SMASHtoolbox/release-master | ColumnReader.m | .m | release-master/programs/PointVISAR/private/ColumnReader.m | 3,179 | utf_8 | c87781adb547ecd3cf9d32521db3cab8 | % 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 | DoubleInputDlg.m | .m | release-master/programs/PointVISAR/private/DoubleInputDlg.m | 2,815 | utf_8 | 2c2eebdab02ca7b0aee3543c2ac85753 | % DoubleInputDlg : special form of inputdlg for double precision numbers
%
% Like inputdlg, this function generates a dialog box with a number of
% fields for data input. The number of fields is specified by the number
% of prompts specified by the user. The output of this function is a cell
% array of doubles. ... |
github | SMASHtoolbox/release-master | HandleFinder.m | .m | release-master/programs/PointVISAR/private/HandleFinder.m | 709 | utf_8 | 4afda5426df875f801f789bcfbdc794c | % HandleFinder : Locate common handles in PointVISARGUI
function func=HandleFinder()
func=[];
tag='PointVISARGUI';
func=setfield(func,tag,findobj('Tag',tag));
tag='LoadSignalsGUI';
func=setfield(func,tag,findobj('Tag',tag));
tag='ParamsGUI';
func=setfield(func,tag,findobj('Tag',tag));
tag='RecordLi... |
github | SMASHtoolbox/release-master | FilterSignal.m | .m | release-master/programs/PointVISAR/private/FilterSignal.m | 2,072 | utf_8 | 28b5da41ff9f2d806499abdc991dc6a2 | %function filtSignal = FilterSignal(rawSignal, filterType, filterParams)
function [signal,params]=FilterSignal(rawsignal,name,params)
%FILTERSIGNAL Applies the specified filter with the given parameters.
% Applies a filter to the raw signal data based on the filter name and
% the corresponding parameters. Retur... |
github | SMASHtoolbox/release-master | IterativeEllipseFit.m | .m | release-master/programs/PointVISAR/private/IterativeEllipseFit.m | 3,757 | utf_8 | 2c8fcfa5ebf850275d851908040c4e3c | % EllipseFit : Fit an ellipse to (x,y) data
% created 3/6/2005 by Daniel Dolan
%
% Usage:
% params = IterativeEllipseFit(x, y); % use default guess
% = IterativeEllipseFit(x, y, guess); % user specified guess
% = IterativeEllipseFit(x, y, guess, fixed); % hold some parameters fixed
% ... |
github | SMASHtoolbox/release-master | fancyline.m | .m | release-master/programs/PointVISAR/private/fancyline.m | 577 | utf_8 | 80d603be64877f4e54d976f30bd8c1b4 | function h=fancyline(varargin)
h=line(varargin{:});
local=get(h,'UserData');
hm=uicontextmenu;
uimenu(hm,'Label',local.Label,'Enable','off');
uimenu(hm,'Label','Set color','Callback',{@linecolor,h},...
'Separator','on');
set(h,'UIContextMenu',hm);
end
function linecolor(src,eventdata,target)
color=get(target,'... |
github | SMASHtoolbox/release-master | SaveConfig.m | .m | release-master/programs/PointVISAR/private/SaveConfig.m | 3,125 | utf_8 | 7ab029446d10fd61c8d7c82937965d71 | % SaveConfig Save current PointVISAR configuration to file.
% Writes out necessary values from UserData to a file so that
% the user can reproduce the same analysis or a similar
% one at a later time.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function message=SaveConfig... |
github | SMASHtoolbox/release-master | LoadSignals.m | .m | release-master/programs/PointVISAR/private/LoadSignals.m | 4,384 | utf_8 | 7051f4a615823df996df31d6591b3da8 | function VisarData = LoadSignals(VisarData)
% LOADSIGNALS Loads raw signals into PointVISAR
% old=pwd;
filterspec={...
'*.wfm;*.WFM','Tektronix binary files';...
'*.h5;*.H5','Agilent binary files';...
'*.dig;*.DIG','NTS binary files';...
'*.txt;*.TXT;*.dat;*.DAT;*.csv;*.CSV;*.asc;*.ASC;'... |
github | SMASHtoolbox/release-master | EllipseFittingGUI.m | .m | release-master/programs/PointVISAR/private/EllipseFittingGUI.m | 33,639 | utf_8 | d319a0de387338fb78184674987d4ccd | function func = EllipseFittingGUI(recordData)
% ELLIPSEFITTINGGUI - Generates a GUI for user to update Ellipse parameters
% - Takes in a Data Record and displays the current
% ellipse parameters and produces a smaller version of
% quadrature plot from ReadE... |
github | SMASHtoolbox/release-master | RelativePath.m | .m | release-master/programs/PointVISAR/private/RelativePath.m | 2,037 | utf_8 | 6a3958b67e273e8449c75496008f188f | % RelativePath : determine the relative path between two directories
%
%
%
function func=RelativePath(targetpath,sourcepath)
% input check
if nargin<1
error('Error: no target path specified');
end
if nargin<2
sourcepath='';
end
% default value(s)
if isempty(sourcepath)
sourcepath=pwd;
end
% enforce corre... |
github | SMASHtoolbox/release-master | ParseConfig.m | .m | release-master/programs/PointVISAR/private/ParseConfig.m | 7,347 | utf_8 | a9b307c4ad5fb7404250fc4857a7531c | % parseconfig : parse configuration file
%
% This function parses a file into field/value pairs for records defined by
% the configuration. Records are denoted by begin{type}/end{type}
% statements, between which any number of "field = value" statements can be
% inserted. Braces associate multiple values to a fie... |
github | SMASHtoolbox/release-master | getfilename.m | .m | release-master/programs/PointVISAR/private/getfilename.m | 374 | utf_8 | 262e729d2db981516de65e3c8b9a94b7 | % getfilename : system dependent frontend to uigetfile
function [filename,pathname,filterindex]=getfilename(varargin)
switch lower(computer)
case 'mac'
[filename,pathname,filterindex]=native_uigetfile(varargin{:});
%[filename,pathname,filterindex]=uigetfile(varargin{:});
otherwise
[file... |
github | SMASHtoolbox/release-master | RecordNotesDialog.m | .m | release-master/programs/PointVISAR/private/RecordNotesDialog.m | 2,674 | utf_8 | ae226388e8b04edeef6759feb6bda497 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function RecordNotesDialog(record)
% create dialog (if necessary)
fig=findall(0,'Type','figure','Tag','PointVISAR:Notes');
if ishandle(fig)
figure(fig);
notebox=findobj(fig,'Tag','Notes');
else
% spacing parameters (characters)
dx=5;
dy=1;
ControlHeight=2;
... |
github | SMASHtoolbox/release-master | InterpConfig.m | .m | release-master/programs/PointVISAR/private/InterpConfig.m | 4,381 | utf_8 | f3dda98c8600b4b44720b9eea65f79ad | % InterpConfig : interpret a configuration file
% created 1/22/2007 by Daniel Dolan
function [data,status]=InterpConfig(data,filename)
status.exitmode='normal';
status.message='';
pathname=fileparts(filename);
numrecords=numel(data);
for ii=1:numrecords
name=fieldnames(data{ii}); % store specified fie... |
github | SMASHtoolbox/release-master | PointVISARGUI.m | .m | release-master/programs/PointVISAR/private/PointVISARGUI.m | 17,952 | utf_8 | 224a4a6c3b7aedd147f05960d74d020a | % PointVISARGUI
% 7/6/2010 : added a bunch of hacks to prevent overlay deletion
%%%%%%%%%%%%%%%%
% main routine %
%%%%%%%%%%%%%%%%
function fig=PointVISARGUI(data)
% input check
if nargin<1
data=[];
end
fig=findall(0,'Type','figure','Tag','PointVISAR');
hoverlay=[];
if ishandle(fig) % GUI alread... |
github | SMASHtoolbox/release-master | wfmread.m | .m | release-master/programs/PointVISAR/private/wfmread.m | 15,513 | utf_8 | bddeb0c95dff17709d9bcea58d477cd8 | % 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 | isfigure.m | .m | release-master/programs/PointVISAR/private/isfigure.m | 585 | utf_8 | bca88d2ebc6912cc83877262c1296f73 | % isfigure : true for existing figure handles
%
% Created 9/22/2004 by Daniel Dolan
function func=isfigure(handle)
if nargin<1
error('Not enough input arguments.');
end
if isempty(handle) % empty handle cannot be valid
func=logical(0);
return
else % default assumption is that everthing is inva... |
github | SMASHtoolbox/release-master | agilent_h5read.m | .m | release-master/programs/PointVISAR/private/agilent_h5read.m | 2,557 | utf_8 | cb40206ceef6860c4a7e2b24a3cd2db1 | % agilent_h5read : read Agilent HDF5 binary data files
%
% This function reads files data created by Agilent digitizers
% stored in the HDF5 format (*.h5). These files contain one or more
% signals in a binary format.
%
% Usage:
% >> [signal,time,label]=agilent_h5read(filename,index);
% If filename is omitted or emp... |
github | SMASHtoolbox/release-master | NewRecordGUI.m | .m | release-master/programs/PointVISAR/private/NewRecordGUI.m | 8,849 | utf_8 | f56ac7b9058343f6a3c1c4b8f5811ba8 |
%%%%%%%%%%%%%%%%
% main routine %
%%%%%%%%%%%%%%%%
function fig=NewRecordGUI(VISARtype,SignalStorage)
fig=findall(0,'Type','figure','Tag','PointVISAR:NewRecord');
if ishandle(fig) % GUI already exists--clear text fields and reuse
figure(fig);
ht=findobj(fig,'Style','edit');
set(ht,'String','');
set(fi... |
github | SMASHtoolbox/release-master | SmoothDerivative.m | .m | release-master/programs/PointVISAR/private/SmoothDerivative.m | 3,046 | utf_8 | 81ae1518aba6fb3b1e5f5d959866231a | % SmoothDerivative : calculate a smooth derivative using the Savitzky-Golay
% method
%
% Usage:
%
% params=[order numpoints]
%
% [dydy,ysmooth]=SmoothDerivative(params,y,x); % standard form
%
% params=SmoothDerivative(params); % verify parameter set
%
%
% created 1/7/2008 by Daniel Dolan
% updated 1/16/2008 by Dani... |
github | SMASHtoolbox/release-master | ActiveRecord.m | .m | release-master/programs/PointVISAR/private/ActiveRecord.m | 450 | utf_8 | 0ae25f6da27e4f1761f5c839b33f1834 | % determine active PointVISAR record
%function [active,data]=ActiveRecord(data)
function active=ActiveRecord(data)
% active=[];
% for ii=1:numel(data)
% if data{ii}.Active
% if isempty(active)
% active=ii;
% else
% data{ii}.Active=false;
% end
% end
% end
N=num... |
github | SMASHtoolbox/release-master | local_graphic.m | .m | release-master/programs/PointVISAR/private/local_graphic.m | 52,096 | utf_8 | 7de11b749e8ccf6da189d87a95d5e5e9 |
% 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 | FringeHandler.m | .m | release-master/programs/PointVISAR/private/FringeHandler.m | 2,293 | utf_8 | 714d446905a8b603e8cef2b915738be5 |
function cmenu = FringeHandler(index, signalLabel)
% Creates a context menu for the given signal that will allow the user to
% modify fringes. FringeHandler will create a context menu that contains
% one item that is used to bring up a dialog that allows the user to modify
% the Add Fringes and the SubtractFringe... |
github | SMASHtoolbox/release-master | MinimalFigure.m | .m | release-master/programs/PointVISAR/private/MinimalFigure.m | 39,773 | utf_8 | cb4e24c9798a71e21e234fabb85c57f7 | % 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
% or... |
github | SMASHtoolbox/release-master | SDAbrowser.m | .m | release-master/programs/SDAbrowser/SDAbrowser.m | 483 | utf_8 | 3f7aeea393ac9725dfc0b0d3a4101664 | % SDAbrowse Browse archive file
%
% This program interactively browses Sandia Data Archive (*.sda) files.
% SDAbrowser % interactive file selection
% SDAbrowser(filename) % begin with a specific file
function varargout=SDAbrowser(filename)
% manage output
if isdeployed
varargout{1}=0;
end
% manage input
%... |
github | SMASHtoolbox/release-master | writeSDA.m | .m | release-master/programs/SDAbrowser/writeSDA.m | 2,005 | utf_8 | ef6389056d24a8f1b45ec5aa2974e3e4 | % writeSDA Write archive records
%
% This function writes records to a Sandia Data Archive (SDA) file.
% Individual records can be created from any MATLAB variable using a text
% label.
% writeSDA(filename,label,variable);
% writeSDA(filename,label,variable,description);
% writeSDA(filename,label,variable,desc... |
github | SMASHtoolbox/release-master | readSDA.m | .m | release-master/programs/SDAbrowser/readSDA.m | 3,288 | utf_8 | 8d8ec2fa29acc4a91b08dbc8e5e3bb38 | % readSDA Read archive records
%
% This function reads records from a Sandia Data Archive (SDA) file.
% Individual records are accessed by their label.
% variable=readSDA(filename,label);
% [variable,type,description]=readSDA(filename,label);
% Label wildcards are permitted and may return multiple variables (with... |
github | SMASHtoolbox/release-master | probeSDA.m | .m | release-master/programs/SDAbrowser/probeSDA.m | 883 | utf_8 | c1654608d0a15ea8baffb5e86a78537a | % probeSDA Reveal archive contents
%
% This function reveals the contents of a Sandia Data Archive (SDA) file.
% When called with no output:
% probeSDA(filename);
% the archive's contents are printed in the command window. Specific
% information from the archive is returned by requesting output.
% [label,type,d... |
github | SMASHtoolbox/release-master | createDialog.m | .m | release-master/programs/SDAbrowser/private/createDialog.m | 9,545 | utf_8 | 28c6719b2103582238b87468e176f738 | % UNDER CONSTRUCTION
function createDialog(filename)
%% create dialog and archive objects
object=SMASH.MUI.Dialog('FontSize',12);
object.Hidden=true;
archive=SMASH.FileAccess.SDAfile(filename);
object.Name='SDA browser';
%% menu items
hmenu=uimenu('Label','File');
uimenu(hmenu,'Label','Select archive','Callback',@lo... |
github | SMASHtoolbox/release-master | MCdemo.m | .m | release-master/programs/MCdemo/MCdemo.m | 3,454 | utf_8 | b5d5389e4faa46a27b032e2be7c2393f | % This program demonstrates Monte Carlo integration to estimate the value
% of pi. When called without input:
% MCdemo();
% the program launches a graphical interface for demonstrating random
% points drawn inside a square. The ratio of points inside a nested
% circle approaches pi/4 as the number of draws goes to... |
github | SMASHtoolbox/release-master | pyrosim.m | .m | release-master/programs/pyrosim/pyrosim.m | 22,739 | utf_8 | 647540eda17cdc88500a6a2226aaf603 | % pyrosim: pyrometery measurement simulator
%
% This program calculates the power, photon flux, and signal measured
% by a detector in a pyrometer measurement. The user may specify the
% object's temperature, emissivity, the limting collection diameter/angle
% of the relay, the relay efficiency, and the detector's res... |
github | SMASHtoolbox/release-master | convertLUNA.m | .m | release-master/programs/convertLUNA/convertLUNA.m | 3,166 | utf_8 | a3f47d9b9ed9e6d72c2ec728ac09fa39 | % convertLUNA Conversion tool for LUNA fiber scan files
%
% This program converts files generated by a LUNA optical backscatter
% reflectometer to compact format. To launch the program, type:
% >> convertLUNA
% in the command window. A dialog box will be created to allow interactive
% selection of the source dire... |
github | SMASHtoolbox/release-master | SIRHEN.m | .m | release-master/programs/SIRHEN/SIRHEN.m | 1,803 | utf_8 | e3c39c431e89e8729bf5800ee7b26fb6 | % SIRHEN: Sandia InfraRed HEterodyNe analysis program
function varargout=SIRHEN(varargin)
if isdeployed
varargout{1}=true;
end
% see if program is already running
basetag='SIRHEN';
Nbase=numel(basetag);
openfig=allchild(0);
for ii=1:numel(openfig)
tag=get(openfig(ii),'Tag');
visible=get(openfig(ii),'Visib... |
github | SMASHtoolbox/release-master | SelectionScreen.m | .m | release-master/programs/SIRHEN/private/SelectionScreen.m | 21,809 | utf_8 | a30921b600eb6f1c42b8055342af8426 | function fig=SelectionScreen(prevfig)
% allocate mising input
if nargin<1
prevfig=[];
end
% create figure (if necessary)
tag='SIRHEN_SelectionScreen';
fig=findall(0,'Type','figure','Tag',tag);
if isempty(fig)
name='SIRHEN: Sandia InfraRed HEtrodyne aNalysis';
fig=createGUI('Tag',tag,'Name',name);
end
% t... |
github | SMASHtoolbox/release-master | digread.m | .m | release-master/programs/SIRHEN/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 | AnalysisScreen.m | .m | release-master/programs/SIRHEN/private/AnalysisScreen.m | 23,547 | utf_8 | 51c6fa0cd3a23b8600325be67e523ad9 | function fig=AnalysisScreen(prevfig)
% allocate mising input
if nargin<1
prevfig=[];
end
% create figure (if necessary)
tag='SIRHEN_AnalysisScreen';
fig=findall(0,'Type','figure','Tag',tag);
if isempty(fig)
name='SIRHEN: Sandia InfraRed HEtrodyne aNalysis';
fig=createGUI('Tag',tag,'Name',name);
end
% tra... |
github | SMASHtoolbox/release-master | gaussianfit.m | .m | release-master/programs/SIRHEN/private/gaussianfit.m | 1,759 | utf_8 | cf446bd9a0ff00ecb476ea494506cac9 | % gaussianfit : fit data to Gaussian curve
%
% Usage:
% >> [params,yfit]=gaussianfit(x,y,guess,options);
function [params,yfit]=gaussianfit(x,y,guess,options)
% handle mandatory input
if nargin<2
error('Insufficient number of inputs');
end
Ndata=numel(x);
if numel(x) ~= Ndata
error('Inconsistent sized data a... |
github | SMASHtoolbox/release-master | trcread.m | .m | release-master/programs/SIRHEN/private/trcread.m | 7,208 | utf_8 | d347149c11876f82be79d71638a7b90a | % TRCREAD Read LeCroy binary data files
%
% This function reads binary data created by LeCroy digitizers
% (*.TRC files). To access the signal and its time base, call the function
% with a file name as an input.
% >> [signal,time]=trcread(filename);
% If no file is specified, the user will be prompted to select one.... |
github | SMASHtoolbox/release-master | AbsoluteFileName.m | .m | release-master/programs/SIRHEN/private/AbsoluteFileName.m | 1,017 | utf_8 | c96a41cd9c29ab2703d050ca38cf0bfc | % AbsoluteFileName : determine absolute path of a file
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function func=AbsoluteFileName(filename,sourcepath)
% input check
if nargin<1
error('Error: no file name specified');
end
if nargin<2
sourcepath='';
end
% default value(s)
if isempty(sourcepath)
source... |
github | SMASHtoolbox/release-master | ColumnReader.m | .m | release-master/programs/SIRHEN/private/ColumnReader.m | 3,013 | utf_8 | e18ce6f4c4da20924ed491a4c10b1f6c | % 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 | datadlg_STFT.m | .m | release-master/programs/SIRHEN/private/datadlg_STFT.m | 7,653 | utf_8 | 25bb2618144a5903d6d3a7caff4dd93d | % datadlg: create a data dialog box
%
%
function answer=datadlg_STFT(name,label,default,options)
% handle input
if (nargin<1) || isempty(name)
name='Data Dialog';
end
if (nargin<2) || isempty(label)
label={'Parameter:'};
end
if (nargin<3) || isempty(default)
default={''};
end
if (nargin<4) || isempty(o... |
github | SMASHtoolbox/release-master | stft.m | .m | release-master/programs/SIRHEN/private/stft.m | 9,675 | utf_8 | 8ef410a13b56979cbbdc501abdbbe2dd | % stft : short time Fourier transform analysis
%
% This function breaks a signal into durations and calculates the frequency
% spectrum of each duration with a FFT. By default, the spectra are stored in
% a 2D array (frequency X time) for image display. User defined functions
% may also be applied to the individual ... |
github | SMASHtoolbox/release-master | datadlg_display.m | .m | release-master/programs/SIRHEN/private/datadlg_display.m | 6,784 | utf_8 | 39bb5a997194e260346b3e188ee7dd2e | % datadlg: create a data dialog box
%
%
function answer=datadlg_display(name,label,default,options)
% handle input
if (nargin<1) || isempty(name)
name='Data Dialog';
end
if (nargin<2) || isempty(label)
label={'Parameter:'};
end
if (nargin<3) || isempty(default)
default={''};
end
if (nargin<4) || isempt... |
github | SMASHtoolbox/release-master | wfmread.m | .m | release-master/programs/SIRHEN/private/wfmread.m | 15,513 | utf_8 | bddeb0c95dff17709d9bcea58d477cd8 | % 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 | findpeak.m | .m | release-master/programs/SIRHEN/private/findpeak.m | 5,182 | utf_8 | 552ac66c8826b8e6153b7cd6ba12aaa3 | % findpeak : determine the position, width, and strength of a peak
%
% Usage:
% >> result=findpeak(x,y,options);
%
% Required input:
% x : horizontal data array
% y : vertical data array
% Both arrays must be the same size
%
% Optional input may be passed through a structure containing one or more
% of the follow... |
github | SMASHtoolbox/release-master | datadlg_calhist.m | .m | release-master/programs/SIRHEN/private/datadlg_calhist.m | 6,168 | utf_8 | abd1a75a5ba8fac410abc90373d8ec94 | % datadlg: create a data dialog box
%
%
function answer=datadlg_calhist(name,label,default,options)
% handle input
if (nargin<1) || isempty(name)
name='Data Dialog';
end
if (nargin<2) || isempty(label)
label={'Parameter:'};
end
if (nargin<3) || isempty(default)
default={''};
end
if (nargin<4) || isempt... |
github | SMASHtoolbox/release-master | agilent_h5read.m | .m | release-master/programs/SIRHEN/private/agilent_h5read.m | 2,676 | utf_8 | e30d14c1754f32e6ca663f44e0925d75 | 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 | agilent_h5read old.m | .m | release-master/programs/SIRHEN/private/agilent_h5read old.m | 2,872 | utf_8 | 68c1592a87b250be6b3aedeac8850b9a | % agilent_h5read : read Agilent HDF5 binary data files
%
% This function reads files data created by Agilent digitizers
% stored in the HDF5 format (*.h5). These files contain one or more
% signals in a binary format.
%
% Usage:
% >> [signal,time,label]=agilent_h5read(filename,index);
% If filename is omitted or emp... |
github | SMASHtoolbox/release-master | screen.m | .m | release-master/programs/SIRHEN/private/screen.m | 2,228 | utf_8 | 4f2cc21f6ab4438d754130fa1edde474 | function [fig,button,haxes,hp]=screen(varargin)
% probe primary monitor size
monpos=get(0,'MonitorPositions');
diagonal=monpos(:,3).^2+monpos(:,4).^2;
[~,keep]=max(diagonal);
monLx=monpos(keep,3);
monLy=monpos(keep,4);
fig=MinimalFigure('Visible','off','units','pixels',...
'NumberTitle','off','IntegerHandle','off'... |
github | SMASHtoolbox/release-master | estimate_noise.m | .m | release-master/programs/SIRHEN/private/estimate_noise.m | 1,064 | utf_8 | 6bef06869318508dfdbdee9c371d9f75 | % estimate_noise : estimate Gaussian noise fraction in a harmonic signal
%
% Usage:
% >> value=estimate_noise(signal);
% created 9/21/2010 by Daniel Dolan
% completely revised 11/19/2010 by Daniel Dolan
% finalized 11/23/2010 by Daniel Dolan
function value=estimate_noise(signal)
% handle input
if (nargin<1) || isempt... |
github | SMASHtoolbox/release-master | set_colormap.m | .m | release-master/programs/SIRHEN/private/set_colormap.m | 2,056 | utf_8 | d09b65df565e97c46e8e6e7de28ada12 | function set_colormap(haxes,map,invertmap)
N=256;
try
map=feval(map,N);
catch
map=colormap('default');
end
if strcmp(invertmap,'yes')
map=map(end:-1:1,:);
end
colormap(haxes,map)
end
% red color map (inspired by IDL)
function map=red(numcolors)
N=linspace(1,numcolors,3);
N=round(diff(N));
red=[lin... |
github | SMASHtoolbox/release-master | local_graphic.m | .m | release-master/programs/SIRHEN/private/local_graphic.m | 52,089 | utf_8 | 8d3b38dfab085a5a3ee7c594a7b92ec7 |
% 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 | datadlg.m | .m | release-master/programs/SIRHEN/private/datadlg.m | 8,171 | utf_8 | 07346438881698b837ee93644364a9fb | % datadlg: create a data dialog box
%
% This function is provides a flexible dialog box for data entry, similar
% to inputdlg.
% Usage:
% >> answer=datadlg(name,label,default,button,options);
%
% Cell arrays passed to the datadlg create edit boxes for user input.
% Example:
% >> label={'Parameter 1:','Parameter 2:'... |
github | SMASHtoolbox/release-master | MinimalFigure.m | .m | release-master/programs/SIRHEN/private/MinimalFigure.m | 37,529 | utf_8 | ec3fa00ea70e64e5c799b55dbfa60538 | % MinimalFigure: create a minimalistic figure useful for GUIs
%
% This function creates a MATLAB non-dockable, menu-less figure with a
% custom toolbar. Aside from these customizations, all standard figure
% features can be specified as inputs:
% MinimalFigure('Units','pixels','Position',[0 0 600 480]); % example
% o... |
github | SMASHtoolbox/release-master | RelativeFileName.m | .m | release-master/programs/SIRHEN/private/RelativeFileName.m | 837 | utf_8 | 15d6e1f0f807fa480a5b7939f9cd6ecd | % RelativeFileName : determine the relative path between two directories
%
%
%
function func=RelativeFileName(filename,sourcepath)
if (nargin<2) || isempty(sourcepath)
sourcepath=pwd;
end
filename=AbsoluteFileName(filename);
sourcepath=AbsoluteFileName(sourcepath);
[filepath,filename,ext]=fileparts(filename);
fi... |
github | SMASHtoolbox/release-master | mydatadlg.m | .m | release-master/programs/SIRHEN/private/mydatadlg.m | 6,162 | utf_8 | 4a398f48e0593678f228f41b8e048934 | % datadlg: create a data dialog box
%
%
function answer=mydatadlg(name,label,default,options)
% handle input
if (nargin<1) || isempty(name)
name='Data Dialog';
end
if (nargin<2) || isempty(label)
label={'Parameter:'};
end
if (nargin<3) || isempty(default)
default={''};
end
if (nargin<4) || isempty(opti... |
github | SMASHtoolbox/release-master | stft.m | .m | release-master/programs/SIRHEN/private/new/stft.m | 9,410 | utf_8 | 86a2ea4a8e2368dca6633cf28d0fd246 | % stft : short time Fourier transform analysis
%
% This function breaks a signal into durations and calculates the frequency
% spectrum of each duration with a FFT. By default, the spectra are stored in
% a 2D array (frequency X time) for image display. User defined functions
% may also be applied to the individual ... |
github | SMASHtoolbox/release-master | findpeak.m | .m | release-master/programs/SIRHEN/private/new/findpeak.m | 5,182 | utf_8 | 552ac66c8826b8e6153b7cd6ba12aaa3 | % findpeak : determine the position, width, and strength of a peak
%
% Usage:
% >> result=findpeak(x,y,options);
%
% Required input:
% x : horizontal data array
% y : vertical data array
% Both arrays must be the same size
%
% Optional input may be passed through a structure containing one or more
% of the follow... |
github | SMASHtoolbox/release-master | custom_uicontrol.m | .m | release-master/programs/SIRHEN/private/old/custom_uicontrol.m | 855 | utf_8 | ed07ab3310f6bd0d7dc903971721adba | % customized uicontrol function
function [h,pos]=custom_uicontrol(varargin)
h=uicontrol(varargin{:});
style=get(h,'Style');
% set font
persistent fontname
if isempty(fontname)
fonts=listfonts;
fontname='';
for ii=1:numel(fonts)
if strcmpi(fonts{ii},'helvetica')
fontname=fonts{ii};
... |
github | SMASHtoolbox/release-master | stft.m | .m | release-master/programs/SIRHEN/private/old/stft.m | 9,438 | utf_8 | fd0eac22d8fe6c0ab3367e2ffdb8ea70 | % stft : short time Fourier transform analysis
%
% This function breaks a signal into durations and calculates the frequency
% spectrum of each duration with a FFT. By default, the spectra are stored in
% a 2D array (frequency X time) for image display. User defined functions
% may also be applied to the individual ... |
github | SMASHtoolbox/release-master | findpeak.m | .m | release-master/programs/SIRHEN/private/old/findpeak.m | 5,776 | utf_8 | 3f03633169ba92961d70e95c051c6d15 | % findpeak : determine the position, width, and strength of a peak
%
% Usage:
% >> result=findpeak(x,y,method,params);
%
% Required input:
% x : horizontal data array
% y : vertical data array
% Both arrays must be the same size
%
% Optional input:
% method : peak analysis method ('robust','maximum','centroid',... |
github | SMASHtoolbox/release-master | datninja.m | .m | release-master/programs/datninja/datninja.m | 1,106 | utf_8 | 2b66291af849ef8e35230dc9a78dfe88 | % datninja('ImageFile',file);
%
function varargout=datninja(varargin)
% manage input
ImageFile='';
FontSize=14;
assert(rem(nargin,2) == 0,'ERROR: unmatched name/value pair');
for n=1:2:nargin
name=varargin{n};
assert(ischar(name),'ERROR: invalid option name');
value=varargin{n+1};
switch lower(name)
... |
github | SMASHtoolbox/release-master | loadImage.m | .m | release-master/programs/datninja/+datninja/@Session/loadImage.m | 726 | utf_8 | 576992cd0becd5b9d4a1d2bfadbfce6c | % loadImage(object);
% loadImage(object,filename);
function loadImage(object,file)
% manage input
if (nargin < 2) || isempty(file)
list={'*.png;*.PNG;*.jpg;*.JPG;*.tif;*.TIF;*.tiff;*.TIFF' ...
'Supported graphic files'};
[file,location]=uigetfile(list,'Select graphic file');
if isnumeric(file... |
github | SMASHtoolbox/release-master | analyzeReference.m | .m | release-master/programs/datninja/+datninja/@Session/analyzeReference.m | 1,470 | utf_8 | 55d01d872b5ca20015db878f905d20e4 | function analyzeReference(object)
M=size(object.ReferenceTable,1);
assert(M >= 3,'ERROR: at least three points needed for reference analysis');
m=object.ReferenceTable(:,1);
n=object.ReferenceTable(:,2);
theta=calculateMaxAngle([m n]);
assert(theta >= 10,'ERROR: insufficient reference span');
% log scaling
x=object.... |
github | SMASHtoolbox/release-master | generateExamples.m | .m | release-master/programs/datninja/+datninja/@Session/generateExamples.m | 1,321 | utf_8 | 5e1f476b313349c14f8882f28f530480 | % generateExamples();
function generateExamples(varargin)
if regexp(pwd,smashroot)
error('ERROR: cannot generate examples in the SMASH toolbox directory');
end
% linear
fig=figure();
x=1:9;
y=1:9;
plot(x,y,'ko');
xlim([0 10]);
ylim([0 10]);
xlabel('X axis');
ylabel('Y axis');
generate(fig,10,'LinearExample.pn... |
github | SMASHtoolbox/release-master | calculateXY.m | .m | release-master/programs/datninja/+datninja/@Session/calculateXY.m | 709 | utf_8 | 720bbd275a2bc9c245f34a97f54a40ec | %
function data=calculateXY(object,ref)
assert(~isempty(object.ParameterMatrix),...
'ERROR: not enough reference points');
% manage input
assert(nargin >= 2,'ERROR: insufficient input');
assert(isnumeric(ref) && (numel(ref) >= 2),...
'ERROR: invalid reference array');
if nargin == 2
ref=reshape(ref,[1 2]... |
github | SMASHtoolbox/release-master | createGUI.m | .m | release-master/programs/datninja/private/old/createGUI.m | 14,907 | utf_8 | c8f608e1d52e1ae2ca231dfa09d6ef50 | function db=createGUI(FontSize)
PixelFormat='%.3f';
VariableFormat='%+#.6g';
session=datninja.Session();
%% mock up dialog box
db=SMASH.MUI.DialogPlot('FontSize',FontSize);
set(db.Figure,'IntegerHandle','off','HandleVisibility','callback');
db.Name='dataninja 2.0';
db.Hidden=true;
setappdata(db.Figure,'Session',sess... |
github | SMASHtoolbox/release-master | datninja_reader.m | .m | release-master/programs/datninja/old/datninja_reader.m | 1,144 | utf_8 | 74eecff51026a0372bd8f8b0cb651a05 | % datninja_reader : read data file created by datninja
% Usage:
% >> [x,y]=datninja_reader(filename);
%
% created November 24, 2008 by Daniel Dolan (Sandia National Labs)
function [x,y]=datninja_reader(filename)
message{1}='The datninja program is obsolete and will be removed in future toolbox releases';
message{2}='... |
github | SMASHtoolbox/release-master | datninja.m | .m | release-master/programs/datninja/old/datninja.m | 22,996 | utf_8 | b5164417230affb16b71ba3ac935c218 | % datninja : extract line data from (digitize) an image
%
% The program assists the user in "digitizing a curve", the process of
% converting points in a digital image to a set of (x,y) data points. To
% do this, the user selects two sets of points in the image. First, a
% series of reference points are chosen based ... |
github | SMASHtoolbox/release-master | parseData.m | .m | release-master/programs/datninja/old/app/private/parseData.m | 671 | utf_8 | 35c497d209ac142b10cdcb60e676e619 |
function [out,format]=parseData(in,format)
% verify numeric input
in=strtrim(in);
[out,~,~,next]=sscanf(in,'%g',1);
if isempty(out)
return
end
in=in(1:next-1);
% update format
new=0;
start=false;
while numel(in) > 0
switch lower(in(1))
case {'e' 'd'}
break
case {'1' '2' '3' '4' '5... |
github | SMASHtoolbox/release-master | analyzeSinusoid.m | .m | release-master/programs/analyzeSinusoid/analyzeSinusoid.m | 14,318 | utf_8 | 2e383ce5d21e16f40e2ffceadab1a306 | % analyzeSinusoid Analyze sinusoidal signal(s)
%
% This program analyzed sinusoidal measurements acquired on
% Agilent/Keysight, LeCroy, and Tektronix digitizers. Running the program:
% analyzeSinusoid;
% initiates a graphical user interface for loading digitizer files (*.bin,
% *.h5, *.trc, and *.wfm). All measure... |
github | SMASHtoolbox/release-master | fringen.m | .m | release-master/programs/fringen/fringen.m | 3,755 | utf_8 | 6fc7d2f63e90b28563535d5512933635 | % fringen : fringe generator for VISAR/PDV measurements
%
% This function synthesizes VISAR and PDV signals for a given velocity
% history. Calling the function with no inputs:
% >> fringen
% launches a graphical interface for generating VISAR/PDV signals.
%
% Users can bypass the graphical interface by specifying ... |
github | SMASHtoolbox/release-master | PDVparamsGUI.m | .m | release-master/programs/fringen/private/PDVparamsGUI.m | 1,797 | utf_8 | 6ee3c2333b93902c92ce6a4937c31e8b | function PDVparamsGUI(rootfig)
data=get(rootfig,'UserData');
data.params=createGUI(data.params);
data=make_signals(data);
data=mangle_signals(data);
set(rootfig,'UserData',data);
updateGUI(rootfig);
function params=createGUI(params)
% create labels and default entries
label={};
default={};
format='%.6g ';
label{end... |
github | SMASHtoolbox/release-master | VISARparamsGUI.m | .m | release-master/programs/fringen/private/VISARparamsGUI.m | 1,989 | utf_8 | 94712ba1c1262dfde09dbeadf45d8bee | function VISARparamsGUI(rootfig)
data=get(rootfig,'UserData');
data.params=createGUI(data.params);
data=make_signals(data);
data=mangle_signals(data);
set(rootfig,'UserData',data);
updateGUI(rootfig);
function params=createGUI(params)
% create labels and default entries
label={};
default={};
format='%.6g ';
label{e... |
github | SMASHtoolbox/release-master | ColumnReader.m | .m | release-master/programs/fringen/private/ColumnReader.m | 3,375 | utf_8 | 03428aa831287109cf4b55e57fb8ee19 | % 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 | fringenGUI.m | .m | release-master/programs/fringen/private/fringenGUI.m | 8,726 | utf_8 | 3a2b39c589c000f33f691dae29f0a4d6 | function fringenGUI(varargin)
tag='fringen_GUI';
fig=findall(0,'Tag',tag);
if ishandle(fig)
figure(fig);
return
end
% create GUI
fig=MinimalFigure(...
'Tag',tag,...
'Name','fringen: Fringe generator for VISAR and PDV',...
'NumberTitle','off','IntegerHandle','off',...
'Units','normalized','Posit... |
github | SMASHtoolbox/release-master | local_graphic.m | .m | release-master/programs/fringen/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/fringen/private/MinimalFigure.m | 35,460 | utf_8 | c4c94d840dccd5a66bca6d4688ce019c | % 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 | THRIVE.m | .m | release-master/programs/THRIVE/THRIVE.m | 1,962 | utf_8 | 667ad5b0100342d82fc7581726583159 | % THRIVE : Three-interferometer velocity analysis program
%
% Type "THRIVE" to launch the program or make it active.
%
% version 1.0 released May 2008
% created by Daniel Dolan
% version control
function THRIVE()
% see if program is already running
basetag='THRIVE_';
Nbase=numel(basetag);
openfig=allchild(0);
for ii=... |
github | SMASHtoolbox/release-master | faker.m | .m | release-master/programs/THRIVE/faker.m | 1,287 | utf_8 | f7d33da7a39ed01e0eb6c3764ad94760 | % faker : sythesize a three-phase measurement from two-phase data
function faker(infile,outfile)
% handle input
if (nargin<1) || isempty(infile)
[filename,pathname]=uigetfile('*.*','Select two-phase input file');
if isnumeric(filename) % user pressed cancel
return
end
infile=fullfile(pathname,... |
github | SMASHtoolbox/release-master | custom_uicontrol.m | .m | release-master/programs/THRIVE/private/custom_uicontrol.m | 855 | utf_8 | ed07ab3310f6bd0d7dc903971721adba | % customized uicontrol function
function [h,pos]=custom_uicontrol(varargin)
h=uicontrol(varargin{:});
style=get(h,'Style');
% set font
persistent fontname
if isempty(fontname)
fonts=listfonts;
fontname='';
for ii=1:numel(fonts)
if strcmpi(fonts{ii},'helvetica')
fontname=fonts{ii};
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.