Calculation overshoot multiple steps in array of data

조회 수: 5 (최근 30일)
Wout
Wout 2022년 10월 4일
답변: Joel Van Sickel 2022년 12월 15일
I have a data set of reaction times of an electric motor and would like to obtain the stepinfo of each step in the data.
I am currently working on the overshoot() function. With this I do get the desired values from the min and max but I would like to get this from all the steps in the data.
Would I best do this with a for loop and filter on each torque area and later plot all the data together?

답변 (1개)

Joel Van Sickel
Joel Van Sickel 2022년 12월 15일
There isn't necessarily a best approach. The for loop would certainly work. Sometimes, to keep it clean, I will do each operating point as a seperate simulation run so that the post processing algorithm is simpler to write. But it can be faster to simualte all of the operating points in a single run as you have. In that case you want to write your post processing algorithm to only look at a window of data at a time. Neither is better than the other, just do what you prefer from an implementation standpoint.

카테고리

Help CenterFile Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by