Integrating a Complicated Function in MATLAB with Triplequad

  • Context: MATLAB 
  • Thread starter Thread starter quin
  • Start date Start date
  • Tags Tags
    Integration Matlab
Click For Summary

Discussion Overview

The discussion revolves around the challenge of computing a triple integral in MATLAB using the function triplequad for a complicated function of three variables (x, y, z). The user seeks to convert the integral into a summation due to difficulties in handling the complexity of the function and the associated symbolic matrix.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One user requests assistance in converting a triple integral into a summation in MATLAB due to the complexity of the function involved.
  • Another participant inquires about the specific function and MATLAB version being used, indicating the importance of these details for providing help.
  • The original poster explains that they are working with a 12x12 symbolic matrix and need to find its eigenvalues, which is complicated for MATLAB to handle directly.
  • The user proposes using nested "for" loops to sum the results instead of integrating, suggesting a shift from symbolic to numeric computation.
  • One participant suggests that the user may need to research and program the solution themselves, indicating that MATLAB should be capable of handling a 12x12 matrix if approached correctly.
  • There is a request for clarification on the user's problem, emphasizing the need for a more structured description to facilitate assistance.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to solve the user's problem, and multiple perspectives on how to handle the complexity of the matrix and integration remain present.

Contextual Notes

The discussion highlights limitations related to the complexity of symbolic computations in MATLAB and the potential need for breaking down the problem into simpler components. There is also an indication that the user's description may lack sufficient detail for others to provide targeted assistance.

quin
Messages
50
Reaction score
0
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
 
Physics news on Phys.org
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 couldn't 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 won't 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
 
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:

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
10
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K