Argument
This function addresses two of the major shortcomings of the M-Lint report which is available in the MATLAB Directory Browser. Firstly, it will perform a recursive analysis, i.e. the current directory and its subdirectories and their subdirectories etc. Secondly, it allows the user to filter out...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Run M-Lint on a directory tree and filter results Download |
This function loads an XML file and yields an inputParser object configured according to its contents.All R2007a inputParser configurable properties and argument types and options are handled.Typical usage:>> myIp = configInputParser('myConfig.xml);
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): configInputParser Download |
This function saves Matlab figure windows or Simulink models to a Powerpoint file in metafile format using the ActiveX interface. The figure or model is first copied to the Windows clipboard, Powerpoint is started, a new blank slide is added, the figure/model is pasted, the file is saved, and...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (42): saveppt Download |
[Word, msg] = LE_printViaWord(fileNames)The function launches a Word COM server, opens and prints the given files.The COM server handle is returned as first output argument (Word), and the user is advised to exit the server by typing Quit(Word) in the MATLAB command window.Calling the function...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): Print text using Microsoft Word Download |
This heavily commented Fortran program serves as a simple example on how a MATLAB .m file can be called from Fortran. Suitable if this is your first time trying this.The basic mechanism is to pack the C-compiled .m into a .dll and link to it from Fortran. Argument and result xfer mechanism is...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Call .m from Fortran Download |
Easily create transparent overlays from binary masks of your images. Manage the masks, modify opacities and colors, show multiple masks. It's easy!Operates on the current image, unless an optional argument specifies an axes containing an image.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): showMaskAsOverlay Download |
Let us suppose a set of non-linear equations in the formF(m) = d(m,d are vectors, F is a vector function of vector argument). ANNI tries to construct suitable numerical approximation for inverse projection of d to m, i.e. to find numerical form ofG(d) = m.Such mapping may not exist in general,...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 276.48 KB | Download (45): ANNI - solver of a set of non-linear equations Download |
[Th, H] = JACOBITHETAETA(U,M) returns the values of the Jacobi's theta and eta elliptic functions TH and H evaluated for corresponding elements of argument U and parameter M.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Jacobi Theta and Eta Functions Download |
In this example you will learn the "function handler" from a "functor set" points-of-view. The functor set can store more than one functionhandlers, so one can choose a function handler from a functor set and pass it to another function as an input argument.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): a functor set example Download |
Given a nonnegative integer n, return the nth Lucas number. Return an error message if the argument is not an integer.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Lucas.m Download |
Calculates the geometric mean of a vector X (first argument) weighted by the values of another vector W (second argument). It may be already available, but I didn't find it, so here it is, just in case.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): Weighted Geometric Mean Download |
Reads temperature from Agilent 34970A through GPIB. Written for NI GPIB addapter (but can be easily modified.First time can be called to define the GPIB object, which is then used as an input argument to shave run time.Tested on 7.0.1 under Windows 2000, requires Instrument Control Toolbox.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): gettemp Download |
%GROWBUBBLES packs maximum radius circles at given central locations%% PTRADS = GROWBUBBLES(PTS) returns the radius of circles at coordinates in PTS with all radii% maximised but without any circles overlapping. PTS is a P-by-N matrix of P "N-dimensional"% points.%% If no output argument is...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Growbubbles - maximum radius packing Download |
Find the index or subscripts of the nearest value in an array to a test value. A bias argument can be included to only return values greater or less than the search value.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): findnearest.m Download |
POLYFIT_ROOTS Least-squares polynomial fit to data.[R,K] = POLYFIT_ROOTS(X, Y, N, TOL) finds the roots R and constant K so that the polynomial P(s) = K*(s-R(1))*(s-R(2))* ... *(s-R(N)) is the best least-squares fit to the data Y at points X.Argument TOL bounds the accuracy of the fit, and if...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 81.92 KB | Download (47): polyfit_roots Download |
Displays a string inline in the command window, overwriting any output the method previously displayed.Useful to update any displayed string in-place, for example to indicate the the state of a simulation in progress.-----------------------------------e.g.displayInline;tic;for k = 1:1e6 if...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): displayInline Download |
The Standard for the Exchange of Earthquake Data (SEED) is an international standard format for the exchange of digital seismological data. SEED was designed for use by the earthquake research community, primarily for the exchange between institutions of unprocessed earth motion data. It is a...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Read and write miniSEED file Download |
importSTDF.m extracts test data and information fields from each binary record in an STDF file, returning each record data set in a separate cell. Field values are converted to their specified data type, per the specification.Since the file type is binary and MatLab does not have good native...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): STDF file reader Download |
This function tries to do the opposite of what MATLAB's built-in SAVE function does: with SAVE, variables are written to a binary file if they are included in the input arguments. SAVEX, on the other hand saves all variables by default, except those which are specified by the user. This can be...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): save all variables except what the user specifies Download |
Convert orbital elements to a state vector, or a state vector back to orbital elements.Most readily available Keplerian orbital element conversion utilities do not address circular or parabolic orbits. This set of routines will address the complete spectrum of orbits from a circular equatorial...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (50): Convert Keplerian Orbital Elements to a State Vector Download |