How to measure the steady state amplitude of a control system output

조회 수: 14(최근 30일)
Michael Sohnen
Michael Sohnen 2021년 3월 7일
댓글: Michael Sohnen 2021년 3월 9일
Dear Matlab Answers,
Hello. I have included below an image concerning my problem
Here I have a sinusoidal weaveform that has an initial transient then settles to a steady state amplitude. It looks odd ebcause the plot is so dense, but the data is all sinsoidal with a transient offset. The data is represented as an array of time points and an array of ampltiude points. (tout and Y). How can I write an algorithm to detect when the transient is complete and return the final steady state amplitude? Technically, this is not only a MATLAB question, but a solution written in MATLAB code is preffered.
  댓글 수: 5
Michael Sohnen
Michael Sohnen 2021년 3월 9일
@Paul Dear Paul, thank you for your comment. Thank you to other commenters as well. I need to be able to analyuze the data WITHOUT ACCESS TO THE INPUT SIGNAL, and WITHOUT ACCESS TO THE SIMULINK MODEL. I need to find a statistical approach. I am basically looking for an algorithm that can seperate the transient from the steady state component in ANY signal, knowing that the steady state is some sinusoid of a singe frequency.
I basically want to high pass filter my signal, then measure the amplitude using (max(data)-min(data))/2. How can I do a high pass filter on a signal in MATLAB given only data?

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

채택된 답변

Michael Sohnen
Michael Sohnen 2021년 3월 9일
I figured it out. If you have some idea of what frequencies will be present in the signal, just use the highpass command. In my problem, I know the exact sampling rate, so it works. I highpass the data with a lower cutoff of 1 hertz and then measure the amplitude using max and min.
Thanks all.
Best,
Mike
  댓글 수: 4

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

추가 답변(1개)

Pat Gipper
Pat Gipper 2021년 3월 8일
Try using this app. It injects a sine wave and measures the gain and phase after a number of cycles that you specify.
https://www.mathworks.com/matlabcentral/fileexchange/85448-frequency-response-analyzer
  댓글 수: 1
Michael Sohnen
Michael Sohnen 2021년 3월 8일
I was looking for something that worked exclusively on the output data, in the time domain.

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by