MATLAB Answers

code to find difference between dynamical systems

1 view (last 30 days)
Samson
Samson on 25 Jul 2019
Commented: Samson on 7 Aug 2019
how do i write the code to find the difference of two dynamical equation please. For instance i need to find the change or delta between x (1) and x (4) see my equation below
function dx = attractor (x, a, b, c, sigma, beta, rho, g)
dx = [
- (x (2) + x (3));
x (1) + a * x (2);
b + x (3) * (x (1) -c);
sigma * (x (5) - x (4)) - g * (x (4) -x (1));
x (4) * (rho-x (6)) - x (5);
x (4) * x (5) -beta * x (6);
end
  2 Comments
Samson
Samson on 7 Aug 2019
hello, thank you for this answer. I needed to take the difference over time and space. I have gotten it

Sign in to comment.

Answers (0)

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by