필터 지우기
필터 지우기

Convert matrix to equations and solve it to find all possible combination of solution.

조회 수: 2 (최근 30일)
I have a matrix having an algebraic expression in a matrix. I need to find all possible solutions for each expression equating with 1 or -1 varying A,B,C,F,G,H as combination of (-1, -0.5,0, 0.5,1) . How should i proceed? I am unable to convert it in equations. Matrix is given below.
[ A - G + H, B + F - H, C - F + G]
[ A + G + H, B - F - H, C + F - G]
[ A + G - H, B + F + H, C - F - G]
[ A - G - H, B - F + H, C + F + G]

답변 (1개)

KSSV
KSSV 2017년 3월 31일
a = [-1, -0.5,0, 0.5,1] ;
[A,B,C,F,G,H] = ndgrid(a,a,a,a,a,a) ;

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by