please give me the code for those question

7 件のコメント

Adam Danz
Adam Danz 2018 年 7 月 12 日
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
MD NASIM 2018 年 7 月 12 日
this is my first time i am learning matlab coading. It's homework.please,Question by me to write the code
Adam Danz
Adam Danz 2018 年 7 月 12 日
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
Guillaume 2018 年 7 月 12 日
@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
Steven Lord 2018 年 7 月 12 日
Show us what you've tried so far and we may be able to offer suggestions for how to improve that code.
Yettapu Vishnu
Yettapu Vishnu 2020 年 8 月 28 日
  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

回答 (3 件)

Florian Floh
Florian Floh 2018 年 7 月 13 日

0 投票

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 2023 年 10 月 15 日

0 投票

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 2023 年 10 月 15 日

0 投票

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 λ .

この質問は閉じられています。

タグ

質問済み:

2018 年 7 月 12 日

閉鎖済み:

2023 年 10 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by