Given adjacent matrix (transmat) and starting/ending node (pathS, pathE), this function finds the shortest-path (path) that connecting pathS and pathE, and returns the cost (cost):
[path, cost]=dijkstra(pathS, pathE, transmat);
NOTE: Except for the simple interface, the pathS and pathE can be the same node, i.e., this implementation can find _cyclic_ paths.
GOTO filename changes MATLAB current directory to the one containing filename. filename must be on the MATLAB path. goto uses the first instance of filename that it finds (a la WHICH).
This is not rocket science, but it sure is convenient!
Extract information from HTML pages that have some kind of a repetitive pattern
This package finds repetitive format patterns in an HTML page that contains one or more lists and extracts the sub-html text that creates the patterns. The...
This m-file finds the bit error rate performance of BPSK DS-SS system over (i) AWGN channel and (ii) Slow Rayleigh fading channel corrupted by AWGN. Compare the performance with simple BPSK system.
In this simulation I have used two...
The script finds a (near) optimal solution to a variation of the "open" M-TSP by setting up a GA to search for the shortest route (least distance needed for each salesman to travel from the start location to unique individual cities and...
The five programs provided solve several process design problems. These examples were originally provided as applications of process design optimization by Edgar, Himmelblau and Lasdon in their excellent book entitled Optimization of Chemical...
This m-file finds the periodic ACF of all the m-sequences of length 31.In this program m-sequences of length 31 are generated and its periodic Autocorrelation function is plotted.
The function finds the resolution of jpeg or tif file.
Betterdate makes non-required FAPI date fields work as expected.
In Drupal core versions 4, 5, and 6, FAPI 'date' form fields cannot distinguish between required and non-required fields. In both cases, a user must enter a date, even if...
[M,B] = AG_RECTA(X,Y) finds the the slope M and the y-intercept B of the line that better fits to the X,Y data. X and Y are vectors of the same length.
Very lean an simple code that automatically finds major peaks, their locations, fwhms and area in a given signal y versus x. Requires no input parameters. The output is a matrix with peaks sorted in rows and following columns:
output =...
This simple program finds the ramp response of SISO LTI systems defined by a transfer function.
Actually it is based on the MATLAB Control Toolbox function 'step'.
The Calais Collection is an integration of the Thomson Reuters' Calais web service into the Drupal platform. The Calais Web Service automatically creates rich semantic metadata for the content you submit d-deOCt in well under a second. Using...
ICP - Iterative Closest Point algorithm, c++ implementation. Handles only points in R^3. Makes use of a kd-tree for closest-point search. ICP finds the transformation of points in data to fit points in model. Fit with respect to minimize a...
%% MYTOEPLITZ matrix finds the toeplitz matrix of a vector % Input : Vector % Output: Toeplitz Matr
This function displays a graph of the inheritance hierarchy of Matlab Object Oriented Code. It finds all classes below the current working directory and all super classes on the Matlab Path and displays the graph using the bioinformatics toolbox...
This is an improvement on the previously submitted recursive program that finds all possible solutions to a given sodoku puzzle.
Thanks to a clever suggestion by Leif Warland, this new program finds solutions about 20 times faster.
It is a bit surprising that the communications toolbox provides functionality for elements over gf(2), but it does not provide functionality for finding the null space of a matrix over the Galois field. These two files are simple modifications of...
The function The LMFnlsq.m serves for finding optimal solution of an overdetermined system of nonlinear equations in the least-squares sense. The standard Levenberg- Marquardt algorithm was modified by Fletcher and coded in FORTRAN many years ago...
Demo to illustrate simple blob detection (segmentation), measurement, and filtering. Requires the Image Processing Toolbox (IPT) because it demonstrates some functions supplied by that toolbox, plus it uses the "coins" demo image... |