How can I convert num and den to strings?

1 次查看(过去 30 天)
How can I convert num and den to strings?
sys=tf([1],[1 1],'InputDelay',2)
sysd=c2d(sys,0.5)
[num,den]=tfdata(sysd)

采纳的回答

Paulo Silva
Paulo Silva 2011-6-9
nums=num2str(num{:});
dens=num2str(den{:});
  2 个评论
sadel
sadel 2011-6-9
Why do I receive this error?
??? Undefined function or method 'fix' for input arguments of type
'cell'.
Error in ==> num2str at 68
if ~isempty(x) && isequalwithequalnans(x, fix(x))
Paulo Silva
Paulo Silva 2011-6-9
just a small error on my part, it's fixed now

请先登录,再进行评论。

更多回答(0 个)

标签

尚未输入任何标签。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by