Vector
Using 'reduce' and 'map', this code shows how a matrix vector multiplication can be reduced to a single loop.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (54): Matrix vector multiplication Download |
This vector class stores elements in a list and hence allows the 'vector' to grow dynamically. Common mathematical functions (sin, cosh, etc) are supported elementwise and so are a number of 'external' operations (dot for the inner product between vectors, norm, sum etc.).This class does not rely...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (55): Vector class Download |
Programmable Vector Graphics code shows how to use vector graphics in your applications and how to create interactive GIS and CAD-system.
Platforms: C and C plus plus
License: Freeware | Size: 51.2 KB | Download (51): Programmable Vector Download |
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...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (49): Vector Quantization - K-Means Download |
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 function that accomplishes this.Features:- All 12...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): Euler angle, DCM, Quaternion, and Euler Vector Conversion/Teaching GUI Download |
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.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Space vector PWM based three phase inverter using state space model of filter Download |
The model simulates the three phase inverter with space vector pulse width modulation. The SVPWM idea has been used from the Matlab drive library.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (45): Space Vector PWM for three phase inverter -- Matlab default Download |
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 [xi,y0] given in two vectors, one for the values and another one for the positions.The inputs...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Find values in a vector or function Download |
function [out]=random2(ini,fin,num)% Choosse randomly a number (num) of elements from a vector [ini:fin]% Randomly change the position of the vector. in pairs of twos%% Imput:% ini: Beginning of the vector% fin: End of the vector% nun: Number of elements to choose from the range of vector...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (48): Choosse randomly number of elements from a vector Download |
The simulation for educational purposes shows the resulting rotating vector from the 3 by 120 degrees shifted sinusoidals in a phase plane.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Resulting vector from a 3-phase system Download |
once you have the normal vector, this toolkit will calculate normalized tangent plane vector for you.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Tangent vector calculation Download |
Some particular vector functions as the vector norm, the vector length, scaling and the cross respectively dot product for extended precision. All functions work on the first dimension of [3xM] extended matrices.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (46): Vector functions (extended) Download |
for cody challengeFind the sum of all the numbers of the input vector x.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Sum ofall numbers in the input vector Download |
This function gets the 1st derivatives of a vector V with two boundariesInput:V = the input vector, 1D datadelta_x = delta xINDstart = first indexINDend = last indexOutput:VDx = 1st derivative of V with respect to x
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (41): A function to get the 1st derivatives of a vector with two finite boundaries Download |
vectline is "vector field line plotter". Depending on the dimension of coordinate axis, vectline can plot both 3D and 2D vector field line.Example for 2D field>> syms x y>> F = [-y, x];>> vectline(F,[x,y],[-1,1,-1,1])Example for 3D field>> syms x y z>> F = [x*y^2, x*y, z];>>...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (54): 3D/2D vector field plotter Download |
Arrowline 3-D vector plot.vectarrow(p0,p1) plots a line vector with arrow pointing from point p0 to point p1. The function can plot both 2D and 3D vector with arrow depending on the dimension of the inputExample: For 3D vector p0 = [1 2 3]; p1 = [4 5 6]; vectarrow(p0,p1) For 2D vector p0 = [1 2];...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Plot 2D/3D Vector with Arrow Download |
This computer model allows students to split a vector into its components and practice finding the magnitude and direction. In addition, it offers a "Find components" mode, where magnitude and direction of the vector are given and the student's task is to find the x-component and the y-component...
Platforms: Mac
License: Shareware | Cost: $0.00 USD | Size: 1.35 MB | Download (41): Vector Components Model Download |
This simulation offers beginning students practice in two-dimensional vector addition. It is relatively simple, as the x and y components of each vector are integers. Given the magnitude and direction of two vectors, students must determine the x and y components, the length of each, and the...
Platforms: Mac
License: Freeware | Size: 1.35 MB | Download (41): Vector Addition with Integer Components Download |
This simulation gives students a chance to practice two-dimensional vector addition in an interactive format with immediate feedback. The magnitude and direction of two vectors are given; the students' task is to determine x and y components, length of the two vectors, and the resultant sum....
Platforms: Mac
License: Freeware | Size: 1.36 MB | Download (35): Vector Addition Model Download |
Bit::Vector is an efficient bit vector, set of integers and "big int" math library. CLASS METHODS Version $version = Bit::Vector->Version(); Word_Bits $bits = Bit::Vector->Word_Bits(); # bits in a machine word Long_Bits $bits = Bit::Vector->Long_Bits(); # bits in an unsigned long new...
Platforms: *nix
License: Freeware | Size: 133.12 KB | Download (40): Bit::Vector for Linux Download |