close all;
clc;
%% Solve the 1st order differential equation dy/dx=e^y-2
%% dy/dx can be represented using 'D' or diff
%% y(1)=1 is the initial condition
y=dsolve('Dy=exp(y)-2','x')
%% Plot the expression at diffrent value of x
%% ezplot-> y is a function with respect to x
%% only plot --> x and y has some values
%%ezplot(y,[0 5])
clc;
%% Solve the 1st order differential equation dy/dx=e^y-2
%% dy/dx can be represented using 'D' or diff
%% y(1)=1 is the initial condition
y=dsolve('Dy=exp(y)-2','x')
%% Plot the expression at diffrent value of x
%% ezplot-> y is a function with respect to x
%% only plot --> x and y has some values
%%ezplot(y,[0 5])
No comments:
Post a Comment