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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -