how to use stepinfo function with non-zero initial value

8 views (last 30 days)
i am trying to get various step response data like rise time , overshoot, setttling time, etc.. using stepinfo function for my time series data. i am getting appropriate values when step data is starting from 0 to postive value. But unable to use stepinfo function for data with some non-zero initial value or step is negative. any suggestions would be highly appreciated.

Answers (1)

Shresth Sharma
Shresth Sharma on 17 Mar 2020
Hi,
It is my understanding that you are not using a transfer function in stepinfo, rather trying to use a variable containing array of negative values. I tried in MATLAB 2019b, with a small set of negative valued data for a time period and was able to get the result using ‘stepinfo. These are the examples I tried:
stepinfo([-2 -3 -4 -5 -6],1:1:5)
stepinfo([-2 -3 -4 -5 0],1:1:5)
stepinfo([-2 -4 -4 -5 0],1:1:5)
You mentioned you are using timeseries data, it would be of much help to resolve if you can give more info about the type of data you are using.
You can refer to the documentation link of ‘stepinfo in MATLAB for more insight.
  4 Comments
Leelakrishna Jonnadula
Leelakrishna Jonnadula on 5 May 2020
Thank you for your reply. my question was how to use stepinfo function for non-zero initial value or final value is less than initial value. stepinfo function returns improper values in any of the these cases. could you please run stepinfo function for the data I attached and see whether results make sense to you or not. Thanks again for helping me on this.

Sign in to comment.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Products


Release

R2015a

Community Treasure Hunt

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

Start Hunting!