This is a small M-file that can be thought of as the inverse of the colon operator: it takes a linearly spaced row vector and generates a compact notation for that vector.
It handles concatenations of such vectors too, and will in fact for any real array (subject to considerations of numerical precision) generate a valid string representation of that array as a reshaped row vector.
I wrote this because I found myself using input...
access all connected cameras, take snapshots, record streams, access and process frames in realtime
i wrote this for Matlab 7.7.0 (R2008b)
this gui should make it convenient to access usb or firewire cameras (or whatever Matlab toolbox...
While lacking an Admin UI, this module is now used at multiple locations in production environments. Craig Sinclair (Amherst Community Media) created a screencast that shows how to configure the PBCore module for Drupal to display customized...
graphical representation of the arrays
The function plots x and y data with errorbars for both.
x=array of xdata
y=array of ydata
xerror=array of errors for x
Let's face it, upgrading old modules to the new form API in Drupal 4.7 can be quite a challenge. Form Updater can help developers with the upgrade by automatically searching through old Drupal code to find calls to old form functions (such as...
This function is a more robust and improved version of my previous submission, matchingpursuit.m
This function computes the projection of a given input vector or matrix onto a "dictionary" of other vectors or matrices using a...
This file are dedicated to all who trying to type 10x10 arrays in MATLAB. From my experience this is one of the worst things that I have done in my scientific life :)). Very simple but effective.
THIS FUNCTION PROVIDES A USER A UTILITY TO PLOT THE BEAMPATTERN OF LINEAR ISOTROPIC ARRAYS BY PROVIDING THE INTER-ELEMENT DISTANCES,CORRESPONDING WEIGHTINGS AND/OR STERING DIRECTION OF THE BEAM.
IDX = OTSU(I,N) segments the image I into N classes by means of Otsu's N-thresholding method. OTSU returns an array IDX containing the cluster indices (from 1 to N) of each point.
IDX = OTSU(I) uses two classes (N=2, default value).
[xs,ys] = cint(x1,y1,x2,y2) finds intersection points of the curves defined by straight lines between the length(x1) points in the plane, (x1,y1), and the length(x2) points in the plane (x2,y2).
The function essentially solves
It can display all kind of PHP info, such as PHP variables, errors, warnings, assertions and more.
The script is easy to setup, needing just an include statement at the beginning of a PHP file.
PHP Script Debugger generates...
Config.js allows developers to configure their applications in an XML block instead of hard-coding values inside their scripts or in JSON objects. The XML can be embedded inside an HTML document or in a separate XML file. The configuration block...
Aperiodic 1D and 2D binary arrays from Thue-Morse and Rudin-Shapiro algorithms are generated based on user input. Saves data and picture to file.
Rudin-Shapiro: g(A)=AC, g(B)=DC, g(C)=AB, g(D)=DB
Thue-Morse: g(A)=AB, g(B)=BA
Use this simple, self-contained class definition to obtain quotes and historical data from Yahoo finance.
f = stock('f','5y','d);
creates a stock object with a current quote and five year history of daily data for the stock...
Clipping is the main program. There are three inputs: y is the time record, threshhold_value is the clipping threshhold, and threshhold_samples is the number of consecutive data points exceeding the threshhold_value to indicate that the data is...
LABEL is a generalization of BWLABEL: BWLABEL works with 2-D binary images only, whereas LABEL works with 2-D arrays of any class.
L = LABEL(I,N) returns a matrix L, of the same size as I, containing labels for the connected components...
At the Matlab Conference, 2010 in London, Joe Hicklin commented that he was interested in seeing improved invocation error reporting in Matlab functions, so here's my stab at providing some of that ability.
The function takes:
Converts a string with (possibly) an SI prefix to a number. Works in reverse of num2sci. Works with cell arrays of strings also.
num = sci2num('14.5 m') returns num = 0.0145
num = sci2num('14.5') returns...
XML_PullParser moves the API of the PHP XML facility from an event-based model to a token-based model.
Instead of processing data passed from the parser to callbacks, scripts work with "tokens", which are arrays representing...