Home > By category > Scripts >Development Tools > Normalize N-D Vectors in Single Matrix or N Component Matrices

# Normalize N-D Vectors in Single Matrix or N Component Matrices

• Views:
• Rating:

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

Free download from Shareware Connection - Normalizes N-D vectors provided either in one matrix, or as multiple component matrices.

Publisher: Ioannis Filippidis | License: Shareware
Version: 1.0 | Size: 10 KB | Platform: Matlab, Scripts
Released Date: 27-06-2013 | Rating: 0 | Title: Normalize N-D Vectors in Single Matrix or N Component Matrices

Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com

More downloads from Normalize N-D Vectors in Single Matrix or N Component Matrices publisher Ioannis Filippidis:

Cell Extrema - Find the minimum and maximum of 2D cell matrix, which may contain nested cell or numeric arrays.

plot 2/3D point(s) - PLOTMD(AX, X, VARARGIN) plots the points in matrix

plot 2/3D vector(s) - Plots 2D or 3D vectors at points, both provided as matrices of column vectors.

Normalize N-D Vectors in Single Matrix or N Component Matrices keywords:
Normalize N-D Vectors in Single Matrix or N Component Matrices related downloads:

N.D.K. Tha Butcher - The brand new official N.D.K. Tha Butcher Mobile App is now available! Stream our music, see pictures, check out our bio, and share it all with your friends. Stay connected for the latest updates from N.D.K. Tha Butcher on your mobile device with ...

Multiple matrix multiplications, with array expansion enabled - MULTIPROD is a powerful, quick and memory efficient generalization for N-D arrays of the MATLAB matrix multiplication operator (*)

Euklid (Inverse) Distance Weight Matrix - function W = euklid_W(ws,d,n) function W = euklid_invW(ws,d,n) PURPOSE: create an (inverse) euklidean distance spatial weight matrix (n x m 'moving-window' style matrix with distance to center cell weighted.

N-dimensional sparse arrays - The class ndSparse defined in this submission will give a lot of the functionality of N-dimensional sparse arrays for N possibly greater than 2

Paley Type I Hadamard matrices - order of the Hadamard matrix to be computed (integer)

Shareware Connection periodically updates pricing and software information of 'Normalize N-D Vectors in Single Matrix or N Component Matrices' from company source 'Ioannis Filippidis' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'Normalize N-D Vectors in Single Matrix or N Component Matrices' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Normalize N-D Vectors in Single Matrix or N Component Matrices.

New Reviews

SnapCrab - Nearly every PC users need to take screenshots from time to time, whether it is for personal or professional needs. While using the basic Windows screenshot capture method is available, it is not adequate for everyone. When you want to capture ...

Trend Micro HouseCall - With time, PC users find it increasingly difficult to keep their systems free of malware and rogue apps, despite using latest and feature packed security software. This is mostly owing to the evolving nature of malware and newer types of ...

LogmeOnce Password Manager Ultimate - Irrespective of your computer and web usage needs it is quite imperative that you will deal with passwords, in fact plenty of them. Both home and corporate network users need to log in to several web services and sites and for each of them, user ...

WWPass BlackBook and Personal Secure Storage - With time, PC security is turning out to be more complex and tedious matter. You can no longer rely on security apps but ensuring privacy of data is also important. While many password manager apps offer secure data encryption options, losing the ...

Eset Cyber Security Pro - There was a time Mac users were simply oblivious to the existence of malware and viruses, partially encouraged by Apple’s claim that Mac’s do not fall prey to malicious code. In last few years, that perception has been shattered owing ...

Avira Ultimate Protection Suite - With time the importance of PC security has gone up by leaps and bounds. Earlier, people used to rely on standalone antivirus software. However, security conscious users prefer having a more robust form of protection. They opt for Internet ...

Apple Aperture - It is quite true that Macintosh users generally get fewer tools to pick from than Windows users but they have some solid and impressive software to work with. One such example is Apple’s professional image editing and organizing tool, ...

Magic Uneraser - Data loss can occur owing to a number of reasons, both within and beyond your control. Whether you have lost data owing to careless of another user or a hard drive failure has occurred, it is important to retrieve the data at any cost. There are ...

TunnelBear - While internet access has become cheaper and faster over the years, certain downsides of the World Wide Web still looms and affects users. Even if you have the resources and monetary capacity to afford a blazing fast and unlimited internet ...

TrustPort Tools - Nowadays, PC users need to deal with several types of third party apps to ensure security and privacy of data. From encrypting files to getting rid of sensitive data, the needs can be numerous. There are many such tools that can be used in this ...

.NET Mail Expert components

The Ultimate Mail Expert
includes all the mailing
components you need such as
IMAP, POP3, SMTP, etc.

arkavis sidebar plugin

arkavis.de provides a way for
easily hundreds of games in
integrate and apply new games.

This MATLAB mex function
fetches the name of the
current user.

Sentimeter

This plugin allows users to
express sentiments (a la
getsatisfaction.com, e.g.
happy, neutral, outraged etc.)

iScribble: A java based GUI
for Matlab

The GUI is a powerful yet
simple tool which can be
easily integrated with Matlab.

Ellipsoid Fitting

The code implemented a special
case of the ellipsoid fitting
technique proposed in the
paper Least Squares Ellipsoid
...

0-1 Knapsack

work

ffndgrid Fast 'n' Furious
N-D data gridding

FFNDGRID grids unevenly spaced
data.

Flood Fill

The flood fill will alter all
values of 0 to one flood
filling from a start point
(xc,yc)

Matlab interface to OmniTRANS

Time & Rate Unit Conversion
Function

Designed to supplement the
conversion functions found in
the aerospace toolbox
(aerospace toolbox not
required), CONVTIME ...

Soft Handover Probability
as a funiction of the Soft
Handover Threshold

This simple m-file plots the
Soft Handover probability as a
function of the Soft Handover
Threshold value used in the
...