How to find values of variables?

2 visualizzazioni (ultimi 30 giorni)
Abdullah
Abdullah il 23 Nov 2018
Commentato: Abdullah il 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 Commenti
Abdullah
Abdullah il 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.
Stephen23
Stephen23 il 23 Nov 2018
X = zeros(1,16)

Accedi per commentare.

Risposta accettata

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

Più risposte (1)

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

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by