MATLAB: Solving Error with Huge Integral Calculs

  • MATLAB
  • Thread starter Sabine
  • Start date
  • Tags
    Matlab
  • #1
43
0
I am asking MATLAB to run a program I created. This program requires a huge calcul of integrals. If I reduce the number of integrals (which I can't if I want to study the real case) the program gives me a correct result. But if I keep it with all his calculs (nearly 1200 integrals), I have the answer :" Error, (in csgn) integer too large in context ". Why is that and how can I solve it?

thx in advance
 
  • #2
I am asking MATLAB to run a program I created. This program requires a huge calcul of integrals. If I reduce the number of integrals (which I can't if I want to study the real case) the program gives me a correct result. But if I keep it with all his calculs (nearly 1200 integrals), I have the answer :" Error, (in csgn) integer too large in context ". Why is that and how can I solve it?

thx in advance

I don't know this exact error, but you should set a breakpoint, or toggle the "stop if error" breakpoint option. You'll be able to figure out exactly where (as in which line) your script is breaking down. More MATLAB M-File debugging tips:
http://www.mathworks.com/support/tech-notes/1200/1207.html

(BTW, you may want to run the intmax command: returns the maximum integer size on your system, which may or may not tell you why the command is failing).
 
  • #3
Hi Sabine,

I don't understand your PM. If you don't know how to set breakpoints, or set the "stop if error" option, see Section 7 in the link above.
 

Suggested for: MATLAB: Solving Error with Huge Integral Calculs

Replies
2
Views
1K
Replies
4
Views
486
Replies
4
Views
911
Replies
6
Views
728
Replies
5
Views
1K
Replies
1
Views
655
Replies
3
Views
2K
Replies
32
Views
1K
Replies
2
Views
964
Back
Top