please give me the code for those question

7 Comments

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)
this is my first time i am learning matlab coading. It's homework.please,Question by me to write the code
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.
@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.
Show us what you've tried so far and we may be able to offer suggestions for how to improve that code.
  1. 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)

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
Ravi on 15 Oct 2023
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
Ravi on 15 Oct 2023
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.

Tags

Asked:

on 12 Jul 2018

Closed:

on 15 Oct 2023

Community Treasure Hunt

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

Start Hunting!