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)

 채택된 답변

Paulo Silva
Paulo Silva 2011년 6월 9일

1 개 추천

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

댓글 수: 2

sadel
sadel 2011년 6월 9일
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 2011년 6월 9일
just a small error on my part, it's fixed now

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2011년 6월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by