Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Listing 10.5. costasloop.m simulate the Costas loop with input from pulrecsig.m r= r s c ; fl=500, ff=10 .01 .02 1]; fa=[1 1 0 0];

image text in transcribedimage text in transcribed

Listing 10.5. costasloop.m simulate the Costas loop with input from pulrecsig.m r= r s c ; fl=500, ff=10 .01 .02 1]; fa=[1 1 0 0]; h-firpm (fl,ff , fa ) mu-.003 f0 1000:; theta-zeros (1 , length(t)); theta (1)=0; zs=zeros ( 1,f1+1); zc=zeros (1, fl+1); for k-1length (t)-1 % rse from pulreesig.m %LPF design % algorithm stepsize % freq at receiver % estimate vector % buffers for LPFs % z contains past inputs zs [zs (2: f 1), 2 r (k)*sin 2* pi Eo*t (k)+theta (k)) zc zc (2: f1), 2*r (k)*cos (2* pi fo*t (k)+theta (k))] lpfszfl pl r ( h ) * zs,; 1pfc efl ipl r (h)*zc"; % output of theta (k+1)= t heta (k)-m u* I pfs *lpfc; filters % algorithm update end Listing 10.5. costasloop.m simulate the Costas loop with input from pulrecsig.m r= r s c ; fl=500, ff=10 .01 .02 1]; fa=[1 1 0 0]; h-firpm (fl,ff , fa ) mu-.003 f0 1000:; theta-zeros (1 , length(t)); theta (1)=0; zs=zeros ( 1,f1+1); zc=zeros (1, fl+1); for k-1length (t)-1 % rse from pulreesig.m %LPF design % algorithm stepsize % freq at receiver % estimate vector % buffers for LPFs % z contains past inputs zs [zs (2: f 1), 2 r (k)*sin 2* pi Eo*t (k)+theta (k)) zc zc (2: f1), 2*r (k)*cos (2* pi fo*t (k)+theta (k))] lpfszfl pl r ( h ) * zs,; 1pfc efl ipl r (h)*zc"; % output of theta (k+1)= t heta (k)-m u* I pfs *lpfc; filters % algorithm update end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions