how to write this equation on MATLAB ?

Kindly help me to write the equation on matlab. So that I can plot a graph. Also,if there is any mistake done please let me know.

5 Comments

This looks like homework. If it is, please mention it in the question.
It is not a homework sir. It is part of my final project. Can you help me in writing that equation.
This is your final project? Then this is much more important than a homework. And you try to ask the forum to solve this for you? "Final project" usually implies that you have experiences already and should demonstrate them to pass an exam. So please post, what you have tried so far and explain, what the problem is.
I am not able to figure out how to write this equation, as it contains double summation. Previously I used symsum for sumation.
Jan
Jan on 20 Dec 2017
Edited: Jan on 20 Dec 2017
Ah, symsum. Do you want to solve this symbolically or numerically?
If this is your final project, and you do not have the faintest idea how to solve this, you should ask your professor or instructor for help. It would be a very strange final project, if foreign forum members can or would solve it for you.
I do not see and relation between the formula and the posted code. Where does "snrdB=0:0.1:30" and "u=10.^(0.1.*snrdB)" come into play?
By the way: Use the "{} Code" button to format code in the forum.

Sign in to comment.

 Accepted Answer

Jan
Jan on 20 Dec 2017
Edited: Jan on 20 Dec 2017
You need tow for loops.
Cora = 0;
for k = 1:Lm
c1 = factorial(Lm-1) / (m / gamma)^k * exp(m / gamma) * ...
(-1)^(Lm-k) / factorial(Lm - k);
c2 = ... I leave this up to you
for m = 0:(Lm - k - 1)
c3 = ... I leave this up to you
end
Cora = Cora + c1 * c2 * c3;
end
This is meant as demonstration to show, that the implementation of a formula to Matlab code is not hard. Simply try it. It is straight forward.

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Tags

No tags entered yet.

Asked:

on 16 Dec 2017

Edited:

on 20 Dec 2017

Community Treasure Hunt

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

Start Hunting!