How can I solve the following integral equation
Show older comments
How can I solve the following integral equation in MATLAB numerically:
where:
Answers (1)
Ameer Hamza
on 20 Apr 2020
Edited: Ameer Hamza
on 20 Apr 2020
Try this
A = @(t) t.^2; % equation of A w.r.t. t. A(t) = t^2 for example
% f as function of t and w
f = @(t,w) A(t).*cos(w.*t) + integral(@(tau) w.*A(tau).*sin(w.*tau), 0, t);
Evaluate it like this
t = 10;
w = 2;
y = f(t,w);
>> y
y =
8.8335
2 Comments
parham kianian
on 21 Apr 2020
Ameer Hamza
on 21 Apr 2020
Can you share the expression for f(t)?
Categories
Find more on Numerical Integration and Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!