How to find values of variables?

1 view (last 30 days)
Abdullah
Abdullah on 23 Nov 2018
Commented: Abdullah on 23 Nov 2018
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 Comments
Abdullah
Abdullah on 23 Nov 2018
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.

Sign in to comment.

Accepted Answer

Torsten
Torsten on 23 Nov 2018
Try
X = null(Q.')
Best wishes
Torsten.

More Answers (1)

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

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!