# HG changeset patch # User carandraug # Date 1331229259 0 # Node ID 33ed042002f9de869fe17f2b71418ece1ed06519 # Parent 4fa3d0a20d75a7a68d9d2a0e9effe7c2afb5b668 normc: use print_usage diff -r 4fa3d0a20d75 -r 33ed042002f9 main/miscellaneous/inst/normc.m --- a/main/miscellaneous/inst/normc.m Thu Mar 08 17:52:40 2012 +0000 +++ b/main/miscellaneous/inst/normc.m Thu Mar 08 17:54:19 2012 +0000 @@ -1,20 +1,20 @@ -## Copyright (C) 2011 Thomas Weber +## Copyright (C) 2011 Thomas Weber ## -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 3 of the License, or -## (at your option) any later version. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. ## -## This program is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. ## -## You should have received a copy of the GNU General Public License -## along with this program; If not, see . +## You should have received a copy of the GNU General Public License along with +## this program; if not, see . ## -*- texinfo -*- -## @deftypefn {Function File} {@var{x} = } normc (@var{M}) +## @deftypefn {Function File} {@var{x} =} normc (@var{M}) ## Normalize the columns of a matrix to a length of 1 and return the matrix. ## ## @example @@ -32,9 +32,9 @@ function X = normc(M) if (1 != nargin) - usage("normc(M)"); + print_usage; endif - + X = normr(M.').'; endfunction