How can I convert num and den to strings?

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)

 Akzeptierte Antwort

Paulo Silva
Paulo Silva am 9 Jun. 2011

1 Stimme

nums=num2str(num{:});
dens=num2str(den{:});

2 Kommentare

sadel
sadel am 9 Jun. 2011
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 am 9 Jun. 2011
just a small error on my part, it's fixed now

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by