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: Doug Stewart
Subject: Re: test this in matlab for my please
Date: Thu, 30 Jun 2016 15:47:50 -0400



On Thu, Jun 30, 2016 at 3:18 PM, Nicholas Jankowski <address@hidden> wrote:
On Fri, Jun 24, 2016 at 11:59 AM, Doug Stewart <address@hidden> wrote:

Would someone try this on matlab and show me the plots, please.



 
s=tf('s')
T=.1

sys=1/(s*s*(s+1))
out2=c2d(sys,T,"impulse")
figure(1)
impulse(sys) %  should be the continuous time plot
figure(2)
impulse(out) %  should be the discrete  time plot 




>> s=tf('s')
T=.1

s =
 
  s
 
Continuous-time transfer function.


T =

    0.1000

>> sys=1/(s*s*(s+1))
out2=c2d(sys,T,'impulse')

sys =
 
      1
  ---------
  s^3 + s^2
 
Continuous-time transfer function.


out2 =
 
  0.0004837 z^2 + 0.0004679 z + 1.039e-18
  ---------------------------------------
     z^3 - 2.905 z^2 + 2.81 z - 0.9048
 
Sample time: 0.1 seconds
Discrete-time transfer function.

>> figure(1)
impulse(sys)
>> figure(2)
impulse(out)
Undefined function or variable 'out'.
 
Did you mean:
>> impulse(out2)


Thank you.

I have now got the same numbers as Matlab, and will soon be finished this project.




--
DASCertificate for 206392


reply via email to

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