# Integration in matlab

1. Feb 12, 2013

### quin

Dear users
I want to get a triple integral from "X,y,z" in matlab like this: triplequad(f,0,1,0,1,0,1) but because my "f" is very very complicated function of x,y,z , it can not do it, so I want to convert my integral to a summation and istead of my integral limits I want to make sum in a way that each of x,y,z vary from 0 to 1 by steps of 0.01
So would you mind tell me what should I write in matlab?

thanks

2. Feb 12, 2013

### Staff: Mentor

3. Feb 12, 2013

### quin

thank you but my matlab is 2011
let me explain you that infact why I want to change my triplequad to sigma. (summation)
I have a 12*12 symbolic matrix in terms of x,y,z ,I must first find its eigenvalues and when I found 12 terms, I must do some aljebraic operations on them and mix them into one sentence and after that Integrate over that finall sentence in terms x y z
but the 12*12 matrix is so complicated and matlab couldnt find the 12 eigenvalues. so I want to put my matrix and all of aljabraic operations in 3 " "for" loops" and during loops I sum that final sentence instead of integrating
In this way the 12*12 matrix will be numeric and can find its eigenvalues but I wont have any x , y,z which I must integrate over them instead with those for loops I must the expression and cannot integrate.
I hope that yoU understand what I meant
thank you

4. Feb 12, 2013

### Staff: Mentor

This really sounds like a project that you'll have to research and program yourself into matlab. I looked up matlab limits and it should be able to handle a 12x12 matrix.

http://www.mathworks.com/support/solutions/en/data/1-IHYHFZ/index.html

Perhaps if you break things up so the matrix isn't so complicated.

If this is a project we can only help with hints, we can't do the work for you.

By sentence I assume you mean equation, right?

Perhaps if you describe your problem in terms of discreet steps instead in paragraph form. Someone will be better able to help. What you've said so far is very generic and hard to figure out what you're trying to accomplish.

Last edited: Feb 12, 2013