Fri 24 Feb 2017 03:23:10 PM UTC, original submission:
I've just installed the Octave 4.2.0 (under WIN 10). I looked through the octave.pdf, and I found on page 122 an example of the usage of a comma separated list. After I rewrote the example in the Octave console, I obtained
in documentation:
...
[out{4:6}] = find (in{[1, 2, 4]})
=> out =
{
[1,1] = 1
[2,1] = 9
[3,1] = 90
[4,1] = 1
[3,1] = 1
[4,1] = 10
}
on console:
[out{4:6}] = find (in{[1, 2, 4]})
out =
{
[1,1] = 1 1 1 1 1 1 1 1 1
[2,1] = 1 2 3 4 5 6 7 8 9
[3,1] = 10 20 30 40 50 60 70 80 90
[4,1] = 1 1 1 1 1 1 1 1 1
[5,1] = 1 2 3 4 5 6 7 8 9
[6,1] = 10 20 30 40 50 60 70 80 90
that seems quite a different result!
It's my first contact with the Octave, so I could be wrong.
Best regards
August
|