How to change from scientific form to decimal form using continuous and discrete transfer functions?

조회 수: 2 (최근 30일)
I'm using the c2d function in matlab to convert continuous transfer functions to discrete transfer functions however the output is showing in the form e-6 for example, how can I change this to decimal precision. I understand the vpa function is not supported and I've already tried format short to no avail. Many thanks for any help!

채택된 답변

Paul
Paul 2022년 6월 16일
Hi Edward,
It would be immensely helpful to show a simple example with an actual result and explain what the preferred result would look like.
Keep in mind that the screen display is just that, a simple display for the user. It can't be changed, at least not without changing the as-delivered code for the Control System Toolbox, which highly not recommended.
Note that the parameters of the zpk or tf object can be obtained with zpkdata and tfdata respectively and can be diplayed in whatever format is desired.
If really want a screen display with a different format for the parameters, this thread may be of interest
  댓글 수: 1
Edward Willison
Edward Willison 2022년 6월 16일
Hi Paul, I realised that I had used an incorrect time sample for the c2d function, on correcting this the resulting discrete transfer function was displayed in decimal form, so for now it's all good. I'll certainly come back to this later if I encounter it again. Many thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by