for example:
K = [1, 2, 3, 4];
D = [2, 3, 4, 5];
How can i create a tranfer fuction with arrays like that
i already did
w=tf(K,[D 1]);
but it give me wrong answer/
any ideal??
thanks everyone

 채택된 답변

Walter Roberson
Walter Roberson 2020년 4월 9일
편집: Walter Roberson 2020년 4월 9일

1 개 추천

arrayfun(@(k,d) tf(k,[d 1]), K, D)
... as a guess about what you intend.
The same thing can be done in one tf() call:
tf(num2cell(K), arrayfun(@(d) [d 1],D,'uniform',0))

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2020년 4월 9일

편집:

2020년 4월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by