integration error while converting a variable from syms to double
Afficher commentaires plus anciens
Hi, I am trying to use integration with MATLAB but its showing some typical errors. please assist
error:
??? Error using ==> reshape
To RESHAPE the number of elements must not change.
Error in ==> sym.maple at 94
result = reshape(result,size(varargin{3}));
Error in ==> sym.int at 51
r = reshape(maple('map','int',f(:),[x.s '=(' a.s ')..(' b.s ')']),size(f));
Error in ==> capacity2 at 24
my code
close all;
clear all;
a=3.6;
N0=-174;
f=3.5*10^9;
c=3*10^8;
R=100;
G0= (c/(4*pi*f))^2;
P=1;
Te= (P*G0)/(N0*(R^a));
p=.1:.1:1;
syms x;
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));
f1=x/log2(1+(Te/((x^a)*(1+(Te*S)))));
a1=int(f1,x,0,p);
f2=(4*x)/log2(1+(Te/x^a));
b1=int(f2,x,p,1);
I=a1+b1;
C=(20*10^6)/(2*pi*I);
plot(t,double(C));
hold on ;
grid on;
thanks
Réponses (0)
Catégories
En savoir plus sur Calculus dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!