I fixed it. The step function worked on my server which runs Trusty. I
looked at the difference in files, and found that using a file from an
older version of octave-control worked.

Specifically, my server had the following

aidan@aidan-server:~$ dpkg -l | grep octave-control
ii  octave-control                      2.6.2-1build1                         
amd64        control functions for Octave from Octave-Forge

Comparing the /usr/share/octave/packages/control-2.6.2/@ss/__c2d__.m
file from my server (attached) with the
/usr/share/octave/packages/control-2.6.5/@ss/__c2d__.m file from my
machine

$ diff <files>
23c23
< ## Version: 0.5
---
> ## Version: 0.4
30,31c30,34
<       [sys.a, tmp] = __sl_mb05nd__ (sys.a, tsam, eps); 
<       sys.b = tmp * sys.b;         # G
---
>       [n, m] = size (sys.b);       # n: states, m: inputs
>       ## TODO: use SLICOT MB05OD
>       tmp = expm ([sys.a*tsam, sys.b*tsam; zeros(m, n+m)]);
>       sys.a = tmp (1:n, 1:n);      # F
>       sys.b = tmp (1:n, n+(1:m));  # G


Noticing that the older version did not have the offending line, I simply 
copied the old version over into my system

sudo cp ./__c2d__.m.old
/usr/share/octave/packages/control-2.6.5/@ss/__c2d__.m

And voila! It worked. Enjoy


** Attachment added: "File from octave-control 2.6.2-1build1"
   
https://bugs.launchpad.net/ubuntu/+source/octave-control/+bug/1410542/+attachment/4297978/+files/__c2d__.m.old

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1410542

Title:
  error: '__sl_mb05nd__' undefined near line 30 column 20

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/octave-control/+bug/1410542/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to