- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
A Step-by-Step Guide to Solve First-Order ODEs in MATLAB
In this video, you will learn how to use the ode45 command of MATLAB to solve a first-order ordinary differential equation (ODE). An illustrative example of an one-dimensional first-order ODE is presented to demonstrate the solution.
The ode45 is a function that uses a version of the Runge-Kutta method to solve ODEs. The "45" in the function name refers to the fact that the method uses 4th-order and 5th-order accurate steps to solve the ODE.
Video Sections:
0:00 Introduction
1:12 Example (one initial condition)
5:25 Example (various initial conditions)
%-------- MATLAB CODE ---------%
%% Clear and close
clc; clear; close all;
%% dx/dt = -t^4*x + x, where t = [0,5] and x(0) = 4
% define the function f
f = @(t,x)(-t^4*x + x);
% tSpan
tspan = [0,5];
% x initial condition
x0 = 4;
% multiple initial condition
%x0 = -5:5;
% ode45 command
[t,x] = ode45(f,tspan,x0);
% plot
plot(t,x)
xlabel('t');
ylabel('x');
#MATLAB #calculus #coding
Видео A Step-by-Step Guide to Solve First-Order ODEs in MATLAB канала PhD Jorge Ricardo Jr
The ode45 is a function that uses a version of the Runge-Kutta method to solve ODEs. The "45" in the function name refers to the fact that the method uses 4th-order and 5th-order accurate steps to solve the ODE.
Video Sections:
0:00 Introduction
1:12 Example (one initial condition)
5:25 Example (various initial conditions)
%-------- MATLAB CODE ---------%
%% Clear and close
clc; clear; close all;
%% dx/dt = -t^4*x + x, where t = [0,5] and x(0) = 4
% define the function f
f = @(t,x)(-t^4*x + x);
% tSpan
tspan = [0,5];
% x initial condition
x0 = 4;
% multiple initial condition
%x0 = -5:5;
% ode45 command
[t,x] = ode45(f,tspan,x0);
% plot
plot(t,x)
xlabel('t');
ylabel('x');
#MATLAB #calculus #coding
Видео A Step-by-Step Guide to Solve First-Order ODEs in MATLAB канала PhD Jorge Ricardo Jr
matlab ode45 ODE ordinary differential equation differential equations differential equation runge kutta method derivative matlab ode45 how to solve ode in matlab first order ode calculus ordinary differential equations differential equation matlab how to solve ODE in Matlab matlab tutorial matlab course matlab tutorial for beginners differential equations matlab matlab first order differential equation
Комментарии отсутствуют
Информация о видео
11 января 2023 г. 1:10:19
00:06:57
Другие видео канала




















