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)

 Respuesta aceptada

Paulo Silva
Paulo Silva el 9 de Jun. de 2011
nums=num2str(num{:});
dens=num2str(den{:});

2 comentarios

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 9 de Jun. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by