[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35666] wrong matrix division when normalizing
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #35666] wrong matrix division when normalizing columns |
Date: |
Wed, 29 Feb 2012 11:48:48 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 |
URL:
<http://savannah.gnu.org/bugs/?35666>
Summary: wrong matrix division when normalizing columns
Project: GNU Octave
Submitted by: None
Submitted on: Wed 29 Feb 2012 11:48:47 AM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Documentation
Status: None
Assigned to: None
Originator Name: Marko Seric
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.3
Operating System: GNU/Linux
_______________________________________________________
Details:
In Chapter "21.4 Some Examples of Usage", this is the code to normalize the
columns of a matrix:
s = norm (X, "columns");
X = diag (s) \ X;
this produces an error with non-conformant operands:
X = [1,2,3; 4 5 6];
s = norm(X,"columns");
X = diag(s) \ X;
error: operator \: nonconformant arguments (op1 is 3x3, op2 is 2x3)
The correct way should be
X = X / diag(s)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35666>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35666] wrong matrix division when normalizing columns,
anonymous <=