Matlab Challenge Who is the best

In summary, a challenging program using MATLAB was presented to math students, seeking support and cooperation to reach the final result. The program involves generating binary data using randint, defining sampling time and data rate, obtaining pulse shape, plotting x(t) for different line codes, obtaining autocorrelation function and power spectral density, and finally plotting the power spectral density. Two solutions were presented, but it is against site policy to do the homework for the students.
  • #1
ninaricci
18
0
Dear all Math students :
here is a challenging program needed to be run using matlab
well i am presenting part of the solution and looking for the support from all of to reach the rest of the result >>>>>>cooperation is being seeked:





generate binary data b_k using randint.
2. define the sampling time, and the data rate. For example, data rate can be R=10kbps, T=1/R, and sampling time Ts=T/40;
3. according to the above define your pulse shape (wave form of the different line codes).
4. obtain the x(t)=\sum_{k=-100}^{100} d_k p(t-kT)
d_k should be correctly mapped from the b_ks generated above.
5. plot the resulting x(t) for the different line codes.
6. obtain the autocorrelation function of x(t) (you may need to average over many realization (10-50 realizations should be enough to get smooth curve).
7. obtain the power spectral density by performing FFT of the autocorrelation function.
8. plot the power spectral density.


solution 1:
function f1=unipolar_nrz(b,R,Ns)

b=randint(1,100);
R=10000; %data rate: 10kbps
Tb=1/R; %bit duration
Nb=length(b);
Ts=Tb/4000;
Fs=1/Ts;
Ns=100; %40 samples/bit
d=b;
pulse=ones(1,Ns);
t=0:Ts:((Ns*Nb)*Ts)-Ts;

x=kron(d,pulse); %Kronecker tensor product
%y1 = wgn(100,1,0);
plot(t,x)
%y= X+ 0.00001*y1;
D= pwelch(x,33,32,[],Fs,'twosided');
hold
%D2=D+randn;
plot(fftshift(D))

end



solution 2:
>>b = rand(100,1);
>>R=10000;
>>Tb=1/R;
>>Ts=Tb/40;
>>Nb=length(b);
>>Ns=40;
>>pulse =[ones(1,Ns/2), -ones(1,Ns/2)];
>>t=0:Ts:((Ns*Nb).*Ts)-Ts;
>>f=0:0.05*Rb:2*Rb;
>>x=f*Tb;
>>d=b;
>>x=kron(d,pulse);




hurry up...who is the best MATLAB program user who can come with a solution
 
Physics news on Phys.org
  • #2
Unfortunately it is against the policy of this site to DO YOUR homework. We will hint and help but you have to do your own work.
 
  • #3
?

It is difficult to determine who the best MATLAB program user is as everyone has their own strengths and areas of expertise. However, the key to solving this challenge is to have a strong understanding of signal processing and the different line codes, as well as proficiency in using MATLAB functions and tools. With cooperation and collaboration, we can all work together to come up with a solution and learn from each other's approaches. Let's use this challenge as an opportunity to improve our skills and work together as a team.
 

1. Who is the best in the Matlab Challenge?

The answer to this question is subjective and cannot be determined objectively. The best in the Matlab Challenge may vary depending on individual skills, experience, and performance in the challenge.

2. How can I improve my skills in the Matlab Challenge?

To improve your skills in the Matlab Challenge, it is recommended to practice regularly, participate in coding challenges, and seek guidance from experienced users. You can also refer to online tutorials and documentation provided by Matlab for additional support.

3. Is there a specific strategy to win the Matlab Challenge?

There is no specific strategy to win the Matlab Challenge as it depends on the challenge requirements and individual approach. However, some common tips include thoroughly understanding the problem, breaking it into smaller steps, and optimizing your code for efficiency.

4. Can I use external resources during the Matlab Challenge?

In most cases, external resources are not allowed during the Matlab Challenge. It is essential to follow the rules and guidelines provided by the challenge organizers to avoid disqualification.

5. How long does the Matlab Challenge usually last?

The duration of the Matlab Challenge can vary depending on the challenge type and difficulty level. Some challenges may last for a few hours, while others may span over a few days or weeks. It is best to check the specific challenge details for accurate information.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
995
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
937
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
4K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
14
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
7
Views
2K
Replies
1
Views
6K
Back
Top