What values do I need to put in

1 view (last 30 days)
Gökalp Ugurlu
Gökalp Ugurlu on 29 May 2021
Answered: darova on 30 May 2021
Consider a signal transmitted through free space to a receiver located at distance d from the transmitter. Assume there are no obstructions between the transmitter and receiver and the signal propagates along a straight line between the two. The channel model associated with this transmission is called a line-of-sight (LOS) channel, and the corresponding received signal is called the LOS signal or ray. For this question, the effect of free-space path loss can be expressed with Sr St = λ 4πd (3) where Sr and St are the received and transmitted signal amplitudes, respectively. Here, λ represents the wavelength. Therefore received signal amplitude of a monochromatic wave can be given as Sr(t) = A λ 4πdcos(2πfct). (4) In this expression, A is the wave amplitude at the transmitter, fc denotes the carrier frequency of the wave and t denotes the time. Write a MATLAB script by using animatedline function to create an animation of given wave propagating in free space for 500 meters. Your animation plot should also show Sr(t) value simultaneously on your legend. Please do not forget to name the axes properly. The expected outcome of an instant is given in Fig. 1. For more details, please check the video file. While creating the wave, take the speed of light (wave) c = 3 × 108 m/s, fc = 5 MHz and A = 100 V

Answers (1)

darova
darova on 30 May 2021
What about this?
x = 0:40;
y = sin(x)./x;
plot(x,y)

Categories

Find more on Animation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!