How to solve the following questions?
显示 更早的评论
A =[1;1;2]
B= [x y 6;x y 5; x y 4]
C = [2;3;4]
D = B*C
I want to write a code so that that multiply the matrix B (of some unknown variables) with matrix C, SO as D(1) be = x*2+y*3+6*4 D(2) be = x*2+y*3+5*4 D(3) be = x*2+y*3+4*4
and then A = D
so that , A(1) = D(1) & A(2) = D(2) & A(3) = D(3).
Now using the solve command i will solve the value of x & y.
Can anyone,help me please?
回答(1 个)
Your system is equivalent to:
[2 3;2 3;2 3]*[x;y] = [-23;-19;-15]
What makes you think this has a solution?
类别
在 帮助中心 和 File Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!