How can I plot a graph of a system of non-linear equations with a conditional function as a variable and initial conditions?
Show older comments
I need to plot a graph of z(t) (from t = 0 until t becomes periodic) in this system: dx/dt = y - 2*x + f(z) | dy/dt = x - 2*y + z | dz/dt = y - z. But the thing is f(z) = 34, if z > 1 | f(z) = -34, if z < -1 | f(z) = 34*z, if -1 < z < 1. The initial conditions are x(0) = 0 | y(0) = 0 | z(0) = 0.5 Unfortunately I can't seem to find a solution that applies f(z).
Accepted Answer
More Answers (0)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!