please give me the code for those question
Info
This question is closed. Reopen it to edit or answer.
Show older comments

7 Comments
Adam Danz
on 12 Jul 2018
Is this a homework question? How far did you get in trying to do this yourself? If you're stuck on something specific, I could help. For an example, if I want to write an equation for
x = [c + a sin(theta)]cos(alpha)
x = (c + a * sin(theta)) * cos(alpha)
MD NASIM
on 12 Jul 2018
Adam Danz
on 12 Jul 2018
Here's another example
r = a-b sin(b)
r = (a-b) * sin(b);
The parentheses around (a-b) are needed to preserve order of operations. The rest should be intuitive and you should used these examples to do your homework.
Guillaume
on 12 Jul 2018
@MD NASIM,
We won't write the code for you. The most efficient way to learn something is by going through the process of solving the problem, possibly failing and trying again.
Writing the code for you would only teach you how to copy/paste.
Now, if you have a particular problem with a specific point on your homework, something you don't understand, then we don't mind helping but you need to be clear what that problem is.
Steven Lord
on 12 Jul 2018
Show us what you've tried so far and we may be able to offer suggestions for how to improve that code.
Yettapu Vishnu
on 28 Aug 2020
- speech signal X(t) for less than 5 seconds. Using MATLAB,
a. Plot the signal X(t). Record
b. Pass the signal through a differentiator and plot the output signal Y(t).
c. Plot the power spectral density SY(f).
need code for this question a,b,c
Answers (3)
Florian Floh
on 13 Jul 2018
Hello MD NASIM! As already mentioned, you can learn programming the fastest way, if you try it yourself (copying pieces of code does not get you anywhere. Make sure, you understand what you are coding!). However, if you have any difficulties, let me give you a place to start. The "spherical helix" would be done in this way: (now try to figure out the code for the other figures by yourself!)
% Set up the variable c
c = 5;
% make a vector ranging from 0 to 10*pi, separated into 100 equal pieces
phi = linspace(0,10*pi,100);
% Compute the coordinates (.* is the Hadamard product (elementwise multiplication))
x = sin(phi/(2*c)).*cos(phi);
y = sin(phi/(2*c)).*sin(phi);
z = cos(phi/(2*c));
% plot your results:
plot3(x,y,z);
If you want to know any further details of a Matlab function (i.e. 'plot') then type "doc plot" into your "Command Window".
Kind regards, Florian
Ravi
on 15 Oct 2023
0 votes
Simulate the diffraction gain. From the given geometry use the assigned values to compute the diffraction gain and compute the received signal power under diffraction which is P diff r (d) = Gd (ν) P LoS r (d). Here P LoS r (d) denotes received power under Line-of-Sight Condition.
Ravi
on 15 Oct 2023
0 votes
Compute the gain of antenna at the base station using the aperture value specified in the excel sheet. For free space propagation model, assume the gain of the receiver antenna as 1. The Tx-Rx separation distance range is df to 10000 × df , where df is the far-field distance of base station antenna. For two-ray ground reflection model set the distance as dT to 10000 ∗ dT , where dT = 20hthr λ .
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!