num = [str2num(num1) str2num(num2) str2num(num3)];
den = [str2num(den1) str2num(den2) str2num(den3)];
sys = tf(num,den)
set(handles.text1,num2str(sys)

답변 (1개)

Walter Roberson
Walter Roberson 2019년 9월 18일

0 개 추천

sys_char = evalc(sys);
sys_cell = splitlines(sys_char);
sys_cell = sys_cell(2:end-2); %some useless empty lines
set(handles.text1, 'Max', 2, 'FontName', 'mono', 'String', sys_cell);

댓글 수: 3

Hyun Ho Lee
Hyun Ho Lee 2019년 9월 19일
thank you! but error occured..
message is "input of evalc is not string or vector of char"
sys_char = evalc('sys');
Renato Andrango
Renato Andrango 2020년 9월 15일
<3 Thx!

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

카테고리

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

태그

질문:

2019년 9월 18일

댓글:

2020년 9월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by