Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
OrgChart JS 4.9.7
iScripts CyberMatch 1.3.3
AnyGantt JS Gantt Charts 8.7.0
Database Workbench Pro 5.6.8
Devart SSIS Data Flow Components 1.10.1
SentiMask SDK Trial 2.0.193121
dbForge Studio for SQL Server 5.8
ODBC Driver for ASE 2.1.2
The C# OCR Library 4.4.0
ODBC Driver for xBase 2.1
Rapid PHP 2018 15.5
IBDAC 6.4
Online Course Booking Script 1.3.3
Job Portal Script 1.3.2
The C# PDF Library 5.2
Top Code
iScripts CyberMatch 1.3
Database Workbench Pro 5.6.8
dbForge Studio for SQL Server 5.5
Availability Booking Calendar PHP 1.0
Online Course Booking Script 3.04
ATN Resume Finder 2.0
PHP Review Script 1.0
ATN Site Builder 3.0
Devart SSIS Data Flow Components 1.0
IBDAC 6.4
Azizi search engine script PHP 4.1.10
ICPennyBid Penny Auction Script 4.0
The C# PDF Library 1.0
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Classy script, Classy Website Clone 2.0.4
Top Rated
VisualNEO Web 2018.12.15
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Normalize N-D Vectors in Single Matrix or N Component Matrices 1.0
File ID: 85717






Normalize N-D Vectors in Single Matrix or N Component Matrices 1.0
Download Normalize N-D Vectors in Single Matrix or N Component Matrices 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 1
Submit Rating:
Normalize N-D Vectors in Single Matrix or N Component Matrices 1.0 Description
Description: 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 components
(as those returned by MESHGRID and NDGRID)

In both cases, the p-norm to be used can be specified.
The default is the 2-norm (Euclidean).

Only in the first case, the matrix dimension along which the vectors
are defined can be defined. The default is the first non-singleton
This behavior is derived from VNORM (FEX id=#10708, by Winston Smith),
which is called by this function.

Zero vectors are normalized to 0 and NOT to NaN.

usage

Case A: matrix of N-dimensional column vectors
[v] = NORMVEC(v)
[v] = NORMVEC(v, 'p', n)
[v] = NORMVEC(v, 'p', n, 'dim', d)

v = matrix of column vectors
= [#dimensions x #vectors]
n = p-norm selected (e.g. 2 is the Euclidean norm ||.||_2)
d = norm for vectors defined along dimension d of matrix v
>= 1
or [] (vectors along first non-singleton dimension)

Case B: 2 component matrices of 2-dimensional vectors
[px, py] = NORMVEC(px, py)
[px, py] = NORMVEC(px, py, 'p', n)

px = matrix [M x N] of x vector components
py = matrix [M x N] of y vector components
n = 'p' norm selected

Case C: 3 component matrices of 3-dimensional vectors
[px, py, pz] = NORMVEC(px, py, pz)
[px, py, pz] = NORMVEC(px, py, pz, 'p', n)

px = matrix [M x N x L] of x vector components
py = matrix [M x N x L] of y vector components
pz = matrix [M x N x L] of z vector components
n = 'p' norm selected

Case D: N component matrices of N-dimensional vectors
[px1, px2, ..., pxN] = NORMVEC(px1, px2, ..., pxN)
[px1, px2, ..., pxN] = NORMVEC(px1, px2, ..., pxN, 'p', n)

pxi = matrix [M1 x M2 x ... x MN] of xi vector components
n = 'p' norm selected

dependency (included)
vnorm, File Exchange ID = 10708, (c) 2006 by Winston Smith
http://www.mathworks.com/matlabcentral/fileexchange/10708-vector-norm

License: Shareware

Related: smith, winston, called, Function, Usage, normalized, id3d10708, vnorm, Defined

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 1



More Similar Code

MULTIPROD is a powerful, quick and memory efficient generalization for N-D arrays of the MATLAB matrix multiplication operator (*). While the latter works only with 2-D arrays, MULTIPROD works also with multidimensional arrays.
MULTIPROD performs multiple multiplications between matrices, vectors, or scalars contained in two multidimensional arrays, with automatic virtual array expansion (AX) enabled. AX allows you, for instance, to...



Calculate the linear indices for neighboring points in a matrix. You need to supply one or more linear indices for the point(s) of origin and the dimensions of the matrix. You will get a list will linear indices to all neighboring points. The...



SolFS is is a virtual file system, stored in single file (or database record, file resource or just memory block). SolFS has all necessary functionality, that can be found in modern file systems, such as support for streams inside of files, file...



SolFS is is a virtual file system, stored in single file (or database record, file resource or just memory block). SolFS has all necessary functionality, that can be found in modern file systems, such as support for streams inside of files, file...



Let r_scale be the neighborhood radius scale, a brute search method would require N*r_scale to detect the valleys with neighborhood size of r_scale in 1d signal or N*r_scale*r_scale complexity in 2d image. Which is too slow in large data size. In...



[L, C, D] = FKMEANS(X, k) partitions the vectors in the n-by-p matrix X
into k (or, rarely, fewer) clusters by applying the well known batch
K-means algorithm. Rows of X correspond to points, columns correspond to
variables. The...



Shuffles numbers in a given m-by-n matrix or 1-by-n vector. The output will have the same number of rows and columns as the input matrix or vector but with shuffled numbers.



plotvec plots all vectors given in a matrix with a vector in each row.
Possible are 2D or 3D vectors.
Optional a name of the vector can be given in an addional matrix. Than the name and the coordinates of each vector are displayed.



Y = INPAINTN(X) replaces the missing data in X by extra/interpolating the non-missing elements. The non finite values (NaN or Inf) in X are considered as missing data. X can be any N-D array.

Important note:
----------------



The collection of functions in the NaN Suite enhances the functionality of the original 'nan'-functions in the Statistics Toolbox for N-D matrices. In addition, the new function nansem.m calculates the standard error of the mean ignoring NaNs.

User Review for Normalize N-D Vectors in Single Matrix or N Component Matrices
- required fields
     

Please enter text on the image