I have a vector v2=linspace(-30,10,100)

I want to create a matrix M1 that has three columns, each of which is v2 and another matrix M2 that has three rows, each of which is the transpose of v2. I am lost on how to solve this problem. Please help.

Skip to content# MATLAB: Creating a matrix from a vector

###### Related Question

matricesvectors

I have a vector v2=linspace(-30,10,100)

I want to create a matrix M1 that has three columns, each of which is v2 and another matrix M2 that has three rows, each of which is the transpose of v2. I am lost on how to solve this problem. Please help.

- How to concatenate string vectors of unequal length
- How do i create new variable from 31 variables with one column
- How to define an arbitrary constant for equations
- About Find difference set.
- Random matrix with maximum values.
- Matlab: element wise complex conjugate transpose
- Combining different size arrays based on time dimension and compute average for the last column

## Best Answer