How to write ordinary differantial equations ?bvb

조회 수: 21 (최근 30일)
Busra Yuksel
Busra Yuksel 2022년 6월 15일
답변: Busra Yuksel 2022년 6월 15일
F=@(x); dy=@(x,y); x0=; xn=; y= ;h= ;fprintf(‘x\t\t y (Euler)\t y(analytical)\n’); fprintf(‘%f\t %f\t %f\n’,x0,y,f(x0); for x=x0:h:xn-h.. y=y+dy(x,y)*h; x=x+h; fprintf(‘%f\t %f\t %f\n’,x,y,f(x)); end

채택된 답변

Busra Yuksel
Busra Yuksel 2022년 6월 15일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by