Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
coversion frm sym to double is not possible?plz help
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!