Clear Filters
Clear Filters

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

2 views (last 30 days)
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]

Answers (1)

KSSV
KSSV on 31 Mar 2017
a = [-1, -0.5,0, 0.5,1] ;
[A,B,C,F,G,H] = ndgrid(a,a,a,a,a,a) ;

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!