資源簡介
matlab的四連桿問題動畫制作,適合初學者使用
代碼片段和文件信息
l_1=8;l_2=25;l_3=20;l_4=20;
xx1=[?];yy1=[?];????%左上
xx2=[?];yy2=[?];????%右上
for?i=1:100;
????x1=l_1*cos(x(i));
????y1=l_1*sin(x(i));
????x2=l_3*cos(y(i))+l_4;
????y2=l_3*sin(y(i));
????xx1=[xx1x1];
????yy1=[yy1y1];
????xx2=[xx2x2];
????yy2=[yy2y2];
end
t
評論
共有 條評論