How do I choose the poles and zeros in order to calculate my TF from input & output data?
Hello :), I have a set of data exported from my simulator, which consists of Thrust getting in the system (T_in) and some Thrust output after some conversions (T_out) for two different types of propellers, HTU and DEP. I use iddata to package the output, input and sample data.
Then with that data I use tfest to estimate the continuous-time transfer function sys.
My problem is that I don’t know how to define the number of poles (np) and zeros (nz). Any suggestions?
Thanks in advance!
% Bode Diagram analysis
T_in_HTU = load("T_in_HTU.mat");
T_in_DEP = load("T_in_DEP.mat");
T_out_HTU = load("T_out_HTU.mat");
T_out_DEP = load("T_out_DEP.mat");
T_in_HTU = T_in_HTU.T_in_HTU;
T_in_DEP = T_in_DEP.T_in_DEP;
T_out_HTU = T_out_HTU.T_out_HTU;
T_out_DEP = T_out_DEP.T_out_DEP;
data_HTU = iddata(T_in_HTU,T_out_HTU,1/500);
data_DEP = iddata(T_in_DEP,T_out_DEP,1/500);
sys_HTU = tfest(data_HTU,np,nz,’Ts’,1/500);
sys_DEP = tfest(data_DEP,np,nz,’Ts’,1/500);
% Generate Bode plots for the identified transfer functions
figure;
bode(sys_HTU);
grid on;
title(‘Bode Diagram for HTU System’);
figure;
bode(sys_DEP);
grid on;
title(‘Bode Diagram for DEP System’);
figure;
bode(sys_HTU,sys_DEP);
grid on;
title(‘Bode Diagram for DEP System’);Hello :), I have a set of data exported from my simulator, which consists of Thrust getting in the system (T_in) and some Thrust output after some conversions (T_out) for two different types of propellers, HTU and DEP. I use iddata to package the output, input and sample data.
Then with that data I use tfest to estimate the continuous-time transfer function sys.
My problem is that I don’t know how to define the number of poles (np) and zeros (nz). Any suggestions?
Thanks in advance!
% Bode Diagram analysis
T_in_HTU = load("T_in_HTU.mat");
T_in_DEP = load("T_in_DEP.mat");
T_out_HTU = load("T_out_HTU.mat");
T_out_DEP = load("T_out_DEP.mat");
T_in_HTU = T_in_HTU.T_in_HTU;
T_in_DEP = T_in_DEP.T_in_DEP;
T_out_HTU = T_out_HTU.T_out_HTU;
T_out_DEP = T_out_DEP.T_out_DEP;
data_HTU = iddata(T_in_HTU,T_out_HTU,1/500);
data_DEP = iddata(T_in_DEP,T_out_DEP,1/500);
sys_HTU = tfest(data_HTU,np,nz,’Ts’,1/500);
sys_DEP = tfest(data_DEP,np,nz,’Ts’,1/500);
% Generate Bode plots for the identified transfer functions
figure;
bode(sys_HTU);
grid on;
title(‘Bode Diagram for HTU System’);
figure;
bode(sys_DEP);
grid on;
title(‘Bode Diagram for DEP System’);
figure;
bode(sys_HTU,sys_DEP);
grid on;
title(‘Bode Diagram for DEP System’); Hello :), I have a set of data exported from my simulator, which consists of Thrust getting in the system (T_in) and some Thrust output after some conversions (T_out) for two different types of propellers, HTU and DEP. I use iddata to package the output, input and sample data.
Then with that data I use tfest to estimate the continuous-time transfer function sys.
My problem is that I don’t know how to define the number of poles (np) and zeros (nz). Any suggestions?
Thanks in advance!
% Bode Diagram analysis
T_in_HTU = load("T_in_HTU.mat");
T_in_DEP = load("T_in_DEP.mat");
T_out_HTU = load("T_out_HTU.mat");
T_out_DEP = load("T_out_DEP.mat");
T_in_HTU = T_in_HTU.T_in_HTU;
T_in_DEP = T_in_DEP.T_in_DEP;
T_out_HTU = T_out_HTU.T_out_HTU;
T_out_DEP = T_out_DEP.T_out_DEP;
data_HTU = iddata(T_in_HTU,T_out_HTU,1/500);
data_DEP = iddata(T_in_DEP,T_out_DEP,1/500);
sys_HTU = tfest(data_HTU,np,nz,’Ts’,1/500);
sys_DEP = tfest(data_DEP,np,nz,’Ts’,1/500);
% Generate Bode plots for the identified transfer functions
figure;
bode(sys_HTU);
grid on;
title(‘Bode Diagram for HTU System’);
figure;
bode(sys_DEP);
grid on;
title(‘Bode Diagram for DEP System’);
figure;
bode(sys_HTU,sys_DEP);
grid on;
title(‘Bode Diagram for DEP System’); tfest, transfer function, zeros and poles MATLAB Answers — New Questions









