Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to compute a numerical integration which still need a symbolic limit as a definition?
조회 수: 1 (최근 30일)
이전 댓글 표시
I need to utilize a numerical integration built-in function in Matlab. However, I still need to maintain the symbolic limit as a definition. And then, later, I'll take another numerical integral function over that symbolic variable. For example, I want to compute: f = @(x) a.*x; g = @(a) a.^3; quad(g.*quad(f,a,1),0,1)
Can you help me find any assumption to make the code works? Thank You.
댓글 수: 0
답변 (3개)
Mischa Kim
2014년 4월 19일
Octavina, try
syms a
f = @(x) a.*x;
g = @(a) a.^3;
intgf = int(g*int(f,a,1),0,1)
댓글 수: 0
Andrei Bobrov
2014년 4월 22일
편집: Andrei Bobrov
2014년 4월 22일
f = @(x)sym('a').*x;
f1 = matlabFunction(int(f,sym('a'),1));
g = @(a)a.^3;
out = quad(@(a)f1(a).*g(a),0,1);
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!