[ask] matrix in matlab

Status
Not open for further replies.
one "pedestrian" way would be:

lower = zeros(400,1)
upper = zeros(400,1)
lower(1) = 0.71
upper(1:2) = 0.71
matrix = toeplitz(lower,upper)

- - - Updated - - -

ah, didn't notice you wanted it 200x400.
Then do: matrix = matrix(1:2:400,
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…