bugGNU Octave - Bugs: bug #43346, the SWITCH example in Edition 3...

 
 

bug #43346: the SWITCH example in Edition 3 for Octave version 3.6.4 page 164

Submitted by:  None
Submitted on:  Thu 02 Oct 2014 09:29:13 AM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: InvalidAssigned to: None
Originator Name: Naftali Kidron PhDOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.4
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 02 Oct 2014 11:06:24 AM UTC, comment #1:

Thanks for your bug report. This does not appear to be a bug to me. Note that

and

do not produce the same thing. The first is a cell array of the scalars 6, 7, and 8. The second is a cell array containing one element, which is a row vector of [6, 7, 8].

To convert a range into a cell array, you can use

This expression does work as a case in a switch block.

Mike Miller <mtmiller>
Project Administrator
Thu 02 Oct 2014 09:29:13 AM UTC, original submission:

replacing cell array {6, 7} by {6: 7} or any other range, is not understood.

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 mtmiller (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 02 Oct 2014 11:06:24 AM UTCmtmillerStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1