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

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

[Octave-bug-tracker] [bug #41268] heaviside function does not work with


From: anonymous
Subject: [Octave-bug-tracker] [bug #41268] heaviside function does not work with sumbolic variables
Date: Sat, 18 Jan 2014 08:08:53 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130626 Firefox/17.0 Iceweasel/17.0.7

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

                 Summary: heaviside function does not work with sumbolic
variables
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sat 18 Jan 2014 08:08:52 AM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Borys Niekurzak
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Dear Developers :)

I hope I do not duplicate the bug.

The following code from my university classes, which worked on MATLAB 13,
produces an error on octave:


t=sym('t')
w=sym('w')

a=2;
A=2;
t0=0;

f=A.*heaviside(t-(t0-a/2)) - A.*heaviside(t-(t0+a/2));info
F=fourier(f,t,w);


It gives the following error:


error: cast: type name `sym' is not a built-in type
error: called from:
error:   /usr/share/octave/3.6.2/m/miscellaneous/cast.m at line 36, column 9
error:   /usr/share/octave/packages/specfun-1.1.0/heaviside.m at line 39,
column 5
error:   /home/borys/politechnika/3 semestr/sygnaƂy/4/prostokat.m at line 12,
column 2


Line 12 is where the heaviside function is called.

Even the simplest commend, which I suppose would work on matlab (I am not a
MATLAB expert yet, I just started learning, so I am not 100% sure) for
example:

x=sym('x')
heaviside(x)


gives the same error.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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