How to express ZOH transfer function in Matlab?

I am tring to express ZOH transfer funcation in S domain and bode plot it. The transfer functino is shown below:
(1-exp(-s*Ts))/s
The question is how to express it, is there any function related to it?
Thanks.

6 Comments

The link do not contain your block
Your question is not clear
I just replace the image by symbolic expression. Please take a look.
May I know what should I do to make it clear?
I don't know how to upload image and the tf is shown by symbolic expression now.

Sign in to comment.

 Accepted Answer

s=tf('s');
Ts=0.1 %replace with desired value
sys=(1-exp(-s*Ts))/s
bode(sys)

3 Comments

Siyu He
Siyu He on 20 Aug 2013
Edited: Siyu He on 20 Aug 2013
Thanks for your reply. I tried this method and error information shown below,
??? Error using ==> InputOutputModel.plus at 61 System interconnection gives rise to internal delays and can only be represented in state space. Convert at least one of the models to state space using the "ss" command.
Error in ==> InputOutputModel.InputOutputModel>InputOutputModel.minus at 324 M = M1 + (-M2);
P.S. I am using Matlab R2010b version.
In 10b:
s=tf('s');
Ts=0.1
sys1=exp(-Ts*s)/s
sys2=1/s
sys=ss(sys2)-ss(sys1);
bode(sys)
Thanks for your help, it works.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!