Accepted Answer

Try this:
x = @(t,tp,r,K,A,f0) A.*cos(2*pi*f0.*(t.^2/2)).*(abs(r)<=(tp/2));
t = linspace(-10, 10);
tp = 2;
r = 3;
K = 4;
A = 10;
f0 = 25;
figure
plot(t, x(t,tp,t,K,A,f0))
grid
Experiment to get the result you want.

2 Comments

need matlab code for range doppler algorithm and chirp scaling algorithm.
If you code those algorithms and post them, I will do my best to help you get your code running correctly and efficiently.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!