Engineering Statics Problem in 3 dimensions

조회 수: 4 (최근 30일)
John Marck
John Marck 2016년 6월 1일
편집: Roger Stafford 2016년 6월 2일
Can Matlab solve the summation of cross-products with unknowns? I'm working the problem below and would like to know how to solve this with Matlab instead of manually expanding the cross-product.
Unknowns: FED, FFC
Equation:
{2k} FED{0.2673i 0.8018j 0.5345k} + {4k} FFC{ 0.6667i + 0.3333j 0.6667k} + {7k} { 490.5j} = 0
This simplifies to the following equation:
( 1.6036FED 1.3332FFC + 3433.5)i + (0.5334FED 2.6668FFC)j
Which can be solved by equating each vector to zero and solved simultaneously:
Mx = 0: .6036FED 1.3332FFC + 3433.5 = 0
My = 0: 0.5334FED 2.6668FFC = 0
I don't mind solving long-hand, since that's what I'd have to do on a test but I'd like to sharpen my Matlab skills too, if this can even be done in Matlab.
Cheers!
Jack
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 6월 1일
I do not understand your notation with {2k} and series of numbers in {}.
Are i and j and k intended to be the direction axes?

댓글을 달려면 로그인하십시오.

답변 (1개)

Roger Stafford
Roger Stafford 2016년 6월 2일
편집: Roger Stafford 2016년 6월 2일
Yes, if you wish, you can solve your problem using matlab as follows:
c1 = cross([0;0;2],[.2673;.8018;.5345]);
c2 = cross([0;0;4],[.6667;.3333;.6667]);
b = cross([0;0;7],[0;490.5;0]);
X = [c1,c2]\(-b); % <-- Solve linear eqs. (Edited)
The two elements in the vector X will be FED and FFC in that order. (You won’t get the same results as in your work by hand because you made some errors in the latter.)
The last line represents three equations with only two unknowns, in which case matlab seeks a least squares solution. However, since in this case the third equation is always satisfied with the given zeros, the X solution will be exact (to within rounding errors, of course.)
Note: I am not familiar with your notation for cross products.

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by