Frequency Characteristic and Amplitude with Simulink

20 views (last 30 days)
Hello, I have to find amplitude value and time shift between maximum value in one period in input and output signal.And chnage frequencies each time. I wrote one of them but I'm not sure. Could you help me if I'm going right?

Answers (1)

Sayan
Sayan on 8 Sep 2023
I understand from the query that it is required to find the amplitude and the phase shift between maximum values between the reference sinusoidal signal and the different computed waveforms at different frequencies, as depicted in the attached Simulink file. One observation is that when using the Derivative block, the variable "c" should be zero if no linearization is required. You can follow the below-mentioned workarounds to achieve the desired result.
  • Manually position the cursors in the scope at the maximum points of the output waveforms. The result can be found in the "Cursor Measurements" section of the "Scope" window.
  • Alternatively, the Timing Measurement block (available at Mixed-Signal Blockset/Utilities) can be used to measure different parameters like "period", "frequency", "duty cycle", "rise time", "fall time", and "delay" which can help in the calculation of the desired result.
Further information on the Timing Measurement block can be obtained the below mentioned MATLAB documentation.
Hope this answers the query.

Community Treasure Hunt

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

Start Hunting!