help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem on inverse fourier transform from sinc pulse to rectangular puls


From: eric
Subject: problem on inverse fourier transform from sinc pulse to rectangular pulse, need help
Date: Sat, 4 Mar 2000 15:03:26 -0800

 

I want to model  stair wave y=2 as 0<x<1

                                                           y=1 as 1<x<2

                                                                y=0 as 2<x<3

through it fourior transform from sinc pulse

We know

As

So

so fourier transform of stair wave y=2 as 0<x<1

                                                           y=1 as 1<x<2

                                                                y=0 as 2<x<3

as

 

so I inverse fourier transform U(f)

   that would my assumed stair wave pulse.

I attach my mat and fig file from matlab student version5.3 for window.  But it didnot do what I want.

 

x=0:0.01:3;
EDU» y=ifft((sinc(x)*(2*exp(-i*pi*x)+exp(-i*3*pi*x)));
??? )+exp(-i*3*pi*x)));
                      |
Improper function reference. A "," or ")" is expected.

EDU» y=ifft((sinc(x)*(2*exp(-i*pi*x)+exp(-i*3*pi*x))));
??? Error using ==> *
Inner matrix dimensions must agree.

EDU» y=ifft((sinc(x).*(2*exp(-i*pi*x)+exp(-i*3*pi*x))));
EDU» plot(x,y)
Warning: Imaginary parts of complex X and/or Y arguments ignored.

Where I may go wrong?

 

Need your tech help and thanks in advance

Eric(address@hidden)

 

Attachment: rect.fig
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]