[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56849] contour documentation misleading
From: |
Kai Torben Ohlhus |
Subject: |
[Octave-bug-tracker] [bug #56849] contour documentation misleading |
Date: |
Mon, 2 Sep 2019 23:20:31 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36 |
Update of bug #56849 (project octave):
Severity: 3 - Normal => 1 - Wish
Priority: 5 - Normal => 3 - Low
Status: None => Need Info
Summary: contour documentation wrong => contour documentation
misleading
_______________________________________________________
Follow-up Comment #1:
Please can you give the exact sequence of commands that lead to your described
error? I suspect you did not update all values properly when modifying "x".
The following works for me:
x = 0:2; # [0 1 2]
y = x; # [0 1 2]
z = x' * y
z =
0 0 0
0 1 2
0 2 4
contour (x, y, z, 2:3) # works
and
x = 0:0.5:2; # [0.00000 0.50000 1.00000 1.50000 2.00000]
y = x; # [0.00000 0.50000 1.00000 1.50000 2.00000]
z = x' * y
z =
0.00000 0.00000 0.00000 0.00000 0.00000
0.00000 0.25000 0.50000 0.75000 1.00000
0.00000 0.50000 1.00000 1.50000 2.00000
0.00000 0.75000 1.50000 2.25000 3.00000
0.00000 1.00000 2.00000 3.00000 4.00000
>> contour (x, y, z, 2:3) # works
I do not understand what makes your example less error prone than the previous
one.
x = 0:3;
y = x;
z = y' * x
z =
0 0 0 0
0 1 2 3
0 2 4 6
0 3 6 9
The matrix "z" to be plottet in your example will be square as well?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56849>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/