GUI How i can call a function transfer to show in a static text...

1 Ansicht (letzte 30 Tage)
I dont know how call a transfer funtcion to show i a static text
% Discretizar por ZOH
Gz = c2d(Gs,T,'zoh')
set(handles.GZDisc,'',)
assignin('base','Gz',Gz)

Akzeptierte Antwort

Sergio
Sergio am 9 Mär. 2012
I got it
Gz = c2d(Gs,T,'zoh');
G = evalc('Gz');
set(handles.FTDisc,'String',G);

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 8 Mär. 2012
set(handles.GZDisc, 'String', num2str(Gz))
  4 Kommentare
Walter Roberson
Walter Roberson am 9 Mär. 2012
Then I do not understand what you want to do. Are you wanting to display the symbolic form of the transfer function perhaps?
Sergio
Sergio am 9 Mär. 2012
Gz = c2d(Gs,T,'zoh');
G = evalc('Gz');
set(handles.FTDisc,'String',G);

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by