Answered

How to do a double integral on a function with 3 variables, so the answer is dependent on the 3 variable

Not sure what your problem with INTEGRAL2 was, but you're using matrix multiplication in your definition of FUN, which probably ...

How to do a double integral on a function with 3 variables, so the answer is dependent on the 3 variable

Not sure what your problem with INTEGRAL2 was, but you're using matrix multiplication in your definition of FUN, which probably ...

meer dan 6 jaar ago | 0

| accepted

Answered

How to do a double integration of a multivariate normal probability density function

If you have the statistic toolbox, you'll want to use MVNCDF for a multivariate normal distribution. However, in case not every...

How to do a double integration of a multivariate normal probability density function

If you have the statistic toolbox, you'll want to use MVNCDF for a multivariate normal distribution. However, in case not every...

meer dan 6 jaar ago | 1

| accepted

Answered

Speeding up integral3 command is taking too long to execute

These two articles might help. http://blogs.mathworks.com/loren/category/integration/ Try different variable orderings. M...

Speeding up integral3 command is taking too long to execute

These two articles might help. http://blogs.mathworks.com/loren/category/integration/ Try different variable orderings. M...

meer dan 6 jaar ago | 0

Answered

Integrating small valued functions

Could you try this and tell me what values of m, s, and n lead to unexpected results? I added some waypoints near the center of...

Integrating small valued functions

Could you try this and tell me what values of m, s, and n lead to unexpected results? I added some waypoints near the center of...

meer dan 6 jaar ago | 1

| accepted

Answered

HYDRODYNAMIC FORCES (SIMULINK/MATLAB)

I don't seem to be having any difficulty integrating this problem with the parameter values that I make up. What are the values...

HYDRODYNAMIC FORCES (SIMULINK/MATLAB)

I don't seem to be having any difficulty integrating this problem with the parameter values that I make up. What are the values...

meer dan 6 jaar ago | 0

Answered

how to find volume using integral

You can't do that with INTEGRAL. The integral functions are for integrating functions, not data. A set of coordinates in 3-D s...

how to find volume using integral

You can't do that with INTEGRAL. The integral functions are for integrating functions, not data. A set of coordinates in 3-D s...

meer dan 6 jaar ago | 1

Answered

4D integration numerical evaluation

Well, you can try integralN from the file exchange. I wrote that little ditty just so I wouldn't have to keep explaining the nu...

4D integration numerical evaluation

Well, you can try integralN from the file exchange. I wrote that little ditty just so I wouldn't have to keep explaining the nu...

meer dan 6 jaar ago | 2

| accepted

Answered

How to do a Numerical Integration of an Array Valued Function Handle with an Array as a limit?

I'm not sure it helps anything, but you don't need global variables for that. Instead, make f a function of both t and theta_s,...

How to do a Numerical Integration of an Array Valued Function Handle with an Array as a limit?

I'm not sure it helps anything, but you don't need global variables for that. Instead, make f a function of both t and theta_s,...

meer dan 6 jaar ago | 0

| accepted

Answered

I'm trying to do numerical integration on Matlab, but keep getting error

If you were to evaluate f(g(x),b), then MATLAB would first calculate y = g(x) and then evaluate f(y,b). Your main problem here ...

I'm trying to do numerical integration on Matlab, but keep getting error

If you were to evaluate f(g(x),b), then MATLAB would first calculate y = g(x) and then evaluate f(y,b). Your main problem here ...

meer dan 6 jaar ago | 1

| accepted

Answered

Symbolic integration vs numerical integration

It's likely to be quite slow, but it may be possible to take this on numerically. For performance reasons MATLAB insists that i...

Symbolic integration vs numerical integration

It's likely to be quite slow, but it may be possible to take this on numerically. For performance reasons MATLAB insists that i...

meer dan 6 jaar ago | 2

| accepted

Answered

How do I refine my integration?

I don't disagree with John at all, but here are some things that come to mind that you might do to either lend credence to, or t...

How do I refine my integration?

I don't disagree with John at all, but here are some things that come to mind that you might do to either lend credence to, or t...

meer dan 6 jaar ago | 0

| accepted

Answered

Matlab gave wrong answer while Mathematica gave true answers, why?

I don't see where you checked any of the answers in a valid way. To check MATLAB's answer, you severely rounded it first and th...

Matlab gave wrong answer while Mathematica gave true answers, why?

I don't see where you checked any of the answers in a valid way. To check MATLAB's answer, you severely rounded it first and th...

meer dan 6 jaar ago | 2

| accepted

Answered

How to do numerical multiple integral (more than triple) by using matlab?

You can use INT if your problem can be handled symbolically. If not, numerical integration of a 5-fold integral in MATLAB requi...

How to do numerical multiple integral (more than triple) by using matlab?

You can use INT if your problem can be handled symbolically. If not, numerical integration of a 5-fold integral in MATLAB requi...

bijna 7 jaar ago | 4

| accepted

Answered

Questions with integral2 , Double, Syms and Dot calucations.

The problem is that out1 is a symbolic "thing", not a MATLAB "thing". That's what the error message is really telling you. You...

Questions with integral2 , Double, Syms and Dot calucations.

The problem is that out1 is a symbolic "thing", not a MATLAB "thing". That's what the error message is really telling you. You...

bijna 7 jaar ago | 2

| accepted

Answered

how to read a table created in matlab by taking integral calculations ?

I think what you might be missing is that FIND is returning an index, so the eta value you seek is eta(F12_p). But I didn't rea...

how to read a table created in matlab by taking integral calculations ?

I think what you might be missing is that FIND is returning an index, so the eta value you seek is eta(F12_p). But I didn't rea...

