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 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497578-fourier-transform-in-simulink#comment_780448
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497578-fourier-transform-in-simulink#comment_780448
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497578-fourier-transform-in-simulink#comment_780483
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/497578-fourier-transform-in-simulink#comment_780483
Sign in to comment.