How to solve this fourier series/ boundary value on matlab?
1 次查看(过去 30 天)
显示 更早的评论
Can anyone tell me how to compute this on matlab? show the codes in step etc...
回答(1 个)
darova
2020-7-4
here is a start
function res = f(t)
if t < 1
res = t;
elseif t < 2
res = 1;
else
res = 3-t;
end
end
and use ode45 to solve it
3 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!