How can I plot locus of a rotating phasor with time?
1 次查看(过去 30 天)
显示 更早的评论
Hello! I want to plot the trajectory of a rotating vector of continuously changing magnitude. Please help me!!
0 个评论
回答(1 个)
Shunichi Kusano
2019-2-6
This is a simple example. Plase change "A" and "theta" to what you like.
t = 0:0.01:10; % time
A = t.^2; % amplitude changing with time
theta = 2*pi*t; % phase (rotating)
plot(A.*cos(theta), A.*sin(theta), 'r.-'); % trajectory
hope this helps.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classical Control Design 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!