axisL2norm

Version 1.0.0.0 (320 Bytes) by Barun Singh
Normalize a tensor along a given dimension.
695 Downloads
Updated 5 Jul 2005

No License

Normalize an N-dimensional tensor along a given axis using the L2 (euclidean) norm.

A simple example where N=2 that illustrates what this means:

Input: [ 3 5 ]
[ 4 12]

Let's say we want to normalize along the 2nd dimension.

Normalization = [ 5 13 ]

Normalized Output = [ 3/5 5/13 ]
[ 4/5 12/13]

Cite As

Barun Singh (2026). axisL2norm (https://www.mathworks.com/matlabcentral/fileexchange/7958-axisl2norm), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Sparse Matrices in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0