⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trajode.m

📁 nn modelling and auto-pid controller
💻 M
字号:
function zdot = trajODE(t, z, flag, sigma)% zdot = trajODE(t, z, sigma)%% implements the optimal trajectories for the game of two identical cars%	equations (2)%% draws on A.W.Merz, "The Game of Two Identical Cars", pp.324 -- 343%	Journal of Optimization Theory and Applications, 9, 5 (1972)%% Ian Mitchell for HS'01, 1/16/01reverseTime = 1;sigma1 = sigma(1);sigma2 = sigma(2);x = z(1);y = z(2);theta = z(3);xdot = -sigma1 * y + sin(theta);ydot = -1 + sigma1 * x + cos(theta);thetadot = -sigma1 + sigma2;zdot = (reverseTime * -1) * [ xdot; ydot; thetadot ];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -