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...
  2 个评论
Suhayl Mlb
Suhayl Mlb 2020-7-4
Hi, Thanks for replying...but i don't know too much on matlab...never solved any fourier series on it... If possible can you write the steps to execute it? Thanks

请先登录,再进行评论。

回答(1 个)

darova
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

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by