how can i work with the derivative of the input of a system

1 次查看(过去 30 天)
i have this code:
function [xdot, udot]=pid_practica9_ejercicio3_ec_diferencial_prueba2(t,x)
Vp=5;
u=Vp*square(2*pi*t)+5;
udot = 1.776*0.05252*(u-x(1, :));%udot must be the derivative of this
xdot = [
x(2, :);
20*udot-10*x(1, :)-7*x(2, :);
];
%[t,x]=ode45('pid_practica9_ejercicio3_ec_diferencial_prueba2',[0,10],[0,0])
%plot(t, x(:, 1));
where udot must be the derivative of: 1.776*0.05252*(u-x(1, :))
how can i do it?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by