Converting from continuous to discrete time tranfer function.

steven hallacy sahallacy at hotmail.com
Wed Jul 25 00:16:48 CEST 2012





Hello,
 
With Scilab, I know of two ways of converting from a continuous time transfer function (e.g. 1/s) to a discrete time transfer funtion:
 
1st way:
s=poly(0,'s')
ss2tf(cls2dls(tf2ss(syslin('c',1/s)),0.1))

 
This way requires a lot of typing.
 
2nd Way:
s=poly(0,'s');z=poly(0,'z');
sl=syslin('c',1/s);

sl2=horner(sl,(2/0.1)*(z-1)/(z+1))
 
This way requires me to remember the tustin approximation.
 
Does matlab have anything like Matlab's c2d function?

Stephen
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20120724/2f38c428/attachment.htm>


More information about the users mailing list