What is wrong with the angle???

7 ビュー (過去 30 日間)
Jack
Jack 2013 年 10 月 8 日
コメント済み: Jack 2013 年 10 月 8 日
% filename: BeltForce.m % purpose: a function to compute the forces on a belt which wraps a % cylinder % input: F2(force in other side of cylinder),Micro(friction coefficient), % Beta(angle of wrap of belt around the cylinder),all inputs are % numerical arrays. % output: F1(Force on another part) % B.Sobati % 10/8/2013
function [F1] = BeltForce(F2,Micro,Beta) F1 = (F2)*((exp(1))^(Micro*(Beta)));
>> BeltForce(100,.3,130)
ans =
8.6593e+018
>>> by putting 100 & 0.3 & 130 for F2 & Micro & Beta(in degree) the answer should be 197.5217
why do I get the wrong result??

採用された回答

Matthew Crema
Matthew Crema 2013 年 10 月 8 日
Maybe you want to specify Beta in radians and not degrees:
BeltForce(100, 0.3, 130*pi/180)
ans =
197.5217
  1 件のコメント
Jack
Jack 2013 年 10 月 8 日
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAssembly についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by