FFT analysis using powergui in simulink
4 views (last 30 days)
Show older comments
I have done 3 set of ode calculation in matlab and got result of 3 waveforms.
I used ode45 for calculation so the time step is not constant.
I got 1850 time samples within the interval 0 to 1sec and 1850 samples of each of 3 outputs.
Now i want to do fft analysis of these 3 waveforms.
For extracting the output data to simulink i generated one more m.file as given below,
I1 = [t y(:, 1)];
I2 = [t y(:, 2)];
I3 = [t y(:, 3)];
[since in workspace t = 1850*1, y = 1850*3]
And used workspace block in simulink like below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/772868/image.png)
i logged the scope data to workspace in scope settings.
After running the model, got below waveform in scope.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/772873/image.png)
I opened FFT analysis option in powergui block. I expected I1 waveform in that block but it is not showing any waveform.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/772878/image.png)
What is reason behind this?
0 Comments
Answers (0)
See Also
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!