Need help with 1 and 2. 1500 points :) There are a number of ways you could repr
ID: 3557036 • Letter: N
Question
Need help with 1 and 2. 1500 points :)
There are a number of ways you could represent a list of vectors in Matlab. Pick one, explain how it works, and discuss the pros and cons. Write the following functions. Each should take a list of vectors X Rn as an argument. Use your chosen method from part (1) to represent X. basis - returns a basis for the subspace span(X). Can you write it so that the returned basis is a subset of X? linearly-independent - returns true if X is a linearly independent set, and false otherwise. dimension - return the dimension of span(X). basis.extension - return a basis for Rn containing X. You can assume that X is linearly independent.Explanation / Answer
A vector is defined by placing a sequence of numbers within square braces:
>> v = [3 1]
v =
3 1
This creates a row vector which has the label