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

1 Ansicht (letzte 30 Tage)
Suhayl Mlb
Suhayl Mlb am 4 Jul. 2020
Kommentiert: darova am 5 Jul. 2020
Can anyone tell me how to compute this on matlab? show the codes in step etc...
  2 Kommentare
Suhayl Mlb
Suhayl Mlb am 4 Jul. 2020
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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

darova
darova am 4 Jul. 2020
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 Kommentare
Suhayl Mlb
Suhayl Mlb am 4 Jul. 2020
I tried it but i got this:
darova
darova am 5 Jul. 2020
I only helped you with f(t) function. The rest is up to you
Read help: ode45

Melden Sie sich an, um zu kommentieren.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by