Fri 15 Sep 2017 08:56:03 PM UTC, comment #6:
I made a few tweaks to the documentation on top of the ones from Pantxo and checked in the cset here http://hg.savannah.gnu.org/hgweb/octave/rev/9c198d1c84cd.
Marking as fixed. Closing report.
|
Thu 14 Sep 2017 01:41:18 PM UTC, comment #5:
@Markus: thanks for testing (and fixing the test :-))
@Rik:
>> From the results in comment #3, it seems Octave is Matlab compatible
No, Octave currently always return all warnings, not only those that are being changed, except when "query" is used.
I attached a second take of the patch, with the above fixed, associated BIST, and the "on", "off" ... states back in the header.
(file #41802)
|
Wed 13 Sep 2017 11:21:52 PM UTC, comment #4:
From the results in comment #3, it seems Octave is Matlab compatible.
In terms of updating the documentation, I would prefer to see the explicit forms,
rather than just
with an explanation of state deeper in the documentation. Most people reading the documentation are trying to figure out how to use the function with the minimum amount of research necessary. If you provide the standard calling forms in the function summary it is often unnecessary to read any further which is quite helpful.
|
Wed 13 Sep 2017 04:15:58 PM UTC, comment #3:
Below the results in Matlab R2016a:
"loglog (0:10)" does not issue a warning in Matlab, "loglog (-1:10)" does. Thus, I used that in the test.
|
Wed 13 Sep 2017 03:37:58 PM UTC, comment #2:
I tried to rewrite the documentation (see attached patch) but then found that Octave behaved strangely, or at least not as ML says it behaves in the documentation, with regard to output warnstruct.
So I have to requests:
- Can someone take a look at the modified doc and tell me if it is clearer or worse ?
- Can someone run the following tests in Matlab to determine how Octave should strive to behave?
(file #41794)
|
Wed 13 Sep 2017 01:12:01 PM UTC, comment #1:
The old title was very misleading, I hope this one is better suited.
To my knowledge, the old warning state gets returned as a struct. If that was all the truth, the documentation can easily be fixed.
|
Tue 12 Sep 2017 08:59:05 AM UTC, original submission:
help warning yields
which means that querying does not yield a return value.
This is not true, which is illustrated by the following.
|