extract num and den from matrix transfer function

14 Ansichten (letzte 30 Tage)
msh jgtu
msh jgtu am 6 Aug. 2020
Bearbeitet: madhan ravi am 6 Aug. 2020
how to use numerator and denominator (N,D) of the output transfer function yv. where yv is 16 tranfer functions. i want to see N and D and use them in another process.
for i=1:4
for j=1:4
gvi(i,j)=tf(N(i,:),D(j,:))
yv(i,j)=series(yc,gvi(i,j))
end
end
[N,D]= tfdata(yv)%%%% this line doesn't show the content of N and D

Antworten (1)

madhan ravi
madhan ravi am 6 Aug. 2020
Bearbeitet: madhan ravi am 6 Aug. 2020
Use it inside the loops, preallocation is recommended for the variables.
  4 Kommentare
msh jgtu
msh jgtu am 6 Aug. 2020
error
Error using tf (line 287)
The values of the "num" and "den" properties must be row vectors or cell arrays of row vectors, where each
vector is nonempty and containing numeric data. Type "help tf.num" or "help tf.den" for more information.
Error in forloop (line 60)
gvi{ctr} = tf(N(ii,:),D(jj,:))
madhan ravi
madhan ravi am 6 Aug. 2020
Bearbeitet: madhan ravi am 6 Aug. 2020
Without knowing the missing variables , can’t help further.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Create Large-Scale Model Components finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by