Calculating integral but weird result :S
Show older comments
Hi,
I am trying to calculate this integral.
sigmaZ= -0.1464*eye(4);
f = @(x)(arrayfun(@(x)(1./(det(sigmaZ./sin(x).^2 + eye(4)))),x))
out = (1/pi)*quad(f,0,pi)
but it gives this result 3e+10. It must not have been that high. Is my integral wrong?
Thanks:)
Accepted Answer
More Answers (1)
Jan
on 30 Jan 2013
0 votes
Is there any chance that we can guess what you want to calculate?
1 Comment
@Serhat: All you have shown us is the code and you explain, that it could be wrong. But we cannot suggest an improvement, when you do not explain, which equation this code should solve. And if this is still not clear, a simplified version:
I have c = a + b, where a is 2 and b is 3. I get the result 5, but I want 6. Where is the error?
Without a magic crystal ball it is impossible to find an answer.
Categories
Find more on Communications Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!