rising time

I have 4 plots in a graph. Each of them have a starting point and a point at it which the peak shoots to a level and then falls down again. I want to find the time it takes to rise from starting point to the peak.

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2011 年 10 月 31 日

0 投票

stepinfo()
S = STEPINFO(Y,T,YFINAL) takes step response data (T,Y) and a steady-state value YFINAL and returns a structure S containing the following performance indicators:
* RiseTime: rise time
* SettlingTime: settling time
* SettlingMin: min value of Y once the response has risen
* SettlingMax: max value of Y once the response has risen
* Overshoot: percentage overshoot (relative to YFINAL)
* Undershoot: percentage undershoot
* Peak: peak absolute value of Y
* PeakTime: time at which this peak is reached.
sys=tf(1, [1 4 10]);
[y,t]=step(sys);
plot(t,y);grid on;
stepinfo(y,t,1/10)

6 件のコメント

Bhargavi
Bhargavi 2011 年 10 月 31 日
yes I did look in to it even before asking the question. But, I did not follow the syntax exactly.
Fangjun Jiang
Fangjun Jiang 2011 年 10 月 31 日
As long as you have the data (t,y,y_final), what is your difficulty?
Fangjun Jiang
Fangjun Jiang 2011 年 11 月 1 日
See update.
Bhargavi
Bhargavi 2011 年 11 月 1 日
But I have a lot of plots and I cannot mention the value of Y and YFINAL for every other plot. They all have different Y and YFINAL
Fangjun Jiang
Fangjun Jiang 2011 年 11 月 1 日
I don't understand. If you have 4 plots, you have to run stepinfo() 4 times. If you cannot mention the value of YFINAL, that is fine. You can use stepinfo(Y,T). But if you can't mention the value of Y, how could you do it with your own brain?
Bhargavi
Bhargavi 2011 年 11 月 2 日
I had mentioned that I had four plots so that I could implement the same thing with my other plots too. I have about 10 subjects with 16 files for each subject. These 16 files are grouped in to 4 sub categories and I make subplots of each of these sets. I am sorry If I didn't explain it to you in detail.

サインインしてコメントする。

カテゴリ

タグ

質問済み:

2011 年 10 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by