필터 지우기
필터 지우기

how to show Transfer function in gui static text like in command window

조회 수: 4 (최근 30일)
aux = tf(K,conv([L R],[J b]));
T = evalc('aux');
set(handles.TF,'string',num2str(T)); %TF is static text
0.01
------------------------ -----> I want to show like this in static text
0.005 s^2 - 0.04 s - 0.1

채택된 답변

Walter Roberson
Walter Roberson 2023년 9월 17일
aux = tf(0.01, [0.005, -0.04, -0.1]);
T = evalc('aux');
Tcell = regexp(T, '\n', 'split');
Tcell = Tcell(4:6);
set(handles.TF, 'string', Tcell);
However, the formatting might not look quite right. If small details such as exactly which characters align vertically matter to you, then you might need to set horizontal alignment or fontname

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by