how can i solve simultaneous matrix equations?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Thresiamma N J
am 10 Okt. 2020
Kommentiert: Thresiamma N J
am 10 Okt. 2020
I hvae to solve the simultaneous matrix equations
X*A=0 and X*e=1 where X is a row vector of finite dimension 1Xu and e =ones(u1,1)
I tried the following How can I Solve simultaneous matrix equation X*A=0 and X*e=1 where X a row vector ,e coloumn vector with all entries one.? i have tried
x=sym('x',[1 u1])
e=ones(u1,1)
eqn=[x*A==0 ,x*e==1]
solx=solve(eqn,x)
but the answer i am getting is a structure but i need it as a matrix. can any one help me?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Okt. 2020
u1 = 5;
A = randi([-9 9], u1, 1); %u1 x 1
x=sym('x',[1 u1])
e=ones(u1,1)
eqn=[x*A==0 ,x*e==1]
solx=solve(eqn,x)
subs(x,solx)
2 Kommentare
Walter Roberson
am 10 Okt. 2020
Sorry, format is a bit messed up. The output vector has two non-zero entries and the rest are all zero.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!