help-octave
[Top][All Lists]
Advanced

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

Re: test this in matlab for my please


From: Nicholas Jankowski
Subject: Re: test this in matlab for my please
Date: Fri, 11 Mar 2016 12:37:42 -0500

2016-03-11 12:28 GMT-05:00 Doug Stewart <address@hidden>:
Would someone kindly run this in matlab and post the results for me.
Thanks


s=tf('s')
sys=1/s
c2d(sys,.1,'zoh')
c2d(sys,.1,'matched')
c2d(sys,.1,'bilin')

sys=1/(s^2)
c2d(sys,.1,'zoh')
c2d(sys,.1,'matched')
c2d(sys,.1,'bilin')

sys=1/(s*(s+1))
c2d(sys,.1,'zoh')
c2d(sys,.1,'matched')
c2d(sys,.1,'bilin')

--
DAS



output below, v 2015b

s =
 
  s
 
Continuous-time transfer function.


sys =
 
  1
  -
  s
 
Continuous-time transfer function.


ans =
 
   0.1
  -----
  z - 1
 
Sample time: 0.1 seconds
Discrete-time transfer function.


ans =
 
  0.1001
  ------
  z - 1
 
Sample time: 0.1 seconds
Discrete-time transfer function.

Error using DynamicSystem/c2d (line 76)
The discretization method of the "c2d" command must be one of the following
strings: "zoh", "foh", "impulse", "tustin", or "matched".

reply via email to

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