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 commentaires

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

Connectez-vous pour commenter.

 Réponse acceptée

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

3 commentaires

Siyu He
Siyu He le 20 Août 2013
Modifié(e) : Siyu He le 20 Août 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)
Siyu He
Siyu He le 23 Août 2013
Thanks for your help, it works.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by