How do I ifft two vectors?
显示 更早的评论
This is the question:
Use fft() and ifft() functions provided by MATLAB, while X[k] = fft(x[n]).Compute the result for the following equations and plot the result. Describe your findings.
i)H1[k] =fft(h[n]), y[n] =ifft(X[k]H1[k])
ii)H2[k] =fft(h[n+ 12] +h[n] +h[n−12]), y[n] =ifft(X[k]H2[k])
iii)H3[k] =fft(h[n+ 5] +h[n] +h[n−5]), y[n] =ifft(X[k]H3[k])
How do I find y[n] in each of these, I have tried
ifft( (X[k])*(H1[k]))
and
ifft( (X[k]).*(H1[k]))
, but I get the error message, "Arrays have incompatible sizes for this operation." So how do i make them the same length and then appy that to the ifft.
Thank you!
1 个评论
Image Analyst
2021-10-11
编辑:Image Analyst
2021-10-11
What does x[n] mean? You can't fft a single value, so is x a 2-D array and x[n] is the nth row or column of that array? You use parentheses to reference array indices in MATLAB, not square brackets. Square brackets are for creating matrices, not referencing elements from them. If you're using the whole matrix, then maybe you meant:
ft = ifft(x .* h1)
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Transmitters and Receivers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!