[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53548] area : Octave giving error while MATLA
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #53548] area : Octave giving error while MATLAB giving warning in complex input. |
Date: |
Mon, 16 Apr 2018 17:04:19 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Update of bug #53548 (project octave):
Status: None => Wont Fix
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
I believe it is better to leave this as an error. Octave, in general, tries
to validate its inputs more carefully than Matlab.
In this case, it's not clear what an area plot of a sequence of complex
numbers would look like. It doesn't make much sense, and it probably means
the programmer has made an error and it should be reported that way. If the
programmer really wants to see an area plot of just the real part of the data
then they can easily do so by adding a call to real() inside the call to area
like so
area (real (a))
This is better than Matlab's default assumption that the real data is more
valuable than the complex data and should be the part that is plotted. For
example, another perfectly good choice would have been to plot the magnitude
of the complex number, rather than just the real part.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53548>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/