|Scales the columns of a matrix to have norm 1|
|Other toolboxes required||none|
|Function category||Helper functions|
|This is a helper function that only exists to aid other functions in QETLAB. If you are an end-user of QETLAB, you likely will never have a reason to use this function.|
normalize_cols is a function that scales each column of a matrix so that it has norm 1. That is, each column of the matrix is divided by its norm.
- Y = normalize_cols(X)
- X: A matrix to have its columns normalized.
Click on "expand" to the right to view the MATLAB source code for this function.
%% NORMALIZE_COLS Scales the columns of a matrix to have norm 1
% This function has one required argument:
% X: a matrix
% Y = normalize_cols(X) is the same as X, except each of its columns has
% been divided by its length.
% URL: http://www.qetlab.com/normalize_cols
% requires: nothing
% author: Nathaniel Johnston (email@example.com)
% package: QETLAB
% last updated: January 2, 2013
function Y = normalize_cols(X)