# Chirp signal display in matlab

Started by ●January 29, 2008

Hi,

Can anybody help me display the following chirp signal in matlab??

s_tx = A*rect(tau/Tp)*exp(j*2*pi*fc*tau + j*pi*K*tau^2);

I do not know how to code 'rect' function in matlab.

You can assume arbitrary values for the quantities.

Thanks.

Can anybody help me display the following chirp signal in matlab??

s_tx = A*rect(tau/Tp)*exp(j*2*pi*fc*tau + j*pi*K*tau^2);

I do not know how to code 'rect' function in matlab.

You can assume arbitrary values for the quantities.

Thanks.

Posted by ●January 30, 2008

A rect function is 1 within a certain range and then 0 outside. So all you

have to do

to code the "rect" function is to make sure that s_tx is 0 outside of

(-tau/Tp,tau/Tp)

If you really want to "code" it, you can create a vector with 1s within

(-tau/Tp,tau/Tp)

and 0 outside and then do a .* (note the dot) with your exp() function.

Nandan

On Jan 28, 2008 8:34 AM, Ishtiaque Ahmed wrote:

> Hi,

> Can anybody help me display the following chirp signal in matlab??

>

> s_tx = A*rect(tau/Tp)*exp(j*2*pi*fc*tau + j*pi*K*tau^2);

>

> I do not know how to code 'rect' function in matlab.

> You can assume arbitrary values for the quantities.

> Thanks.

>

have to do

to code the "rect" function is to make sure that s_tx is 0 outside of

(-tau/Tp,tau/Tp)

If you really want to "code" it, you can create a vector with 1s within

(-tau/Tp,tau/Tp)

and 0 outside and then do a .* (note the dot) with your exp() function.

Nandan

On Jan 28, 2008 8:34 AM, Ishtiaque Ahmed wrote:

> Hi,

> Can anybody help me display the following chirp signal in matlab??

>

> s_tx = A*rect(tau/Tp)*exp(j*2*pi*fc*tau + j*pi*K*tau^2);

>

> I do not know how to code 'rect' function in matlab.

> You can assume arbitrary values for the quantities.

> Thanks.

>

Posted by ●January 31, 2008

Hello,

I need to know how to find the Chirp rate in a chirp signal. 'K' is the chirp rate in the following equation:

s_tx = A*rect(tau/Tp)*exp(j*2*pi*fc*tau + j*pi*K*tau^2);

Hopr to hear. Thanks.

*Thanks to Nandan.

Nandan Das wrote:

A rect function is 1 within a certain range and then 0 outside. So all you have to do

to code the "rect" function is to make sure that s_tx is 0 outside of (-tau/Tp,tau/Tp)

If you really want to "code" it, you can create a vector with 1s within (-tau/Tp,tau/Tp)

and 0 outside and then do a .* (note the dot) with your exp() function.

Nandan

On Jan 28, 2008 8:34 AM, Ishtiaque Ahmed wrote:

Hi,

Can anybody help me display the following chirp signal in matlab??

s_tx = A*rect(tau/Tp)*exp(j*2*pi*fc*tau + j*pi*K*tau^2);

I do not know how to code 'rect' function in matlab.

You can assume arbitrary values for the quantities.

Thanks.

I need to know how to find the Chirp rate in a chirp signal. 'K' is the chirp rate in the following equation:

s_tx = A*rect(tau/Tp)*exp(j*2*pi*fc*tau + j*pi*K*tau^2);

Hopr to hear. Thanks.

*Thanks to Nandan.

Nandan Das wrote:

A rect function is 1 within a certain range and then 0 outside. So all you have to do

to code the "rect" function is to make sure that s_tx is 0 outside of (-tau/Tp,tau/Tp)

If you really want to "code" it, you can create a vector with 1s within (-tau/Tp,tau/Tp)

and 0 outside and then do a .* (note the dot) with your exp() function.

Nandan

On Jan 28, 2008 8:34 AM, Ishtiaque Ahmed wrote:

Hi,

Can anybody help me display the following chirp signal in matlab??

s_tx = A*rect(tau/Tp)*exp(j*2*pi*fc*tau + j*pi*K*tau^2);

I do not know how to code 'rect' function in matlab.

You can assume arbitrary values for the quantities.

Thanks.