How to Plot Phase Plane and Nullclines in MatLab?Piecewise function plot in MatlabHow to plot not only the result but also the derivatives of an ode using the ode45 function in Matlab?Matlab, how to know time step size in the plot or how can I get the output of time step size?Plot phase plane for system of differential equationsSolving an ODE in the complex plane using a MatLab ODE solversolve a system of 8 coupled ODEsTwo couple equation first order Runge Kutta Matlab troubles?Population dynamics with one or two species - phase plotPhase plot of a system of differential equations using MatlabCircle and spiral phase portaits
How dangerous is XSS
how do we prove that a sum of two periods is still a period?
Expand and Contract
One verb to replace 'be a member of' a club
How does a dynamic QR code work?
Do Iron Man suits sport waste management systems?
Ambiguity in the definition of entropy
Where would I need my direct neural interface to be implanted?
Is this draw by repetition?
Avoiding the "not like other girls" trope?
How exploitable/balanced is this homebrew spell: Spell Permanency?
Using "tail" to follow a file without displaying the most recent lines
How seriously should I take size and weight limits of hand luggage?
How to show a landlord what we have in savings?
Does Dispel Magic work on Tiny Hut?
GFCI outlets - can they be repaired? Are they really needed at the end of a circuit?
Can a virus destroy the BIOS of a modern computer?
How to travel to Japan while expressing milk?
Is it a bad idea to plug the other end of ESD strap to wall ground?
What do you call someone who asks many questions?
ssTTsSTtRrriinInnnnNNNIiinngg
"the same as" in a sentence
Venezuelan girlfriend wants to travel the USA to be with me. What is the process?
Notepad++ delete until colon for every line with replace all
How to Plot Phase Plane and Nullclines in MatLab?
Piecewise function plot in MatlabHow to plot not only the result but also the derivatives of an ode using the ode45 function in Matlab?Matlab, how to know time step size in the plot or how can I get the output of time step size?Plot phase plane for system of differential equationsSolving an ODE in the complex plane using a MatLab ODE solversolve a system of 8 coupled ODEsTwo couple equation first order Runge Kutta Matlab troubles?Population dynamics with one or two species - phase plotPhase plot of a system of differential equations using MatlabCircle and spiral phase portaits
$begingroup$
I am trying to reproduce an example from the book "Nonlinear Dynamics and Chaos" by Strogatz - Example 5.2.2.
Given are:
$fracdXdt = X + Y$ and $fracdYdt = 4X - 2Y$ with initial conditions $(2,-3)$.
Solving the equations is not the problem, I just don't know how to plot the phase plane and the nullclines (where $fracdXdt = 0$ and $fracdYdt = 0$) properly in MatLab.
The outcome should be:
Fig 5.2.2
For the phase plane, I tried:
function solve
[t,x]=ode45(@dxdt1,[-10 10],[2 -3]);
plot(x(:,1),x(:,2))
plot(x(:,2),x(:,1))
end
function d=dxdt1(t,x)
d = [x(1) + x(2); 4 * x(1) - 2 * x(2)];
end
However, I only get a line.
linear-algebra matlab
New contributor
$endgroup$
add a comment |
$begingroup$
I am trying to reproduce an example from the book "Nonlinear Dynamics and Chaos" by Strogatz - Example 5.2.2.
Given are:
$fracdXdt = X + Y$ and $fracdYdt = 4X - 2Y$ with initial conditions $(2,-3)$.
Solving the equations is not the problem, I just don't know how to plot the phase plane and the nullclines (where $fracdXdt = 0$ and $fracdYdt = 0$) properly in MatLab.
The outcome should be:
Fig 5.2.2
For the phase plane, I tried:
function solve
[t,x]=ode45(@dxdt1,[-10 10],[2 -3]);
plot(x(:,1),x(:,2))
plot(x(:,2),x(:,1))
end
function d=dxdt1(t,x)
d = [x(1) + x(2); 4 * x(1) - 2 * x(2)];
end
However, I only get a line.
linear-algebra matlab
New contributor
$endgroup$
$begingroup$
Yes, I'd like to useplot
if possible rather thanquiver
and I still have no idea how to plot the nullclines properly.
$endgroup$
– cz5
Mar 28 at 17:26
add a comment |
$begingroup$
I am trying to reproduce an example from the book "Nonlinear Dynamics and Chaos" by Strogatz - Example 5.2.2.
Given are:
$fracdXdt = X + Y$ and $fracdYdt = 4X - 2Y$ with initial conditions $(2,-3)$.
Solving the equations is not the problem, I just don't know how to plot the phase plane and the nullclines (where $fracdXdt = 0$ and $fracdYdt = 0$) properly in MatLab.
The outcome should be:
Fig 5.2.2
For the phase plane, I tried:
function solve
[t,x]=ode45(@dxdt1,[-10 10],[2 -3]);
plot(x(:,1),x(:,2))
plot(x(:,2),x(:,1))
end
function d=dxdt1(t,x)
d = [x(1) + x(2); 4 * x(1) - 2 * x(2)];
end
However, I only get a line.
linear-algebra matlab
New contributor
$endgroup$
I am trying to reproduce an example from the book "Nonlinear Dynamics and Chaos" by Strogatz - Example 5.2.2.
Given are:
$fracdXdt = X + Y$ and $fracdYdt = 4X - 2Y$ with initial conditions $(2,-3)$.
Solving the equations is not the problem, I just don't know how to plot the phase plane and the nullclines (where $fracdXdt = 0$ and $fracdYdt = 0$) properly in MatLab.
The outcome should be:
Fig 5.2.2
For the phase plane, I tried:
function solve
[t,x]=ode45(@dxdt1,[-10 10],[2 -3]);
plot(x(:,1),x(:,2))
plot(x(:,2),x(:,1))
end
function d=dxdt1(t,x)
d = [x(1) + x(2); 4 * x(1) - 2 * x(2)];
end
However, I only get a line.
linear-algebra matlab
linear-algebra matlab
New contributor
New contributor
New contributor
asked Mar 28 at 16:14
cz5cz5
1
1
New contributor
New contributor
$begingroup$
Yes, I'd like to useplot
if possible rather thanquiver
and I still have no idea how to plot the nullclines properly.
$endgroup$
– cz5
Mar 28 at 17:26
add a comment |
$begingroup$
Yes, I'd like to useplot
if possible rather thanquiver
and I still have no idea how to plot the nullclines properly.
$endgroup$
– cz5
Mar 28 at 17:26
$begingroup$
Yes, I'd like to use
plot
if possible rather than quiver
and I still have no idea how to plot the nullclines properly.$endgroup$
– cz5
Mar 28 at 17:26
$begingroup$
Yes, I'd like to use
plot
if possible rather than quiver
and I still have no idea how to plot the nullclines properly.$endgroup$
– cz5
Mar 28 at 17:26
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
cz5 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3166106%2fhow-to-plot-phase-plane-and-nullclines-in-matlab%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
cz5 is a new contributor. Be nice, and check out our Code of Conduct.
cz5 is a new contributor. Be nice, and check out our Code of Conduct.
cz5 is a new contributor. Be nice, and check out our Code of Conduct.
cz5 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3166106%2fhow-to-plot-phase-plane-and-nullclines-in-matlab%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
Yes, I'd like to use
plot
if possible rather thanquiver
and I still have no idea how to plot the nullclines properly.$endgroup$
– cz5
Mar 28 at 17:26