Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

How to express ZOH transfer function in Matlab?

Asked by Siyu He on 16 Aug 2013

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

Siyu He on 16 Aug 2013

May I know what should I do to make it clear?

Azzi Abdelmalek on 16 Aug 2013

Which image?

Siyu He on 16 Aug 2013

I don't know how to upload image and the tf is shown by symbolic expression now.

Siyu He

Products

No products are associated with this question.

1 Answer

Answer by Arkadiy Turevskiy on 20 Aug 2013
Accepted answer
s=tf('s');
Ts=0.1 %replace with desired value
sys=(1-exp(-s*Ts))/s
bode(sys)

3 Comments

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.

Arkadiy Turevskiy on 21 Aug 2013

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 on 23 Aug 2013

Thanks for your help, it works.

Arkadiy Turevskiy

Contact us