日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人工智能 > 循环神经网络 >内容正文

循环神经网络

matlab 凸轮程序,求助,关于凸轮的一段matlab程序。

發布時間:2024/1/1 循环神经网络 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 matlab 凸轮程序,求助,关于凸轮的一段matlab程序。 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在書上抄了一段matlab設計凸輪輪廓的一段程序,把它制成M文件,但運行不了,求各位高手幫幫忙啊,謝謝了!

程序如下:

function RollerCam

beta=60*pi/180;rb=3;h=0.5;rc=0.5;

rf=0.375;m=.375;n=23;

phi=linspace(0,beta,n);

ph=[phi beta+phi];

[Rx,Ry]=ContourRoller(0,rb,h,beta,rc,m,rf);

rb=sqrt(Rx(1)^2,Ry(1)^2);

delta=atan2(Ry(1),Rx(1));

[Rx,Ry,Cx,Cy]=ContourRoller(phi,rb,h,beta,rc,m,rf);

ang=linspace(2*beta+delta,2*pi+delta,40);

plot(Rx,Ry,'k',Rx(1)*cos(ang),Rx(1)*sin(ang),'k')

hold on

plot(0,0,'k+',Cx(1:5:2*n),Cy(1:5:2*n),'k+')

axis equal

phd=linspace(0,2*pi,50);

[x,phx]=meshgrid(Cx(1:5:2*n),phd);

y=meshgrid(Cy(1:5:2*n),phd);

hold on

plot(x+rc.*cos(phx),y+rc.*sin(phx),'k--')

title('Cam contour for cycloidal motion of an offset roller follower')

function[Rx,Ry,Cx,Cy]=ContourRoller(phi,rb,h,beta,rc,m,rf)

[L,dLdphi]=CamProfile(phi,rb,h,beta);

F2=m^2+L.^2;

F=sqrt(F2);

psi=atan2(m,L);

alpha=atan2(L.*dLdphi,F2-m*dLdphi);

gamma=atan2(rf*sin(alpha),F-rf*cos(alpha));

ph=[phi,beta+phi];

R=sqrt((F-rf*cos(alpha)).^2+(rf*sin(alpha)).^2);

Ry=R.*sin(psi+gamma+ph);

Rx=R.*cos(psi+gamma+ph);

cx=F+(rc-rf)*cos(alpha);

cy=(rc-rf)*sin(alpha);

delta=atan2(cy,cx);

C=sqrt(cx.^2+cy.^2);

Cy=C.*sin(psi+delta+ph);

Cx=C.*cos(psi+delta+ph);

錯誤信息如下:

??? Undefined command/function 'CamProfile'.

Error in ==> RollerCam>ContourRoller at 23

[L,dLdphi]=CamProfile(phi,rb,h,beta);

Error in ==> RollerCam at 6

[Rx,Ry]=ContourRoller(0,rb,h,beta,rc,m,rf);

謝謝了。

總結

以上是生活随笔為你收集整理的matlab 凸轮程序,求助,关于凸轮的一段matlab程序。的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。