[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58093] Multiplication of Vector Functions
From: |
Kai Torben Ohlhus |
Subject: |
[Octave-bug-tracker] [bug #58093] Multiplication of Vector Functions |
Date: |
Wed, 1 Apr 2020 00:05:29 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36 |
Update of bug #58093 (project octave):
Severity: 3 - Normal => 2 - Minor
Priority: 5 - Normal => 3 - Low
Item Group: Matlab Compatibility => Unexpected Error
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
If you type in the correct Matlab code in Octave using ".*", both Octave and
Matlab deliver the same result. You
The correct code using element-wise operations of the screenshots is:
x = 0:0.1:0.5;
y = 3*(1-x).^2.*exp(-x.^2)
If you want to compute a dot product, following the rules of linear-algebra
and vector multiplication, use either of
x = 0:0.1:0.5;
y1 = 3*(1-x).^2;
y2 = exp(-x.^2);
y = dot (y1, y2)
y = sum (y1 .* y2)
y = y1 * y2'
in Octave or Matlab.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58093>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #58093] Multiplication of Vector Functions,
Kai Torben Ohlhus <=