result of stepinfo size is 1x1 ...how can i extract settling time to another variable

조회 수: 5 (최근 30일)
my objective is to minimize the settling time....so at each and every time have to calculate settling time...for that am using stepinfo syntax
result is coming like below
S = RiseTime: 0.0015
SettlingTime: 17.4555
SettlingMin: 48.2799
SettlingMax: 50.7285
Overshoot: 1.4607
Undershoot: 0
Peak: 50.7285_
PeakTime: 5.9900
so how can i take settlingTime or any value to another variable
am grateful to u if u respond _____________THANKING YOU
  댓글 수: 1
POLURI SRIMANNARAYANA
POLURI SRIMANNARAYANA 2017년 12월 1일
but i'm not using any transfer function model...frequency is an array from iterative procedure i have an array..

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

채택된 답변

Birdman
Birdman 2017년 12월 1일
Consider this approach:
Gs=tf(1,[1 1]);
result=stepinfo(Gs);
SettlingTime=result.SettlingTime
  댓글 수: 3
Birdman
Birdman 2017년 12월 1일
Ok then. If S you wrote is a struct, then just write
S.SettlingTime

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Source Control Integration에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by