Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

coversion frm sym to double is not possible?plz help

1 view (last 30 days)
khushi
khushi on 25 Aug 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
clc;clear all; g_db=[0:2:20];
g=10.^(g_db/10); alpha=1.25; c=1; M=2; syms y r=0; for j=2:M
p=((-1)^j)*(factorial(M)/factorial(j)*factorial(M-j))*exp(-(g.*y*(1-(1/j)))); r=r+p; t=r*(1/M) end x=((y.^(alpha-1)).*exp(-y./c))/((gamma(alpha))*(c^alpha)); z=t*x; semilogy(g_db,double(subs(z,y)),'o') hold on

Answers (0)

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!