Search tips

Search tips

# Discussion Groups | Matlab DSP | Chirp signal display in matlab

Technical discussion about Matlab and issues related to Digital Signal Processing.

Is this thread worth a thumbs up?

0

# Chirp signal display in matlab - Ishtiaque Ahmed - Jan 29 8:33:31 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.

```

# Re: Chirp signal display in matlab - Nandan Das - Jan 30 7:12:35 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 <p...@yahoo.com> 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.
>

```

# Re: Chirp signal display in matlab - Ishtiaque Ahmed - Jan 31 8:31:52 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 <n...@gmail.com> 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 <p...@yahoo.com> 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.

```