Array programming

Sorted vector in java

The following java project contains the java source code and java examples used for sorted vector. takes a vector which can be sized dynamically unlike array, sorts it into array. Although you could just use toArray() this demonstrates using inner loops.

Creates a column vector by stacking elements of x that are on and below the diagonal. in matlab

The following Matlab project contains the source code and Matlab examples used for creates a column vector by stacking elements of x that are on and below the diagonal. . Creates a column vector by stacking elements of x that are on and below the diagonal; each column is placed into a matrix. Created because I could not get Mike Cliff's vech function to work on multidimensional arrays.

Create positions in matlab

The following Matlab project contains the source code and Matlab examples used for create positions. CREATE_POSITIONS creates outerposition vectors for desired figure grid       function position = create_positions(rows, columns)       INPUT       rows: Vector of desired number of rows per monitor       columns: Vector of desired number of columns per monitor       OUTPUT       position: Array with desired outerposition vectors   B.

Generates a sub matrix of a multidimensional array by interpolation of the independent variables. in matlab

The following Matlab project contains the source code and Matlab examples used for generates a sub matrix of a multidimensional array by interpolation of the independent variables. . Reduces a multimensional array by one dimension by interpolating a selected dimension to a given value.

Generalized array operations in matlab

The following Matlab project contains the source code and Matlab examples used for generalized array operations. Computes functions of arrays where the singleton dimensions of each have been expanded to be the size of the other, without actually copying any data. For example,   x = rand(4,3,1,2);   y = rand(4,1,5,2);   z = genop(@times,x,y); size(z) will be [4 3 5 2].

Displays vectors, matrices and 3d-arrays using custom data formats, elements separators and brackets in matlab

The following Matlab project contains the source code and Matlab examples used for displays vectors, matrices and 3d-arrays using custom data formats, elements separators and brackets . function row = disparray(array, format, separator, brackets_type) % DISPARRAY - Displays arrays using a custom format % % This function displays scalars, one-dimentional arrays (vectors), % two-dimentional arrays (matrices) and three-dimenational arrays, % using customized format, elements separator and brackets type % % INPUTS: % array: a scalar, a vector, a matrix or a 3D-array

Fill each row/column with a certain number of ones (n-ones) in matlab

The following Matlab project contains the source code and Matlab examples used for fill each row/column with a certain number of ones (n-ones) . NONES - fill each row/column with a certain number of ones (N-ONES)     A = NONES(V) creates a logical array A, in which each row/column     starts with zero or more TRUE entries followed by zero or more FALSE     entries, as specified by the elements of the vector V.

Array tool set in matlab

The following Matlab project contains the source code and Matlab examples used for array tool set. Working on large datasets, I noticed several ways that some common Matlab functions could be expedited, while at the same time generalizing their function.

Multidimensional interpolation with integer inputs in matlab

The following Matlab project contains the source code and Matlab examples used for multidimensional interpolation with integer inputs. iminterpn uses Image Processing Toolbox functions to implement multidimensional interpolation. Unlike the MATLAB function interpn, iminterpn can interpolate an integer array (such as uint8, uint16, etc.) without converting it to double.

Group2cell in matlab

The following Matlab project contains the source code and Matlab examples used for group2cell. GROUP2CELL - group values into cells C = GROUP2CELL(V,G) returns a N-by-1 cell array in which the values V are grouped as row vectors into separate cells according to the values in G.

Matrix2latex gui in matlab

The following Matlab project contains the source code and Matlab examples used for matrix2latex gui. This function converts an MATLAB 2-dimensional array (matrix) which can be numerical or a cell array, into proper formated LaTeX code. This utility is actually the GUI representation of M.Koehler matrix2latex code.

Digital beamforming in matlab

The following Matlab project contains the source code and Matlab examples used for digital beamforming. 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.

Struct2ws in matlab

The following Matlab project contains the source code and Matlab examples used for struct2ws. % struct2ws(s,varargin) % % Description : This function returns fields of scalar structure s in the % current workspace % __________________________________ % Inputs : % s (scalar structure array) : a structure that you want to throw in % your current workspace.

Pages

Subscribe to RSS - Array programming