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

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

[Octave-bug-tracker] [bug #36221] using ~ as optional output for unique


From: anonymous
Subject: [Octave-bug-tracker] [bug #36221] using ~ as optional output for unique causes error in ismember
Date: Tue, 17 Apr 2012 07:52:37 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)

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

                 Summary: using ~ as optional output for unique causes error
in ismember
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue Apr 17 07:52:37 2012
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Yoerik de Voogd
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

When using ~ as the optional 3rd output argument in the unique function the
ismember function using the optional 'rows' argument causes the error:


error: ismember: A(I): index out of bounds; value 1 out of bound 0
error: called from:
error:  
C:\Octave\Octave3.6.1_gcc4.6.2\Octave3.6.1_gcc4.6.2\share\octave\3.6.1\m\set\ismember.m
at line 124, column 10
error:   H:\code\bugTesting.m at line 6, column 6


The error can be reproduced using the code


clear all;
ism1 = ismember([1 2],[1 2;3 4;5 6],'rows')
[a,b,~] = unique({'1','2','3','2','1','6','4'});
ism2 = ismember([1 2],[1 2;3 4;5 6],'rows')





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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