Hi,
I want to create N length long [-1 1] matrix,
For example: Length=2
Output:
[ 1 1 1 -1 -1 1 -1 -1]
Length = 3
Output:
[ 1 1 1 1 1 -1 1 -1 1 -1 1 1 ...... -1 -1 -1]
And so on, How can do that?
mathematicsMATLABmatrix
[ 1 1 1 -1 -1 1 -1 -1]
[ 1 1 1 1 1 -1 1 -1 1 -1 1 1 ...... -1 -1 -1]
Best Answer