How can I access the transfer function in time-constant-format using zpk transfer functions?

Hi everybody,
Matlab can display a transfer function in time-constant-format at the command window.
% Gs is a transfer funtion (tf-data)
Gs=tf([2],[1 6 5]);
% convert Gs to zpk-data
Gs=zpk(Gs);
%extract z,p,k
[z,p,k]=zpkdata(Gs);
% display Gs in time-constant-format
Gs=zpk(z,p,k,'DisplayFormat','time constant')
How can i access the displayed? E.g. as a string.
Thank you a lot in advance!
Kinds regards
Daniel

1 Comment

Hi,
just in case someone else is interested:
outputstring=evalc(Gs);
It let you evaluate and capture the output string, if - and only if - you first defined Gs with the above named property "DisplayFormat". Nesting the functions is not possible.

Sign in to comment.

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 4 May 2013

Community Treasure Hunt

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

Start Hunting!