[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
c2d is a Stub that only Produces Error Messages
From: |
Thomas D. Dean |
Subject: |
c2d is a Stub that only Produces Error Messages |
Date: |
Mon, 21 Feb 2011 20:59:21 -0800 |
Octave 3.4.0, control 2.0.0
>From the Converting from S to Z domain thread,
octave:1> num = [1 0];den = [1 0 4];
octave:2> sys = tf(num, den,1);sysz=c2d(sys,1);sysout(sysz,'tf')
error: tf: c2d: not implemented yet
error: called from:
error: /home/tomdean/octave/control-2.0.0/@tf/__c2d__.m at line 31,
column 7
error: /home/tomdean/octave/control-2.0.0/@lti/c2d.m at line 46,
column 7
Looks like __c2d__ is a stub that only displays error messages, either
"not implemented" or "invalid method".
# cat /home/tomdean/octave/control-2.0.0/@tf/__c2d__.m
...<snip>
function sys = __c2d__ (sys, tsam, method = "zoh")
[p, m] = size (sys);
switch (method)
case {"zoh", "std"}
error ("tf: c2d: not implemented yet");
otherwise
error ("tf: c2d: %s is an invalid method", method);
endswitch
endfunction
tomdean
- c2d is a Stub that only Produces Error Messages,
Thomas D. Dean <=
Re: c2d is a Stub that only Produces Error Messages, Thomas Weber, 2011/02/22