Effacer les filtres
Effacer les filtres

How can I convert num and den to strings?

3 vues (au cours des 30 derniers jours)
sadel
sadel le 9 Juin 2011
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)

Réponse acceptée

Paulo Silva
Paulo Silva le 9 Juin 2011
nums=num2str(num{:});
dens=num2str(den{:});
  2 commentaires
sadel
sadel le 9 Juin 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 le 9 Juin 2011
just a small error on my part, it's fixed now

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by