na-lab-euler

code

You are now following this Submission

f=@(t,y)(-y+2*cos(t));
t0=input("enter the initial value");
y0=input("the value of function at t0");
b=input("enter at which value is to be evaluated if interval given take ");
h=input("input step size/mesh length");
n=(b-t0)/h;
for i=1:n
y1=y0+h*f(t0,y0);
t0=t0+h;
y0=y1;
end
disp(y1);

Cite As

Akshay (2026). na-lab-euler (https://in.mathworks.com/matlabcentral/fileexchange/120533-na-lab-euler), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0