Info
This question is closed. Reopen it to edit or answer.
I have 3 outputs but the scope shows 20 outputs
1 view (last 30 days)
Show older comments
function [p, v, a]=findit(theta_dot)
r = 120*10^-3;
c = 250*10^-3;
t = 0:0.001:(60/500);
theta = theta_dot*t;
d1 = r*cos(theta);
h = r*sin(theta);
d2 = (c.^2-h.^2).^(1/2);
p = d1 + d2;
v = -r.*theta_dot.*sin(theta)-(r.^2.*theta_dot.*sin(2.*theta))./(2*(c.^2-r.^2.*sin(theta).^2)).^(3/2);
a = -r.*theta_dot.^2.*cos(theta)-(4*r.^2.*theta_dot.^2.*cos(2.*theta).*(c.^2-r.^2.*sin(theta).^2)+(r.^2.*theta_dot*sin(2.*theta).^2))/(4*(c.^2-r.^2.*sin(theta).^2).^(3/2));
v = v * 100;
a = a * 100;
I give 500*2*pi/60 to input of function.
3 Comments
Answers (1)
Ameer Hamza
on 5 May 2020
Edited: Ameer Hamza
on 5 May 2020
It is not displaying 20 signals. In fact, it is displaying 121*3=363 signals.
That is not the correct way to define time-dependent signals in Simulink. Check the attached file (saved in R2019a) to see how to create those signals in Simulink correctly.
2 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!