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

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 9 Apr. 2020
Bearbeitet: Walter Roberson am 9 Apr. 2020

1 Stimme

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))

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-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