Pole Plot of System-vector
1 次查看(过去 30 天)
显示 更早的评论
I want to plot all due to quantization possible poles of different filter structures (all SOS) and therefore would need following code to run (I don't post the whole code but instead start directly in front of the thing that doesn't work, but I will explain what I did until there):
% c has 121 rows and 3 columns, it holds 121 denominators with 3 coefficients each
p = pole(tf(1, c));
now this line is giving me the error: "The values of the "num" and "den" properties must be row vectors or cell arrays of row vectors, where each vector is nonempty and containing numeric data. Type "ltiprops tf" for more information."
Now I have to admit that I couldn't find something useful about solving this error, and I would really like to avoid something like a for loop where i calculate the poles for each system on its own, because I will have many more system later which leads to awfully slow calculation.
0 个评论
回答(1 个)
Iman Ansari
2013-4-28
编辑:Iman Ansari
2013-4-28
Hi. It's works, but maybe it's not correct:
c = rand(121,3);
Cell_Den = mat2cell(c,ones(121,1),3)';
Cell_Num(1:121) = {1};
Trans = tf(Cell_Num,Cell_Den);
p = pole(Trans);
p = reshape(p,[2,121]);
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Stability Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!