Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

A general question in mathematics

조회 수: 1 (최근 30일)
jafar
jafar 2013년 7월 24일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi
Please help me do the following math operation and apply every array of a vector (x) on it:
x=randn(1,1000);
diff(log(quad(@(w)exp(ixw-abs(w)^2,-500,500))) {I use quad because the function is not closed formula)
in the other words i want to integral from this function [ixw-abs(w)^2]dw
The phrase is derived in terms of X,
after that put logarithm on it(Ln),
next differentiation with respect to x,
then placed array of vector x individually to the result,
best regards

답변 (1개)

Andrew Reibold
Andrew Reibold 2013년 7월 24일
Q = quad(FUN,A,B) tries to approximate the integral of scalar-valued
function FUN from A to B to within an error of 1.e-6 using recursive
adaptive Simpson quadrature.
Example: Q = quad(@(x)myfun2(x,5),0,2);
Where are your A and B Parameters?
Are -500 and 500 supposed to be A and B? You have them trapped inside of exp(ixw-abs(w)^2,-500,500) so that means you don't have enough input arguments

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by