You can use imresize():
m2 = imresize(m, [361,361]);
There are different sizing options for imresize(), like 'bilinear' or 'nearest', etc. so be sure to check out the documentation.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!