octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49521] an example is uncorrect


From: anonymous
Subject: [Octave-bug-tracker] [bug #49521] an example is uncorrect
Date: Thu, 3 Nov 2016 09:34:01 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0

URL:
  <http://savannah.gnu.org/bugs/?49521>

                 Summary: an example is uncorrect
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 03 Nov 2016 09:33:58 AM UTC
                Category: Documentation
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Documentation
                  Status: None
             Assigned to: None
         Originator Name: Gábor Peintler
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
        Operating System: Any

    _______________________________________________________

Details:

In my opinion, there is a tiny error in the octave.pdf manual.
The cell array variable c is defined as

c = {"1", "2", "3"; "x", "y", "z"; "4", "5", "6"};

at the near bottom of page 116.

At the top of page 117, the command

c(:, [1, 3]) = {0}

resulted the cell array of

{
[1,1] = 0
[2,1] = 0
[3,1] = 0
[1,2] = 2
[2,2] = 10
[3,2] = 20
[1,3] = 0
[2,3] = 0
[3,3] = 0
}

but the correct answer from octave is

{
  [1,1] = 0
  [2,1] = 0
  [3,1] = 0
  [1,2] = 2
  [2,2] = y
  [3,2] = 5
  [1,3] = 0
  [2,3] = 0
  [3,3] = 0
}




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49521>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]