Using Matlab Create a vector and a matrix with the following
Using Matlab. Create a vector and a matrix with the following commands v=0:0.2:12; and M=[sin(v):cos(v)]. find the size of v and M. extract the first 10 elements of each row of the matrix, and display them as column vectors.
Solution
M = [sin(v) : cos(v)]
size of V = 60
size of M = 2 rows * 60 columns
![Using Matlab. Create a vector and a matrix with the following commands v=0:0.2:12; and M=[sin(v):cos(v)]. find the size of v and M. extract the first 10 element Using Matlab. Create a vector and a matrix with the following commands v=0:0.2:12; and M=[sin(v):cos(v)]. find the size of v and M. extract the first 10 element](/WebImages/37/using-matlab-create-a-vector-and-a-matrix-with-the-following-1112481-1761590192-0.webp)
