Vectors
This short code provides a Tanimoto distance calculator for binary vectors. It emulates the pdist function of the Statistics Toolbox which does not provide a Tanimoto distance option.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): Tanimoto Download |
%Updated version $Date: May 18th,2011 by Liang Kuang at Stevens Institute of Tech%Update 1: Change int8 to int16 when current colormap is bigger than 64,which will cause error%Update 2: Added 'samesize' for making all the vectors the samesize%Update 3: Add colorbar corresponding the the magnitude...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): quiverc.m--updated with new features Download |
This function will take a [1xn] or [mx1] vector and normalize it to a unit vector length.To use this function [vectorOut] = fcn_createUnitVector(vectorIn)Error checking is performed to test for NaN values in the output, and a square root of the sum of the squares == 1This function will take...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): Take a vector and convert it to a unit vector (normalize) Download |
For vectors, WMEAN(X,W) is the weighted mean value of the elements in X using non-negative weights W. For matrices, WMEAN(X,W) is a row vector containing the weighted mean value of each column. For N-D arrays, WMEAN(X,W) is the weighted mean value of the elements along the first non-singleton...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): wmean Download |
PlotSphereIntensity(azimuth, elevation)PlotSphereIntensity(azimuth, elevation, intensity)h = PlotSphereIntensity(...)Plots the intensity (as color) of a number of points on a unit sphere.Input: azimuth (phi), in degrees elevation (theta), in degrees intensity (optional, if not provided, a green...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): Plot Intensity on Sphere Download |
This function is similar to MATLAB's own scatter3 routine. PLOTCLR(X,Y,V) plots the values specified in V as a color coded scatter plot at the locations specified in the vectors X and Y. The current colormap of the figure is used for the color code.Improvement from function plotc.m.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): plotclr Download |
mergesorted.m------------------If we have two individually sorted vectors "a" and "b" but they are not sorted with respect to each other and we want to merge them into vector "c" such that "c" is also a sorted vector. Then c=mergesorted(a,b) can be used.This function most likely make difference...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Merge two sorted vectors into a sorted vector Download |
Takes two signal vectors as inputs and produces a mixture signal at a desired SNR level (dB). Includes various examples.
Platforms: Matlab
License: Freeware | Size: 911.36 KB | Download (46): Add Noise Download |
This function graphs the neuron's weight and the input vectors. You can label the neurons and inputs, change the marker size, and color code the map to see which inputs activate which neurons (a visual representation of the approximation of the input field of a neuron in the adaptive network).
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): LABELNET Download |
Anthropomorphic arm with 6 DOF and spherical wrist It calculates the Inverse Kinematic of an Anthropomorphic arm with 6 DOF. 'q' is the solutions in radiant and K is the direct Kinematic matrix. K = [ n s a p; 0 0 0 1] where n, s, a are three vectors fo 3 elements that represents the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Inverse Kinematic for 6DOF arm Download |
This function take the input of a data vector x, which is to be binned; it also takes in the amount bins one would like the data binned into. The output is two vectors, one containing the normalised frequency of each bin (Freq), the other, the midpoint of each bin (midpts).
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Natural Log Binning Download |
This is the package for online (competitive)/batch prediction using generalized linear models under square loss. The algorithms are derived using the Aggregating Algorithm.The algorithms have guarantees on the cumulative square loss for the worst case when applied in online fashion in comparison...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Online/Batch generalized linear models under square loss Download |
RanLip uses acceptance/rejection approach to generate random vectors, which is based on approximation of the probability density function from above with a "hat" function. It is assumed that the distribution hasLipschitz-continuous density, which is either given analytically or has a black box....
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 450.56 KB | Download (46): RanLip Matlab toolbox Download |
NDSPACE N-dimensionally spaced points NDSPACE(X1, X2) generates a column matrix of 10^n linearly equally spaced points in the hypercube defined by the two diametrically opposite cornerpoints X1 and X2 both n-by-1 vectors. If either is a scalar it will be expanded to repmat(X,n,1). NDSPACE(X1, X2,...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): N-dimensionally spaced points Download |
PP = PCHIPD(X,Y,D) provides the piecewise cubic polynomial which interpolates values Y and derivatives D at the sites X. This is meant to augment the built-in Matlab function PCHIP, which does not allow the user to specify derivatives.X must be a vector.If Y and D are vectors, then Y(i) and D(i)...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Hermite cubic interpolating polynomial with specified derivatives Download |
DARROW draw arrows at specified point in spefied directionsDARROW(X,Y,U,V,S) for scalar arguments, draws an arrow of lengths S at point (X,Y) in the direction (U,V).When one or more input arguments are column vectors, arrows of specified lengths are drawn at each point in specifed directionsH =...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): DARROW Download |
Learn about position, velocity and acceleration vectors. Move the ladybug by setting the position, velocity or acceleration, and see how the vectors change. Choose linear, circular or elliptical motion, and record and playback the motion to analyze the behavior.
Platforms: Mac
License: Freeware | Size: 2.18 MB | Download (46): Ladybug Motion 2D Download |
Normalizes N-D vectors provided either in one matrix, or as multiple component matrices.NORMVEC normalize vector(s). NORMVEC computes the unit vectors in the direction of the vectors provided. It can process two types of arguments: 1) single matrix of vectors 2) multiple matrices of vector...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): Normalize N-D Vectors in Single Matrix or N Component Matrices Download |
[coef, RSquared]=plotfit(x,y,polyorder)A simple function that accepts x,y data pairs in in the vectors "x" and "y", fits it to a polynomial of order "polyorder", plots the data and the fit, and displays the fit coefficients and the goodness-of-fit measure R-squared in the upper left corner of the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): plotfit Download |
Constrained and Unconstrained, Analysis and Synthesis Prior Solvers for Jointly sparse Multiple Measurement Vectors.Sparco is required for running the Matlab files. Download it from http://www.cs.ubc.ca/labs/scl/sparco/ ans install it in Matlab path.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): Solvers for Joint Sparse MMV Reconstruction Download |