MATLAB: Replacing existing matrix elements with new elements!

adding 1 to matrixMATLAB

Hello everyone!
I am having a 6×6 matrix of numbers ranging from 0 to 5. I want to replace the matrix elements 0 to 5 as 1 to 6.
[2 0 1 3 5 4;
1 2 4 5 0 3;
2 3 5 0 1 4;
1 0 2 3 4 5;
2 1 4 5 0 3;
1 3 5 0 4 2]
I want to replace (0 as 1), (1 as 2), (2 as 3) and so on up to (5 as 6).
if I use for loop it replace itself again and again and resulting in allocation of single number(6) in all positions. Is there is any better way to replace those values.
Any help is greatly appreciated. Thanks in advance.

Best Answer

yourMatrix=yourMatrix+1;