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

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

[Octave-bug-tracker] [bug #42050] fplot does not work with anomynous fun


From: anonymous
Subject: [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle
Date: Fri, 04 Apr 2014 15:50:27 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0

URL:
  <http://savannah.gnu.org/bugs/?42050>

                 Summary: fplot does not work with anomynous function handle
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 04 Apr 2014 03:50:26 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Peter Chang
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

>>> h=@(x)1/x
h =

@(x) 1 / x

>>> fplot(h,[1 10])
error: operator -: nonconformant arguments (op1 is 8x1, op2 is 1x8)
error: evaluating argument list element number 1
error: evaluating argument list element number 1
error: evaluating argument list element number 1
>>>error: evaluating argument list element number 1
error: called from:
error:   fplot at line 44, column 11
>>>

The same statements work on Matlab.

This works however, where sin(x) is a built-in function.
>>> h=@(x)sin(x)
h =

@(x) sin (x)

>>> fplot(h,[1 10])


Below is the version info. I am using the latest distribution on ubuntu.

GNU Octave Version 3.2.4
GNU Octave License: GNU General Public License
Operating System: Linux 3.11.0-18-generic #32~precise1-Ubuntu SMP Thu Feb 20
17
:52:10 UTC 2014 x86_64
----------------------------------------------------------------------
Package Name       | Version | Installation directory
-------------------+---------+-----------------------
          control *|  1.0.11 | /usr/share/octave/packages/3.2/control-1.0.11
               io *|  1.0.14 | /usr/share/octave/packages/3.2/io-1.0.14
   linear-algebra *|   2.1.0 | .../octave/packages/3.2/linear-algebra-2.1.0
    miscellaneous *|  1.0.11 | .../octave/packages/3.2/miscellaneous-1.0.11
missing-functions *|   1.0.2 |
.../octave/packages/3.2/missing-functions-1.0.2
           odepkg *|  0.6.12 | /usr/share/octave/packages/3.2/odepkg-0.6.12
            optim *|  1.0.17 | /usr/share/octave/packages/3.2/optim-1.0.17
           signal *|  1.0.11 | /usr/share/octave/packages/3.2/signal-1.0.11
          specfun *|   1.0.9 | /usr/share/octave/packages/3.2/specfun-1.0.9
           struct *|   1.0.9 | /usr/share/octave/packages/3.2/struct-1.0.9
         symbolic *|   1.0.9 | /usr/share/octave/packages/3.2/symbolic-1.0.9




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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