I would like to make an equation to solve t when T_max is equal to 450

1 回表示 (過去 30 日間)
Henk Nijland
Henk Nijland 2016 年 4 月 8 日
編集済み: Roger Stafford 2016 年 4 月 13 日
OC=[3/5;3/5*sqrt(3);0]
BC=[9/40*sqrt(3);27/40;9/20]
OB=OC+BC
R=OB
syms t
F=[0;0;t]
MO=cross(R,F)
OA=[0;1.2;0.9]
OAe=OA/norm(OA)
Max=dot(OAe,MO)*OAe
T_max=norm(Max)

回答 (2 件)

Roger Stafford
Roger Stafford 2016 年 4 月 13 日
編集済み: Roger Stafford 2016 年 4 月 13 日
It is simple division:
t = 450/dot(OAe,cross(R,[0;0;1])); (<-- Corrected)

sam0037
sam0037 2016 年 4 月 13 日
Hi,
Appending these three commands to your code will do the magic:
eqn = T_max == 450;
res = solve(eqn,t);
val = double(res); %this is the desired value of t
Here are the documentation links for the same:

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by