角度替换为什么不对。

xt=@(a)r*cos(a)+ht*(r1*sin(a)+r*cos(a)/g);
yt=@(a)r*sin(a)-ht*(r1*cos(a)+r*sin(a)/g);
xt1=subs(xt,a,[0:0.1:2*pi]);
yt1=subs(yt,a,[0:0.1:2*pi]);
想把角度a 换成0:2*pi
这样哪里错了呢

 采纳的回答

sicigor
sicigor 2022-11-18

0 个投票

xt1=subs(xt,‘a’,[0:0.1:2*pi]);
yt1=subs(yt,‘a’,[0:0.1:2*pi]);

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simulink Design Optimization 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!