how can i find specific value on step response plot?

19 ビュー (過去 30 日間)
Gihyun Kim
Gihyun Kim 2020 年 9 月 4 日
コメント済み: Gihyun Kim 2020 年 9 月 4 日
I've wrote down a code as below
n=[1];
d=[1 3 5];
sys=tf(n,d);
step(sys)
and i got a plot as below
i wanna get a specific value for time, t.
how can i get it?

採用された回答

KSSV
KSSV 2020 年 9 月 4 日
n=[1];
d=[1 3 5];
sys=tf(n,d);
[y,t] = step(sys) ;
plot(t,y)
Now you have the data, you can use interp1 to get the value.
ti = 2.5 ;
yi = interp1(t,y,ti)

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by