Filter löschen
Filter löschen

How can I convert num and den to strings?

3 Ansichten (letzte 30 Tage)
sadel
sadel am 9 Jun. 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)

Akzeptierte Antwort

Paulo Silva
Paulo Silva am 9 Jun. 2011
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)

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