Attempting to take the z transform of a continuous transform function
5 views (last 30 days)
Show older comments
I am fairly new to matlab and simulink, having been able to get away by not using it so far. However at this stage I need to use it to derive the discrete-time system of the function,
where I have a basic understand on needing to using code simular to this
clear all
clc
%% model the system
G1 = tf('s')
(22.5,[4*1 4*0.9 4*9]);
%% compute z trasnform
Ts = 0.1;
G_z = c2d(G1,Ts,'foh');
How I am unsure on how to implement the exp?
Any assistance will be greatly appreciated.
1 Comment
Star Strider
on 16 Apr 2023
This seems to be a homework problem. See also: How do you add a multiplication in the numerator of a transfer function.
Answers (1)
Dyuman Joshi
on 16 Apr 2023
Edited: Dyuman Joshi
on 16 Apr 2023
tau = 1;
sys = tf(5,[1 5],'InputDelay',tau)
Alternate way
s = tf('s');
G = exp(-tau*s)/(s+5)
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!