How to find values of variables?

2 次查看(过去 30 天)
I have 2 matrices, Q and X such that XQ=0. X is 1x16 matrix with unknown values i.e. X=[x1, x2, x3, x4, ...x16]. Q is 16x16 real valued matrix. How can I find values of X in Matlab?
  3 个评论
Abdullah
Abdullah 2018-11-23
Sorry but I think https://www.mathworks.com/matlabcentral/answers/431426-how-to-solve-this-16x16-matrix is related to QX=0 while the question posted here is to find XQ=0.
'X' is a column vector in the linked post. While here 'X' is a row vector.

请先登录,再进行评论。

采纳的回答

Torsten
Torsten 2018-11-23
Try
X = null(Q.')
Best wishes
Torsten.

更多回答(1 个)

Luna
Luna 2018-11-23
Use divide operator directly to solve Ax = B type linear equations.
Here is the link.
  1 个评论
Abdullah
Abdullah 2018-11-23
Thanks for your nice reply. But in my case, B=0 and using mldivide results in NaN.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by