Hello, so i was given the question;
Assume that a given vector u is in the span of vectors v and w in Rn. This means that there exist scalars a,b such that av+bw=u. I was given a matrix M of size 3×3. The first row of M is the vector v, the second row is the vector w, and the third row is the vector u.
1,2,0
1,3,5
3,8,10
I assume for this to work the equation * would be a[1,2,0] + b[1,3,5] = [3,8,10]
and thus separated the vectors v = M(1,:); w = M(2,:); u = M(3,:);
I was told to use x = linsolve(A, B) to solve *
however I am unsure how to assign and what to assign A and B (I've tried A = [a*v+b*w] but that came up as an error)
Thanks!