- #1

- 4

- 0

## Main Question or Discussion Point

Hi, I'm trying to write an SOR program in Matlab and have everything done, except I cannot figure out how to create a matrix of the following form without manually typing everything in:

x=(1,0,...,0,1)

Thank you for your help.

x=(1,0,...,0,1)

^{T}for various sized matrices.Thank you for your help.