filling a vector for a given interval

hi guys,
i am working on the 1D heat equation and im trying to make my initial conditions take the value 1 from l/4<x<3*l*/4 but when i do that it doesn't work as i want
if someone could help me.
thank you.

댓글 수: 3

Geoff Hayes
Geoff Hayes 2019년 4월 12일
krayem - please clarify what you mean by that it doesn't work as i want. Are you observing an error? Or are you just not getting the result that you expect?
krayem youssef
krayem youssef 2019년 4월 12일
the initial condition works from 0 to 1/4 and not from 1/4 to 3/4
Geoff Hayes
Geoff Hayes 2019년 4월 12일
krayem - what do you mean by that it doesn't work from 1/4 to 3/4? You get the wrong result or it doesn't iterate over these values?

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Heat and Mass Transfer에 대해 자세히 알아보기

질문:

2019년 4월 11일

댓글:

2019년 4월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by