資源簡介
機械設計中連桿機構,搭建,運動求解。matlab程序。
代碼片段和文件信息
function?[?x_c??y_c?]?=?center_straight_point(?a1??b1??c1??x1??y1??x2??y2?)
%?求得?(?x_cy_c?)?為?(?x1y1?)、(?x2y2?)?兩點中垂線?與?另一直線相交點。?
%?另一直線形式為?a1?*?x?+?b1?*?y?+?c1?=?0
syms?x?y?
fun1?=?a1?*?x?+?b1?*?y?+?c1?;
fun2?=?2?*?(?x2?-?x1?)?*?x?+?2?*?y?*?(y2-y1)?-?(x1+x2)*(x2-x1)?-?(y1+y2)*(y2-y1);
[?x_cy_c?]?=?solve(?fun1??fun2?‘x‘‘y‘);
if?isempty(x_c)||isempty(y_c)
????error(‘cannot?find?the?center?point??the?two?lines?may?by?parallel‘);
end
?x_c?=?subs(x_c);
?y_c?=?subs(y_c);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????521??2009-11-03?18:59??桿組法程序\center_straight_point.m
?????文件???????4847??2009-11-03?11:59??桿組法程序\done_2_11.m
?????文件???????2155??2009-11-04?13:09??桿組法程序\gan_zhu_dong_hua.m
?????文件???????2450??2009-11-29?22:17??桿組法程序\jie_xie_mian_shi.m
?????文件???????2236??2009-10-25?13:02??桿組法程序\RPR.m
?????文件???????2316??2009-11-29?15:16??桿組法程序\RRP.m
?????文件???????2279??2009-11-03?17:50??桿組法程序\RRR.m
?????文件????????769??2009-10-25?13:00??桿組法程序\single_pole.m
?????目錄??????????0??2014-04-11?17:10??桿組法程序
-----------?---------??----------?-----??----
????????????????17573????????????????????9
評論
共有 條評論