How can i import a signal in simulink
1 view (last 30 days)
Show older comments
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 Comments
Answers (2)
Honglei Chen
on 6 Sep 2011
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 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!