Add one to every value in a matrix in Matlab -
say want
1 2 3 4 5 6 7 8 9 to become
2 3 4 5 6 7 8 9 10 say first matrix mat. thought mat.+1 work gives
unexpected matlab operator.
is there way this?
just add 1, can add scalar matrix:
a = [1 2 3 4 5 6 7 8 9] b = + 1
Comments
Post a Comment