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

29 views (last 30 days)
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
Daniel
Daniel on 21 May 2013
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.

Answers (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 20 May 2019
z{1}, p{1}, k % show the values in the command window.

Community Treasure Hunt

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

Start Hunting!