Can someone explain where the values of the column vector z are coming from in this function?
Show older comments
This function is an ode45 solving a set of data from a separate script that calls up this function. However, I don't understand what the values z(1), z(2), etc. are and where they are coming from as they aren't part of the main script and only feature here. I tried calling up z in the command window but to no avail.
function zprime=vdpns_rhs(t,z)
global par
zprime=[z(2)
-par(1)*(z(1)^2-1)*z(2)-z(1)-par(1)*par(2)*(z(1)-z(3))
z(4)
(-par(4)*z(4)-par(6)/par(1)*z(3)-par(5)/par(1)*z(3)^3-par(2)*(z(3)-z(1)))/par(3) ] ;
Accepted Answer
More Answers (0)
Categories
Find more on Ordinary Differential Equations 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!