How can I convert num and den to strings?

1 view (last 30 days)
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)

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!