How to solve this fourier series/ boundary value on matlab?

조회 수: 1 (최근 30일)
Suhayl Mlb
Suhayl Mlb 2020년 7월 4일
댓글: darova 2020년 7월 5일
Can anyone tell me how to compute this on matlab? show the codes in step etc...
  댓글 수: 2
darova
darova 2020년 7월 4일
use ode45
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
  댓글 수: 3
Suhayl Mlb
Suhayl Mlb 2020년 7월 4일
I tried it but i got this:
darova
darova 2020년 7월 5일
I only helped you with f(t) function. The rest is up to you
Read help: ode45

댓글을 달려면 로그인하십시오.

카테고리

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