From: vincent hamon on 6 Apr 2010 11:25 "David" <dave(a)bigcompany.com> wrote in message <gjdm9q$8hj$1(a)fred.mathworks.com>... > "Murthy Hegde" <kmurthy_hegde(a)yahoo.com> wrote in message <gjdkn5$980$1(a)fred.mathworks.com>... > > "David" <dave(a)bigcompany.com> wrote in message <gjac9u$lit$1(a)fred.mathworks.com>... > > > "Murthy Hegde" <kmurthy_hegde(a)yahoo.com> wrote in message <gj9k7a$t21$1(a)fred.mathworks.com>... > > > > Hello, > > > > > > > > I am using simulink FFT block to do FFT. My input is complex number (8 point FFT). > > > > > > > > I am using Signal from work place block to take the input from matlab workspace. But FFT block is computing only scalar values and not computing complex number. > > > > > > > > Can any one let me know how to give the complex input to FFT block in Simulink from Matlab workspace? > > > > > > > > Regards, > > > > > > > > Murthy. > > > > > > exactly which fft block are you using? the 'normal' fft block should take complex inputs and give complex outputs. > > > > Hello David, > > > > Thanks for the reply and your time. I am just giving complex input in=[1+2i,2+3i,3+6i,7+9i,5+2i,6+4i,8+3i,6+6i] from matlab workspace and using "Signal from workspace" block in series with the normal "FFT" block and seeing output using "Signal to workspace" block. But it is giving warning "Computing the FFT of a scalar input" and giving me the output same as input. > > > > Hope you have understood my problem now. > > > > Awaiting for your reply. > > > > Regards, > > > > Murthy > > oh, thats a different problem. the fft block requires a vector input that is a power of 2 length. so giving it a single sample doesn't compute... literally. to convert a single sample at a time signal into a vector look at the buffer block, that will take a scalar input sample stream like your fromworkspace block provides and buffers it up to a vector that can feed the fft block. Hello, I have the same problem and I don't understand how I must use the buffer block with the FFT block. what options do I choose? j'espère que quelqu'un pourra me répondre Regards, Vincent
|
Pages: 1 Prev: mex problem Next: Taylor/Schwert Garch using UCSD GARCH toolbox |