[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33050] syntax error in anonymous functions in
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #33050] syntax error in anonymous functions in arrays |
Date: |
Mon, 11 Apr 2011 23:16:19 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 |
URL:
<http://savannah.gnu.org/bugs/?33050>
Summary: syntax error in anonymous functions in arrays
Project: GNU Octave
Submitted by: None
Submitted on: Mon 11 Apr 2011 11:16:12 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Chie Ng
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.4
Operating System: Microsoft Windows
_______________________________________________________
Details:
Anonymous functions in cell array can not have spaces between the parameter
list and the function body.
CASE 1> z = @(w) sin(w)
z =
@(w) sin (w)
CASE 2> z = {@(w) sin(w), @(w) cos(w)}
parse error:
syntax error
>>> z = { @(w) sin(w), @(w) cos(w)}
^
CASE 3> z = {@(w)sin(w), @(w)cos(w)}
z =
{
[1,1] =
@(w) sin (w)
[1,2] =
@(w) cos (w)
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33050>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #33050] syntax error in anonymous functions in arrays,
anonymous <=