Convert tf to struct
Ältere Kommentare anzeigen
How do I convert a 2x2 tf to 2x2 struct?
1 Kommentar
Steven Lord
am 9 Jul. 2016
Why do you want to do this?
Antworten (2)
Amanjeet Pani
am 13 Jul. 2022
0 Stimmen
you can check this documentation
hope this helps
G11 = tf([1 2], [3 4]);
G12 = tf([3 4], [5 6 7]);
G21 = tf([8], [9 10]);
G22 = tf([11 12 13], [14 15 16 17]);
G = [G11, G12; G21, G22]
S(1,1) = struct(G(1,1));
S(1,2) = struct(G(1,2));
S(2,1) = struct(G(2,1));
S(2,2) = struct(G(2,2));
S
1 Kommentar
Walter Roberson
am 13 Jul. 2022
Not sure what benefit this gives compared to just indexing the tf object.
Kategorien
Mehr zu Structures finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!