bijna 7 jaar ago | 0

| accepted

Answered

Definite integral in (embedded) Matlab function, with passing additional parameters to the integrand

If you don't need to generate code for your model, I think you can use your second approach, but you need to fix a few unrelated...

Definite integral in (embedded) Matlab function, with passing additional parameters to the integrand

If you don't need to generate code for your model, I think you can use your second approach, but you need to fix a few unrelated...

bijna 7 jaar ago | 2

| accepted

Answered

How to integrate over a bivariate gaussian copula using copulapdf?

Before you call integral2, make sure your JointDensity2 function satisfies the vectorization requirement. x = rand(2,3); % ...

How to integrate over a bivariate gaussian copula using copulapdf?

Before you call integral2, make sure your JointDensity2 function satisfies the vectorization requirement. x = rand(2,3); % ...

bijna 7 jaar ago | 0

Answered

Problem with quad2d integration

Is there a typo somewhere above? Here's a script I called "doit.m": format short g fun = @(b,a) (b ./a).^19.* exp(-(43...

Problem with quad2d integration

Is there a typo somewhere above? Here's a script I called "doit.m": format short g fun = @(b,a) (b ./a).^19.* exp(-(43...

bijna 7 jaar ago | 1

Answered

matlab triple integral conical gravity

Numerical stuff removed since a symbolic answer was needed.

matlab triple integral conical gravity

Numerical stuff removed since a symbolic answer was needed.

bijna 7 jaar ago | 0

| accepted

Answered

How to remove singularity of quadl in which integrand is hankel function

QUADL is obsolete. You haven't supplied any values for k0 and L. Please provide just one value for each of the following input...

How to remove singularity of quadl in which integrand is hankel function

QUADL is obsolete. You haven't supplied any values for k0 and L. Please provide just one value for each of the following input...

bijna 7 jaar ago | 1

| accepted

Answered

numerically integrate multidimensional function along one dimension.

I will assume here that your function f(x,y,z) is written so that x, y, and z can be any size (vectors, matrices, N-D, whatever)...

numerically integrate multidimensional function along one dimension.

I will assume here that your function f(x,y,z) is written so that x, y, and z can be any size (vectors, matrices, N-D, whatever)...

bijna 7 jaar ago | 0

Answered

Embedded MATLAB Function and Anonymous function

If you want to call an interpreted MATLAB function from a MATLAB function block, do not try to create the function inside the bl...

Embedded MATLAB Function and Anonymous function

If you want to call an interpreted MATLAB function from a MATLAB function block, do not try to create the function inside the bl...

bijna 7 jaar ago | 1

Answered

Error using .* Matrix dimensions must agree.

The size of af is the image size. The size of c is 256-by-256. I'm guessing your image is not 256-by-256. If not, what were y...

Error using .* Matrix dimensions must agree.

The size of af is the image size. The size of c is 256-by-256. I'm guessing your image is not 256-by-256. If not, what were y...

bijna 7 jaar ago | 0

| accepted

Answered

Help solving for and/or while loop.

In my view this is mostly a software design issue. You probably don't see how to do it because of the way your code is organized...

Help solving for and/or while loop.

In my view this is mostly a software design issue. You probably don't see how to do it because of the way your code is organized...

bijna 7 jaar ago | 0

| accepted

Answered

Numerical Integration Is my approach correct?

Well, on first reading, I just wanted to make what you wrote work, and you will find some help below on that, but on the second ...

Numerical Integration Is my approach correct?

Well, on first reading, I just wanted to make what you wrote work, and you will find some help below on that, but on the second ...

bijna 7 jaar ago | 0

Answered

How to integrate using while loop?

I'm assuming this is homework. Let me give you a couple of hints. 1. You can make a function like this q = @(b)integral...

How to integrate using while loop?

I'm assuming this is homework. Let me give you a couple of hints. 1. You can make a function like this q = @(b)integral...

bijna 7 jaar ago | 2

| accepted

Answered

How to get an output off a vectorized function? Error : Subscript indices must either be real positive integers or logicals

You have not defined Mxz as a function, rather as an array, so Mxz(0.2) asks for the 0.2th element of the array. The syntax you...

How to get an output off a vectorized function? Error : Subscript indices must either be real positive integers or logicals

You have not defined Mxz as a function, rather as an array, so Mxz(0.2) asks for the 0.2th element of the array. The syntax you...

bijna 7 jaar ago | 1

Answered

Not enough input arguments.

I try not to do too many homework problems here because in a former life I was a college professor, and I think it's bad for the...

Not enough input arguments.

I try not to do too many homework problems here because in a former life I was a college professor, and I think it's bad for the...

bijna 7 jaar ago | 3

| accepted

Answered

why I receive message like this"Warning: Function ishermitian has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict" in Matlab 2014

MATLAB added a new built-in function called ishermitian in 2014a. Apparently you have one of your own on the path. Type "which...

why I receive message like this"Warning: Function ishermitian has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict" in Matlab 2014

MATLAB added a new built-in function called ishermitian in 2014a. Apparently you have one of your own on the path. Type "which...

bijna 7 jaar ago | 2

| accepted

Answered

Why Embedded coder generates include to standard C library (<stddef.h> and <string.h>)? How to remove theese includes?

I know next to nothing about it, but perhaps use the CRL (Code Replacement Library) to replace the standard memset with one that...

Why Embedded coder generates include to standard C library (<stddef.h> and <string.h>)? How to remove theese includes?

I know next to nothing about it, but perhaps use the CRL (Code Replacement Library) to replace the standard memset with one that...

bijna 7 jaar ago | 1