Varargin
process_varargin is a simple script that allows the user to create a set of default values for attributes in a script then using varargin override those values.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): process_varargin Download |
[h,varargout]=plotColumns(data,varargin)plots columns of a matrix as if each column is a time seriesUSAGE:plotColumns(data);[h] = plotColumns(t,data);[h] = plotColumns(t,data,{colors});[h] = plotColumns(t,data,'plotopt');[h] = plotColumns(...,'plotopt');[h] = plotColumns(...,{colors});
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): plotColumns.m: plots columns in matrix as time series Download |
% printgif(varargin) prints gif files in matlab% printgif accepts all print arguments in varargin.% printgif ignores all printer drivers passed to it% ('-deps', '-dtiff', etc.)% instead it used the -djpeg100' driver and converts% the resulting jpg file to a gif using% imread/rgb2ind/imwrite%%...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (51): print a gif in matlab Download |
A minor improvement on the fminsearchbnd (bounded fminsearch) created by John D'Errico. Changes:% Changes from fminsearchbnd:Changes from fminsearchbnd:1) in options structure, user may pass an 'output function' and 'plot function' to fminsearch.Original fminsearchbnd handled the output function...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): fminsearchbnd new Download |
pbest=EASYFIT(x,y,varargin) fits the data Y = f(X) to a model function Y = FUN(P,X).If FUN is not given as an input argument, POLYFIT is used as the model function.Bounds on the parameters P may be set.By default a plot is generated which presents the data as well the "best" curve, confidence...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (49): Fit experimental data is easy Download |
The main features are: Plot. For each immitance types (Z, Y, C or M), the data can be plotted in the complex plane, as well their real, imaginary parts or their magnitude in function of the frequency (Log/Log). Simulation. The possibilities are almost infinite. Over the classical R, C, L...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (52): ZfitGUI(varargin) fits and simulates impedance data Download |
function env = env_capture(varargin)% function env = env_capture(varargin)% Capture the scope/environment of the caller. This is useful% to snapshot in a running function all local (and local global)% including persistent variables with their bindings.%% If no arguments provided, returns all...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Environment Capture Download |
Numerical integration from -Inf to Inf of an integrand in the form f(x)*exp(-x^2)f(x) must be a slowly varying functionfn_val = GaussHermite(func, npt, varargin)func is a handle for f(x)npt is the number of points at which f(x) is to be evaluated. A look-up table of abscissas and weights is used,...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): GaussHermite Download |
Sparklines as per Tufte.h = sparklines(t,m, varargin)
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): Sparklines - mrfk Download |
CHECKFIELD intend to be a facility to handle varargin in functions. It provides error checks, default, and structuring for the varargin. k = CHECKFIELD(field,listfield) where field is a string checks if field is one of the fields in the cell listfield given in second argument. It returns the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): checkfield Download |
This demo uses MATLAB Builder for Java to create a Java component from a MATLAB function varargexample.m. A Java Servlet was created which calls into the MATLAB created component to display a plot of the arguments specified. The plot is displayed in the web page using Web Figures feature of...
Platforms: Matlab
License: Freeware | Size: 153.6 KB | Download (45): varargServlet Download |
[xm,ym,xx,yy]=Seekpeaks(fun,x,y,y_tol,Nsteps,varargin)Searches the maxima of the function 'fun', which is an object such as produced by inline or by a m-function. y=fun(x,P1,P2,...), where P1, P2,...are additional parameters used in the function 'fun' and are given in 'varargin' in Seekpeaks as...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Seekpeaks Download |
plotcdfkuiper(x,a,b,cdf,varargin)Plot the cumulative probability distribution for a set of variates x between limits a,b and compare with the theoretical cumulative distribution function using the Kuiper test.cdf = handle for cumulative distribution functionvarargin contains parameters for...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): plotcdfkuiper Download |
Reconstruct an image from parallel projection data using the convolution-backprojection algorithmfunction [img,H] = CTrecon(prj,varargin)for a discussion of this function including examples see: http://aprendtech.com/wordpress/?p=74Mathworks has created a workaround to fix the offset problem in...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 225.28 KB | Download (48): CTrecon-an improved parallel data image reconstruct function Download |
S=fdir(varargin) returns a struct containing all folders and subfolders within the specified directory, given by varargin, and total bytes within each folder The struct is sorted in descending order by total size in bytes Syntex for varargin is the same for function 'rdir.m' Example:%Return...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): (Sub)Folders directory Download |
S=RepeatFiles(varargin) returns a 'struct array with fields' listing all repeated file names within the directory or subdirectories given by varargin. The list is sorted in alphabetical order with repeated files listed in sequence. Syntex for varargin is the same for function 'rdir.m'...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Find Repeated Files Download |
[subplot_handles,LabelsFontSize] = subplotplus(subplot_array,varargin) is an enhanced alternative to the inherit subplot() function of MATLAB. Using subplotplus() almost any layout of subplots can be created in a particular figure.The desired subplot layout is described using a complex cell array...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): subplotplus() - Enhanced layout MATLAB subplot function Download |
Usage:plotfunction(fcn,LB,UB,varargin)EXAMPLES:1. plotfunction(@hosaki,[0 0],[5 5]); % Plot hosaki function in the range of 0 - 5 in both dimension. 2. LB = zeros(1,4);UB= 10*ones(1,4); xypar = [2 3]; plotfunction(@shekel,LB,UB,xypar); % Plot shekel function in the range of 0 - 10 in second and...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): Plot Multi Dimensional Functions Download |
validateInput started when creating saveppt2. There was a need to take a large number of inputs, in any order, and make them usable to the script. Checking if an input argument has been passed can be done with isfield or if the 'force' option is enabled if the field is...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (49): validateInput Download |
PLOTMD(AX, X, VARARGIN) plots the points in matrix X in the axes with handle AX using the plot formatting options in VARARGIN. X must be a matrix whose columns are the 2D or 3D vectors to plot. If the column vectors are N-dimensional, then only the first 3 components of each vector are used in...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): plot 2/3D point(s) Download |