How to find values of variables?

2 visualizaciones (últimos 30 días)
Abdullah
Abdullah el 23 de Nov. de 2018
Comentada: Abdullah el 23 de Nov. de 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 comentarios
Abdullah
Abdullah el 23 de Nov. de 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.
Stephen23
Stephen23 el 23 de Nov. de 2018
X = zeros(1,16)

Iniciar sesión para comentar.

Respuesta aceptada

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

Más respuestas (1)

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

Iniciar sesión para comentar.

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by