[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38164] feval doesn't understand x(:) (and oth
From: |
Mikhail Kostousov |
Subject: |
[Octave-bug-tracker] [bug #38164] feval doesn't understand x(:) (and other indexing of x) |
Date: |
Thu, 24 Jan 2013 17:21:55 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.52 Safari/537.17 |
URL:
<http://savannah.gnu.org/bugs/?38164>
Summary: feval doesn't understand x(:) (and other indexing
of x)
Project: GNU Octave
Submitted by: mikhako
Submitted on: Thu 24 Jan 2013 05:21:54 PM GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.2
Operating System: Microsoft Windows
_______________________________________________________
Details:
octave-3.6.2.exe:2> feval(inline('sum(x(:))'),[1,2;3,4])
error: `x' undefined near line 2 column 9
error: evaluating argument list element number 1
error: called from:
error: at line -1, column -1
If you change x(:) to x, feval will work. There is workaround to reshape
matrix x to an array (like reshape(x,prod(size(x)),1) ), but in case you need
to get something by index, it will not work.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38164>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38164] feval doesn't understand x(:) (and other indexing of x),
Mikhail Kostousov <=