[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #29863] ismember outputs do not match input ar
From: |
Qianqian Fang |
Subject: |
[Octave-bug-tracker] [bug #29863] ismember outputs do not match input array dimension |
Date: |
Wed, 12 May 2010 04:17:46 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3 |
URL:
<http://savannah.gnu.org/bugs/?29863>
Summary: ismember outputs do not match input array dimension
Project: GNU Octave
Submitted by: fangq
Submitted on: Wed 12 May 2010 04:17:45 AM GMT
Category: Libraries
Severity: 3 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Qianqian Fang
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
ismember behaves differently from matlab. Based on the help description, the
output logic array has the same dimension as the input, however, in octave 3.2
as well as the hg version, the output is a vertical vector no matter what the
input dimension is.
Here is an example:
f=[1 2 3;3 4 5; 1 4 9];
[ii,jj]=ismember(f,f(1,:));
the outputs ii and jj are both 9x1 vectors. while, in matlab, both are 3x3
arrays (the same as f).
Possible fix:
maybe a line such as the following
a_idx = reshape(a_idx, size(a));
should be added around #98 and #123 in ismember.m
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29863>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #29863] ismember outputs do not match input array dimension,
Qianqian Fang <=