MATLAB MATLAB help finding a set of linearly independent vectors

AI Thread Summary
To determine the linear independence of the vectors v1, v2, and v3, the condition k must meet is derived from the equation c1*v1 + c2*v2 + c3*v3 = 0 or equivalently Ax = 0, where A is the matrix formed by the vectors. The discussion highlights the challenge of using MATLAB to treat k as a variable. A suggested solution involves expanding the equations and solving them simultaneously using symbolic computation, rather than relying on a cell format. The goal is to find the specific value of k that would indicate linear dependence among the vectors, thus establishing that they are linearly independent if k does not equal that value.
gibxam
Messages
12
Reaction score
0
If I'm given a set of vectors
{-4; 3; -10} = v1
{2; -2; -3+k} = v2
{2; -6; 14} = v3
I want to find that they are linearly independent if and only if k != something

to solve this is simple but a huge tedious pain (although not nearly as tedious as trying to find a solution to this question)

I just solve:

c1*v1 + c2*v2 + c3*v3 = 0
or
Ax = 0 where a is matrix above

I'm desperately trying to convince MATLAB that k is a variable but can't do it. I've tried making it symbolic with syms but it doesn't work. Please help me. Thank you
 
Physics news on Phys.org
You should try expanding all three equations and having symbolic solve them simultaneously rather than using the cell format you have above.
 

Similar threads

Replies
5
Views
3K
Replies
4
Views
1K
Replies
6
Views
2K
Replies
1
Views
2K
Replies
12
Views
2K
Back
Top