Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Integration in matlab

  1. Feb 12, 2013 #1
    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?

  2. jcsd
  3. Feb 12, 2013 #2


    Staff: Mentor

  4. Feb 12, 2013 #3
    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
  5. Feb 12, 2013 #4


    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.


    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
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Integration matlab Date
Matlab Solving equation with integration using MATLAB Aug 4, 2017
I don't get a reasonable output for my code? Mar 18, 2017
Matlab Finite difference numerical integration or ode45? May 17, 2016
Matlab Numerical integration May 7, 2016
Mathematica Numerical vs. Monte-Carlo Simulations May 2, 2016