how can I fix this matlab integration error?

here is the code I am trying to get it to work.

h= 6.62e-34;

t= 5800;

k= 1.38e-23;

f=484;

fun = @(x)(x^2./exp(h.*f/k.*t)-1).*10^-12;

q= integral(fun,484,inf)

I keep getting errors below. Please help.

Error in integral (line 88) Q = integralCalc(fun,a,b,opstruct);

Error in Untitled (line 2) q= integral(fun,484,inf)



Read more here: https://stackoverflow.com/questions/64409686/how-can-i-fix-this-matlab-integration-error

Content Attribution

This content was originally published by Feyza Boyun at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: