integration error
이전 댓글 표시
I am trying to use integration with MATALB. initially it was showing error as Conversion to double from sym is not possible
here is my code.. please assist
a=3.6;
N0=-174;
fq=3.5*10^9;
c=3*10^8;
R=100;
G0= (c/(4*pi*fq))^2;
P=1;
Te= abs((P*G0)/(N0*(R^a)));
syms x;
t=(.1:.1:.5);
for p=.1:.1:.5
S=abs(((x-sqrt(3))^-a )+((x+sqrt(3))^-a )+ 2*(((x-sqrt(3/2))^2 + (9/4)))^(-a/2)+ 2*(((x+sqrt(3/2))^2 + (9/4)))^(-a/2))
k=1+(Te*S);
f1=(x*log2(1+(Te/x^a*(k))));
q=(int(f1,0,1));
f2=x*t*log2(1+ (Te/x^a));
w=(int(f2,0,1));
f3=x*(1-t)*log2(1+ (Te/x^a));
e=(int(f3,0,1));
C= 20*pi*10^6*(q+(w/3)+(e/3));
plot(t,double(C));
hold on ;
grid on ;
end
댓글 수: 4
Ashesh
2012년 3월 29일
Jan
2012년 3월 29일
Please format your code as explained in the "Markup help" link on this page.
Walter Roberson
2012년 3월 29일
This is not the same code as you emailed to me, and when you emailed me you did not indicate what problem you had observed. Unless I was supposed to guess which program had generated that AutoSave (.asv) file and figure out how to restore it to see an error message?
Ashesh
2012년 3월 30일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!