Can anyone please help how to simulate closed form expression in Matlab?
2 views (last 30 days)
Show older comments
Dhawal Beohar
on 9 Nov 2020
Commented: Dhawal Beohar
on 9 Nov 2020
How to simulate closed form expression in Matlab?
5 Comments
Accepted Answer
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))
disp(char(vpa(Qs,5)))
More Answers (0)
See Also
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!