Plot the trajectory of a motion of x(t) and y(t)
97 次查看(过去 30 天)
显示 更早的评论
I need to plot the trajectory of a motion
I have these two equations
x(t) = sin(t)
y(t)= cos(t)
How can I plot the motion of this object in Oxy
Also I need to keep (t) because I need to diferentiate those functions later
0 个评论
回答(2 个)
Walter Roberson
2021-12-3
t = linspace(0,10);
X = @(t) acos(t/10) + tan(t/10);
Y = @(t) (t/10).^2 + (t/10) - 1;
plot(X(t), Y(t))
1 个评论
Walter Roberson
2021-12-3
syms t
X = acos(t/10) + tan(t/10);
Y = (t/10).^2 + (t/10) - 1;
fplot(X, Y, [0 10])
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!