How can i import a signal in simulink
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Honglei Chen
il 6 Set 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 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!