c2d not working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

c2d not working

Dikko Abubakar
I get the message that c2d is not implemented though I have the control pkg installed and loaded. Please help.

Dikko Abubakar

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: c2d not working

Torsten-3
On 14.01.2018 01:08, Dikko Abubakar wrote:
> I get the message that c2d is not implemented though I have the control
> pkg installed and loaded. Please help.
>
> Dikko Abubakar
>

Are other function (e.g., tf) available from the control package?

Torsten

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: c2d not working

PhilipNienhuis
Torsten-3 wrote
> On 14.01.2018 01:08, Dikko Abubakar wrote:
>> I get the message that c2d is not implemented though I have the control
>> pkg installed and loaded. Please help.
>>
>> Dikko Abubakar
>>
>
> Are other function (e.g., tf) available from the control package?

I can confirm the OP's report with the dev version on Windows (mxe-octave,
tip from Jan 10):

>> pkg load control
>> which c2d
>> c2d
warning: the 'c2d' function belongs to the control package from Octave Forge
but
has not yet been implemented.

Please read <http://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
error: 'c2d' undefined near line 1 column 1
>> path

Octave's search path contains the following directories:

.
C:\Programs\Octave\OCTAVE~1.0__\share\octave\packages\control-3.0.0
C:\Programs\Octave\OCTAVE~1.0__\lib\octave\packages\control-3.0.0\x86_64-w64-mingw32-api-v51+
:

However, tf sees to work fine:

>> tf

Static gain.
>> help tf
'tf' is a function from the file
C:\Programs\Octave\OCTAVE~1.0__\share\octave\packages\control-
3.0.0\@tf\tf.m
:

Note that I never use(d) the control pkg and just half an hour ago I wiped
old installations, so I can't tell when c2d did work.

philip



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: c2d not working

Doug Stewart-4


On Sun, Jan 14, 2018 at 7:21 AM, PhilipNienhuis <[hidden email]> wrote:
Torsten-3 wrote
> On 14.01.2018 01:08, Dikko Abubakar wrote:
>> I get the message that c2d is not implemented though I have the control
>> pkg installed and loaded. Please help.
>>
>> Dikko Abubakar
>>
>
> Are other function (e.g., tf) available from the control package?

I can confirm the OP's report with the dev version on Windows (mxe-octave,
tip from Jan 10):

>> pkg load control
>> which c2d
>> c2d
warning: the 'c2d' function belongs to the control package from Octave Forge
but
has not yet been implemented.

Please read <http://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
error: 'c2d' undefined near line 1 column 1
>> path

Octave's search path contains the following directories:

.
C:\Programs\Octave\OCTAVE~1.0__\share\octave\packages\control-3.0.0
C:\Programs\Octave\OCTAVE~1.0__\lib\octave\packages\control-3.0.0\x86_64-w64-mingw32-api-v51+
:

However, tf sees to work fine:

>> tf

Static gain.
>> help tf
'tf' is a function from the file
C:\Programs\Octave\OCTAVE~1.0__\share\octave\packages\control-
3.0.0\@tf\tf.m
:

Note that I never use(d) the control pkg and just half an hour ago I wiped
old installations, so I can't tell when c2d did work.

philip



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

I am quite sure that control 3.0.0 does not work with the dev branch.
We need a new release to go with the dev. branch. The fixes are there already.


--
DASCertificate for 206392


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: c2d not working

PhilipNienhuis
Doug Stewart wrote:

>
>
> On Sun, Jan 14, 2018 at 7:21 AM, PhilipNienhuis <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Torsten-3 wrote
>     > On 14.01.2018 01:08, Dikko Abubakar wrote:
>     >> I get the message that c2d is not implemented though I have the control
>     >> pkg installed and loaded. Please help.
>     >>
>     >> Dikko Abubakar
>     >>
>     >
>     > Are other function (e.g., tf) available from the control package?
>
>     I can confirm the OP's report with the dev version on Windows
>     (mxe-octave,
>     tip from Jan 10):
>
>     >> pkg load control
>     >> which c2d
>     >> c2d
>     warning: the 'c2d' function belongs to the control package from
>     Octave Forge
>     but
>     has not yet been implemented.
>
>     Please read <http://www.octave.org/missing.html
>     <http://www.octave.org/missing.html>> to learn how you can
>     contribute missing functionality.
>     error: 'c2d' undefined near line 1 column 1
>     >> path
>
>     Octave's search path contains the following directories:
>
>     .
>     C:\Programs\Octave\OCTAVE~1.0__\share\octave\packages\control-3.0.0
>     C:\Programs\Octave\OCTAVE~1.0__\lib\octave\packages\control-3.0.0\x86_64-w64-mingw32-api-v51+
>     :
>
>     However, tf sees to work fine:
>
>     >> tf
>
>     Static gain.
>     >> help tf
>     'tf' is a function from the file
>     C:\Programs\Octave\OCTAVE~1.0__\share\octave\packages\control-
>     3.0.0\@tf\tf.m
>     :
>
>     Note that I never use(d) the control pkg and just half an hour ago I
>     wiped
>     old installations, so I can't tell when c2d did work.
>
>     philip
>
>
>
>     --
>     Sent from:
>     http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
>     <http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html>
>
>     _______________________________________________
>     Help-octave mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://lists.gnu.org/mailman/listinfo/help-octave
>     <https://lists.gnu.org/mailman/listinfo/help-octave>
>
>
> I am quite sure that control 3.0.0 does not work with the dev branch.
> We need a new release to go with the dev. branch. The fixes are there
> already.

