Still no one interested to answer Plz help me
Trajectory designing Matlab code
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi Dear all i want to make a trajectory path which i have done but i am unable to get the output in simulink please help me fast what mistake i am doing????
function [a3,a2,a1,a0]= TrajCreate(theta0,thetaf,thetad0,thetadf,t)
T=20;
a0 = theta0;
a1 = thetad0;
a2 = (-3 * (theta0 - thetaf) - (2 * thetad0+thetadf )*T)/ T ^ 2;
a3 = (2 * (theta0 - thetaf) + (thetad0+thetadf )*T)/ T ^ 3;
end
% Run File theta0=10; thetaf=50; thetad0=0; thetadf=0;
[a3,a2,a1,a0]=TrajCreate(theta0,thetaf,thetad0,thetadf)
p=[a3 ,a2 , a1 , a0];
t=linspace(0,20,100);
Pos=polyval(p,t)
plot(t,Pos)
This give me nice result but i want the Pos my output in simulink
can you some one please help me
thanks in advance
Respuestas (3)
Ameer Hamza
el 26 de Jun. de 2018
You can use From Workspace block to transfer trajectory signal data from MATLAB base workspace to Simulink.
0 comentarios
Bilal sadiq
el 27 de Jun. de 2018
2 comentarios
Ameer Hamza
el 27 de Jun. de 2018
Right-click on the file name and press Save Link as. Also instead of starting a new answer, it is better to keep comment on the original answer. It helps keep track of the things.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!