MATLAB help finding a set of linearly independent vectors

Click For Summary
SUMMARY

The discussion focuses on determining the conditions for linear independence of the vectors v1 = {-4; 3; -10}, v2 = {2; -2; -3+k}, and v3 = {2; -6; 14} in MATLAB. The key conclusion is that the vectors are linearly independent if and only if k is not equal to a specific value, which can be derived by solving the equation c1*v1 + c2*v2 + c3*v3 = 0 or equivalently Ax = 0. The user encountered difficulties in treating k as a variable in MATLAB, specifically when attempting to use symbolic computation with the 'syms' function.

PREREQUISITES
  • Understanding of linear independence in vector spaces
  • Familiarity with MATLAB syntax and functions
  • Knowledge of symbolic computation in MATLAB
  • Basic concepts of solving linear equations
NEXT STEPS
  • Learn how to use MATLAB's 'syms' function for symbolic variables
  • Explore MATLAB's 'solve' function for solving equations symbolically
  • Study the concept of linear independence and its implications in vector spaces
  • Investigate how to construct and manipulate matrices in MATLAB
USEFUL FOR

Students and professionals in mathematics, engineering, and computer science who are working with linear algebra concepts and MATLAB for computational solutions.

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 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K