Can anyone please help how to simulate closed form expression in Matlab?

4 views (last 30 days)
How to simulate closed form expression in Matlab?
  5 Comments
Dhawal Beohar
Dhawal Beohar on 9 Nov 2020
equation 1 is the closed expression i derived and now i want to simulate in Matlab. I don't know if this is the correct way i am doing.
Dhawal Beohar
Dhawal Beohar on 9 Nov 2020
Edited: Dhawal Beohar on 9 Nov 2020
i want to calculate closed form expression for the following equation:
; where
in Matlab.

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 9 Nov 2020
Ten = sym(10);
N_0 = Ten^sym(-11.4);
PmaxdB = sym(15);
Pmax = Ten.^(PmaxdB/Ten);
syms gamma Qu
assume(Qu < 0)
QoS_Component_u = Ten.^(Qu);
u = QoS_Component_u;
Q = -1/u * log(int(exp(-u*(Pmax*gamma + N_0))*exp(-gamma), gamma, 0, inf));
Qs = simplify(Q);
disp(char(Qs))
(log(10*10^(1/2)*10^Qu + 1) + (10^(3/5)*10^Qu)/1000000000000)/10^Qu
disp(char(vpa(Qs,5)))
(log(31.623*10.0^Qu + 1.0) + 3.9811e-12*10.0^Qu)/10.0^(1.0*Qu)

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!