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

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)

 Accepted Answer

I got it
Gz = c2d(Gs,T,'zoh');
G = evalc('Gz');
set(handles.FTDisc,'String',G);

More Answers (1)

set(handles.GZDisc, 'String', num2str(Gz))

4 Comments

No, I already try it and it doesn't work
??? Undefined function or method 'fix' for input arguments of type 'tf'.
Because Gz i a transfer function, no a num
Then I do not understand what you want to do. Are you wanting to display the symbolic form of the transfer function perhaps?
Gz = c2d(Gs,T,'zoh');
G = evalc('Gz');
set(handles.FTDisc,'String',G);

Sign in to comment.

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 8 Mar 2012

Community Treasure Hunt

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

Start Hunting!