How can i import a signal in simulink
1 次查看(过去 30 天)
显示 更早的评论
Hi everyone I have a matrix in matlab which has two columns(first column for time and second one the amplitude), I need to either import it in simulink and pass it through the low pass filter or get the Fourier transform in matlab and then multiply it by filter's function.So lets say I want to know how to import this matrix as a signal in simulink or how to fft in matlab. I tried to import it in simulink but it does not show the signal. Thanks in advance.
0 个评论
回答(2 个)
Honglei Chen
2011-9-6
Hi Nima,
There is a From Workspace block that you can use to import the signal from work space to Simulink, see
To do FFT in MATLAB, simply call fft function on your data, e.g.
y = fft(x)
You can do
doc fft
to find more information and examples.
HTH
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!