Hi, I want to create a Matrix A such that
A = [-1 1 -1 0 0 0 0 0 -1 1 -1 0 0 0 0 0 -1 1 -1 0 0 0 0 0 -1 1 -1 0 0 0 0 0 -1 1 -1]
Above matrix is a sample with just 5 rows but i want to create a matrix of size 100×100.
I have used following method but failed
a=[-1 2 1];x=100;A=convmtx(a,x)
Please help.
Best Answer