I am new to image processing and what I am trying to do is resize an image and store it in tif format, but command window reports an error saying \"you don\'t have the permissio
As the error message states, you are trying to write the file myNewFile.tif
to the current working directory. However, you do not have writing permission in the current working direcoty. This is an OS issue, not a Matlab one.
What you can do is change the current working directory (using cd
command) and write the image to a different folder where you do have writing permissions.
Alternatively, you can supply a full path to the image file name, directing it to a folder where you have writing permissions.
imwrite( B, fullfile( '/path/to/where/you/can/write', 'myNewFile.tif' ) );
Here are links to the description of some Matlab commands that might help you: