extract num and den from matrix transfer function
이전 댓글 표시
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
답변 (1개)
madhan ravi
2020년 8월 6일
편집: madhan ravi
2020년 8월 6일
0 개 추천
Use it inside the loops, preallocation is recommended for the variables.
댓글 수: 4
msh jgtu
2020년 8월 6일
madhan ravi
2020년 8월 6일
ctr = 0;
[gvi, yv, N, D] = deal(cell(4*4, 1));
for ii = 1 : 4
for jj = 1 : 4
ctr = ctr + 1;
gvi{ctr} = tf(N(ii,:),D(jj,:))
yv{ctr} = series(yc, gvi{ctr})
[N{ctr}, D{ctr}]= tfdata(yv)
end
end
celldisp(N)
celldisp(D)
msh jgtu
2020년 8월 6일
madhan ravi
2020년 8월 6일
편집: madhan ravi
2020년 8월 6일
Without knowing the missing variables , can’t help further.
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!