Trouble using integral function
Afficher commentaires plus anciens
I am facing errors in integrating the follow ng function.
xtemp=@(lambda)(((h*c)/(lambda*BoltzmnCst*Ts))^2)/(exp(((h*c)/(lambda*BoltzmnCst*Ts)))-1)
xtempintg= integral(xtemp,0,lambdabg)
Everything excep lambda is a constant and defined.
Following is the error I am getting:
Error using /
Matrix dimensions must agree.
Error in My_Code>@(lambda)(((h*c)/(lambda*BoltzmnCst*Ts))^2)/(exp(((h*c)/(lambda*BoltzmnCst*Ts)))-1)
Error in integralCalc/iterateScalarValued (line 314)
fx = FUN(t);
Error in integralCalc/vadapt (line 132)
[q,errbnd] = iterateScalarValued(u,tinterval,pathlen);
Error in integralCalc (line 75)
[q,errbnd] = vadapt(@AtoBInvTransform,interval);
Error in integral (line 88)
Q = integralCalc(fun,a,b,opstruct);
Error in My_Code (line 46)
xtempintg= integral(xtemp,0,lambdabg)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB 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!