Could be. I figured those fixes had been integrated in mxe-octave - that
is the binary fixes.
I see little difference with the setup of the ./control-3.0.0/@lti
subdir (where tf.m lives) compared to the control-3.0.0/@ft subdir where
c2d.m lives.
That is all m-files stuff so I suppose at least "help c2d" should work.

Philip

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: c2d not working

Doug Stewart-4
In reply to this post by Dikko Abubakar


On Sat, Jan 13, 2018 at 7:08 PM, Dikko Abubakar <[hidden email]> wrote:
I get the message that c2d is not implemented though I have the control pkg installed and loaded. Please help.

Dikko Abubakar

_
Can you give us more information.
What os?
What version of octave?
what version of control pkg.?


--
DAS


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: c2d not working

Thomas D. Dean-2
On 01/14/18 09:14, Doug Stewart wrote:

>
>
> On Sat, Jan 13, 2018 at 7:08 PM, Dikko Abubakar
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     I get the message that c2d is not implemented though I have the
>     control pkg installed and loaded. Please help.
>
>     Dikko Abubakar
>
>     _
>
> Can you give us more information.
> What os?
> What version of octave?
> what version of control pkg.?
>
>
> --
> DAS
>
> <https://linuxcounter.net/user/206392.html>
>
>
> _______________________________________________
> Help-octave mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/help-octave
>

octave:19> version
ans = 4.2.1
octave:20> help c2d
error: help: the 'c2d' function belongs to the control package from
Octave Forge but
has not yet been implemented.
octave:20> pkg list
Package Name        | Version | Installation directory
--------------------+---------+-----------------------
        complex_pkg  |   1.0.0 | /home/tomdean/octave/complex_pkg-1.0.0
            control *|   3.0.0 | /home/tomdean/octave/control-3.0.0

 > cd ~/octave
 > find . -iname \*c2d\*
./control-3.0.0/@frd/__c2d__.m
./control-3.0.0/@ss/__c2d__.m
./control-3.0.0/@lti/c2d.m
./control-3.0.0/@tf/__c2d__.m
 > uname -a
Linux Meerkat 4.13.9-041309-generic #201710211231 SMP Sat Oct 21
16:32:44 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: c2d not working

sshah
In reply to this post by Dikko Abubakar
I am on Mac OS 10.13.2, octave 4.2.1_9 installed using homebrew, control
3.0.0.  I see the same behavior with help c2d or c2d().

However, I get

c2d(ss(-1,1,1,0),.1,"zoh")

ans.a =
           x1
   x1  0.9048

ans.b =
            u1
   x1  0.09516

ans.c =
       x1
   y1   1

ans.d =
       u1
   y1   0

Sampling time: 0.1 s

So,it does work.




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: c2d not working

Thomas D. Dean-2
On Ubuntu 16.04, octave 4.2.1,

octave:10> version
ans = 4.2.1
octave:11> help c2d
error: help: the 'c2d' function belongs to the control package from
Octave Forge but
has not yet been implemented.

Please read <http://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
octave:11> c2d
warning: the 'c2d' function belongs to the control package from Octave
Forge but
has not yet been implemented.

Please read <http://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
error: 'c2d' undefined near line 1 column 1
octave:11> s=tf(1,[2,3])
Transfer function 's' from input 'u1' to output ...
          1
  y1:  -------
       2 s + 3
Continuous-time model.
octave:12> c2d(s,1e-6)
Transfer function 'ans' from input 'u1' to output ...
       5e-07
  y1:  -----
       z - 1
Sampling time: 1e-06 s
Discrete-time model.

Since my last post, I did a pkg upgrade with octave 4.3.0 and then
octave 4.2.1.  Help still fails, but, the function works.

Strange...

Tom Dean

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: c2d not working

Mike Miller-4
On Sun, Jan 14, 2018 at 20:20:51 -0800, Thomas D. Dean wrote:
> Since my last post, I did a pkg upgrade with octave 4.3.0 and then octave
> 4.2.1.  Help still fails, but, the function works.

    >> help @lti/c2d
    '@lti/c2d' is a function from the file …
   
     -- Function File: SYS = c2d (SYS, TSAM)
     -- Function File: SYS = c2d (SYS, TSAM, METHOD)
     -- Function File: SYS = c2d (SYS, TSAM, 'PREWARP', W0)
         Convert the continuous LTI model into its discrete-time equivalent.

--
mike

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: c2d not working

Dikko Abubakar
In reply to this post by Doug Stewart-4
The OS is Windows 10 Home Edition, Octave version 4.2..1 Control pkg 3.0.0

Dikko Abubakar

________________________________________
From: Doug Stewart [[hidden email]]
Sent: Sunday, January 14, 2018 6:14 PM
To: Dikko Abubakar
Cc: [hidden email]
Subject: Re: c2d not working

On Sat, Jan 13, 2018 at 7:08 PM, Dikko Abubakar <[hidden email]<mailto:[hidden email]>> wrote:
I get the message that c2d is not implemented though I have the control pkg installed and loaded. Please help.

Dikko Abubakar

_
Can you give us more information.
What os?
What version of octave?
what version of control pkg.?


--
DAS

<https://linuxcounter.net/user/206392.html>

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave