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

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

[Octave-bug-tracker] [bug #38164] inline doesn't understand x(:) (and ot


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #38164] inline doesn't understand x(:) (and other indexing of x)
Date: Thu, 24 Jan 2013 17:31:51 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110109 Earthmoth/3.6.13

Update of bug #38164 (project octave):

                  Status:                    None => Confirmed              
                 Summary: feval doesn't understand x(:)  (and other indexing
of x) => inline doesn't understand x(:)  (and other indexing of x)

    _______________________________________________________

Follow-up Comment #1:

feval is unrelated. The problem is inline. It doesn't recognise variables if
you index into them.

You can work around this by explicitly using an anonymous function instead of
making inline attempt to parse the string as a function:


feval(@(x) sum(x(:)), [1 2; 3 4])


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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