Fourier Transform in Simulink
6 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I'm simply trying to add up an arbitrary number of sine waves and output the frequency chart with the blocks below:
the matlab function is to perform the fftshift:
function y = fcn(u)
y = fftshift(u)
size(y)
end
But the output of the array plot doesn't seem to make sense, as I've chosen 10 Hz and 20 Hz within the Sine Wave block:
The output of the array plot I would suspect should show peaks at both 10 Hz and 20 Hz, but displays something I'm not quite understanding:
Does anyone have any suggestions on something I'm simply missing here?
2 件のコメント
Nikhil Sonavane
2019 年 12 月 23 日
Can you share your Simulink model so that it is easier for me to reproduce your problem?
回答 (2 件)
Nikhil Sonavane
2019 年 12 月 26 日
The Matrix Block used isn't giving desired results as the Sum over field is not configured properly. Change the Sum over field to Specified dimension and select the Dimension as 2. For more information execute the following command in MATLAB command window and execute it-
openExample('dsp/TransformTimeDomainDataIntoFrequencyDomainExample')
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!