필터 지우기
필터 지우기

define a function in terms of an integral with variable limits

조회 수: 1 (최근 30일)
I have defined a function of two variables, say f(u,t), and would like to define a function g(t)=@(t)integral(f(u,t),u,[t-1,t]). How would I do this?

채택된 답변

Torsten
Torsten 2023년 1월 31일
편집: Torsten 2023년 1월 31일
f1=@(t)3+2*cos(2*pi*t);
f2=@(t)4-3*sin(2*pi*t);
ff=@(t)-f1(t)-f2(t);
gg=@(u,t)integral(ff,u,t);
ww = @(u,t)f1(t).*exp(gg(u,t));
www=@(t)integral(@(u)ww(u,t),t-1,t,'ArrayValued',1);
www(2)
ans = 0.5163

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 External Language Interfaces에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by