フィルターのクリア

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

2 ビュー (過去 30 日間)
Mirtunjay Kumar
Mirtunjay Kumar 2017 年 3 月 31 日
回答済み: KSSV 2017 年 3 月 31 日
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 Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by