Convert tf to struct
16 次查看(过去 30 天)
显示 更早的评论
How do I convert a 2x2 tf to 2x2 struct?
回答(2 个)
Walter Roberson
2022-7-13
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!