Convert transfer function writing form
Mostra commenti meno recenti
How to convert transfer function writing form Matlab form to canonical from via Matlab?
canonical form:
Example:
Risposta accettata
Più risposte (1)
Walter Roberson
il 14 Mar 2021
temp = cellfun(@(n, d) tf(n./d(1),d./d(1),h.Ts),h.num,h.den,'uniform', 0)
This returns a cell array with size output dimensions by input dimensions. This turns out to be the easy part. The harder part is automatically putting the cell back together the right way. You cannot create a vector and reshape. You can vertcat and horzcat but unless you loop somehow over rows or columns you have trouble getting the right size output.
It might even be easier to create the cells separately and build one tf... might work.
3 Commenti
Walter Roberson
il 14 Mar 2021
tf(cellfun(@(n, d) n./d(1),h.num,h.den,'uniform', 0), cellfun(@(n, d) d./d(1),h.num,h.den,'uniform', 0), h. Ts)
Eh, not terrible
Alexander Quarterblad
il 14 Mar 2021
Walter Roberson
il 14 Mar 2021
Ah, I did not notice the change in coordinates (it was pretty late my time!)
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
