linear algebra - Solve multivariate symbolic equation (equation for hyperplane) in MATLAB and then sym2poly? -
So I'm working on a 5-D problem, from which I try to solve this on a hyperplane equation I am in Space I have tried to do this by:
sys g g1 g2 x1 x2 x3 x4 x5 g_1 = -log (det (sig1_new) ^ (1/2)) - (1 / 2) * ([x1; x2; x3; x4; x5] -u1 ')' * inv (sig1_new) * ([x1; x2; x3; x4; x5] -u1 ') + log (p1); G_2 = -log (det (sig2_new) ^ (1/2) - (1/2) * ([x1; x2; x3; x4; x5] -u2 ')' * inv (sig2_new) * ([x1; X2, x3, x4, x5] -u2 ') + log (p2); G = g_1-g_2 plane = solution (g_1-g_2, x5) This fixes the system, but I'm not sure how to do anything relevant with the result because I changed Can not do back in a polynomial, because there is more than one symbolic variable I'm not sure, maybe I am doing my problem wrong?
This is not what you want, but you can change the matlabFunction Can use 4 input, x1 , x2 , x3 , x4 with an anonymous function : planeFunc = matlabFunction (plane)
Comments
Post a Comment