[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #32591] matrix type confusion in cellfun
From: |
Thorsten Meyer |
Subject: |
[Octave-bug-tracker] [bug #32591] matrix type confusion in cellfun |
Date: |
Thu, 24 Feb 2011 20:36:02 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20110109 Iceweasel/3.6.13 (like Firefox/3.6.13) |
URL:
<http://savannah.gnu.org/bugs/?32591>
Summary: matrix type confusion in cellfun
Project: GNU Octave
Submitted by: tmeyier
Submitted on: Thu 24 Feb 2011 08:36:01 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Thorsten Meyer
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Hi,
I found the following bug in cellfun:
y=[1,2,3;4,5,6;7,8,9];
cellfun(@(x) y(x,1), {1,2,3}, "uniformoutput", false)
gives the error message:
"error: can't perform indexing operations for matrix type"
Strangely, these two lines work nicely:
cellfun(@(x) y(x(1),1), {1,2,3}, "uniformoutput", false)
cellfun(@(x) y(x*1,1), {1,2,3}, "uniformoutput", false)
Also, these two lines give the same result (3 cell rows of "scalar"):
cellfun(@(x) typeinfo(x), {1,2,3}, "uniformoutput", false)
cellfun(@(x) typeinfo(1*x), {1,2,3}, "uniformoutput", false)
The bug must have been introduced sometime between july 2010 and october 2010
(based on old development builds I still happen to have around).
regards
Thorsten
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32591>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #32591] matrix type confusion in cellfun,
Thorsten Meyer <=