[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50641] Cannot divide the number of arguments
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #50641] Cannot divide the number of arguments in a set/matrix |
Date: |
Mon, 27 Mar 2017 13:18:25 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Update of bug #50641 (project octave):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
Octave is behaving correctly here. In Matrix Algebra there is no way to
divide a 1x1 matrix by a 2x3 matrix.
If you are trying to calculate the reciprocal of each individual number in the
array, then you want to use the './' syntax.
For example,
A=[1,2,3;4,5,6];
B = 1 ./ A
B =
1.00000 0.50000 0.33333
0.25000 0.20000 0.16667
I would suggest reading an introductory text on Matlab or Octave to become
familiar with the syntax. The manual for Octave is quite complete, and it is
free, if you want to start there. But there are also a lot of quick tutorials
on the Web.
Marking bug as invalid and closing report.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50641>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/