This function is for training a codebook for vector quantization. The data set is split to two clusters, first, and the mean of each cluster is found (centroids). The disttance of each vector from these centroids is found and each vector is associated with a cluster. The mean of vectors of each cluster replaces the centroid first. If the total distance is not improved substantially, The centroids are each split to two. This goes on untill the...
This is an instructional GUI to be used for learning how Euler angles, DCMs, quaternions, and Euler vector parameters relate in the rotation of cartesian frames (A to B). Can also be used to convert between all 4 values, however see below for a...
The model simulates space vector based three phase inverter with the state space model of thefilter. The model parameters such as frequency, switching frequency, load parameters, voltage, modulation index and filter A,B,C,D parameters.
finding mean vector of RGB image
The model simulates the three phase inverter with space vector pulse width modulation. The SVPWM idea has been used from the Matlab drive library.
Given a desired value "y0", this function finds all the elements "y" in a vector whose values are the closest to "y0" in the whole vector, and also the positions "xi". So, the output is a set of points...
% Choosse randomly a number (num) of elements from a vector [ini:fin]
% Randomly change the position of the vector. in pairs of twos
% ini: Beginning of the vector
The simulation for educational purposes shows the resulting rotating vector from the 3 by 120 degrees shifted sinusoidals in a phase plane.
This function will randomly generate unit vectors that are normal to a given vector in 3-space. It ues the function: unifrnd in the Statistics Toolbox; user can change this to use rand function w/o much effort if doesn't have Statistics Toolbox.
once you have the normal vector, this toolkit will calculate normalized tangent plane vector for you.