octave-maintainers
[Top][All Lists]
Advanced

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

Re: run this in matlab for me


From: Bhrigu Kansra
Subject: Re: run this in matlab for me
Date: Fri, 12 Apr 2019 01:46:28 +0530

I ran above code in MATLAB 2019a
The output was ( I've attached the output in pdf format too)
       -----------------------------------------------------------

z = tf('z',1)
z'          
tf(ss(z)')  

q=z +1
q'
tf(ss(q)')

q=z^3-2*z^2+3*z+7
q'
tf(ss(q)')

-----------------------------------------------------------


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


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


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


q =
 
  z + 1
 
Sample time: 1 seconds
Discrete-time transfer function.


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


ans =
 
  z^2 + z + 2.892e-17
  -------------------
          z^2
 
Sample time: 1 seconds
Discrete-time transfer function.


q =
 
  z^3 - 2 z^2 + 3 z + 7
 
Sample time: 1 seconds
Discrete-time transfer function.


ans =
 
  7 z^3 + 3 z^2 - 2 z + 1
  -----------------------
            z^3
 
Sample time: 1 seconds
Discrete-time transfer function.


ans =
 
  7 z^4 + 3 z^3 - 2 z^2 + z + 2.425e-17
  -------------------------------------
                   z^4
 
Sample time: 1 seconds
Discrete-time transfer function.
          -----------------------------------------------------------
Best Regards,
Bhrigu Kansra

>> 

On Thu, Apr 11, 2019 at 11:10 PM Doug Stewart <address@hidden> wrote:

could someone run this in matlab and show me the answers, please.

z = tf('z',1)
z'          
tf(ss(z)')  

q=z +1
q'
tf(ss(q)')

q=z^3-2*z^2+3*z+7
q'
tf(ss(q)')


Thanks in advance.
--
DASCertificate for 206392

Attachment: test.pdf
Description: Adobe PDF document


reply via email to

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