bugGNU Octave - Bugs: bug #49521, an example is uncorrect

 
 

bug #49521: an example is uncorrect

Submitted by:  None
Submitted on:  Thu 03 Nov 2016 09:33:58 AM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Documentation
Status: FixedAssigned to: None
Originator Name: Gábor PeintlerOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.3
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 03 Nov 2016 04:25:30 PM UTC, comment #1:

Thanks for pointing this out. I fixed it on the stable branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/59340e2bc976). Closing report.

Rik <rik5>
Project Administrator
Thu 03 Nov 2016 09:33:58 AM UTC, original submission:

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
}

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 03 Nov 2016 04:25:30 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1