hiii when i try to use imwrite appear this problem

> x=imread('onion.png');
>> imshow(x)
>> imwrite(x,'onion.bmp')
??? Error using ==> imwrite at 457
Can't open file "onion.bmp" for writing.
You may not have write permission.
please can you help me

Respuestas (1)

Sean de Wolski
Sean de Wolski el 20 de Nov. de 2012

0 votos

It means you likely don't have file permissions. There are several things that could cause this:
  1. Another program could have it open.
  2. The folder doesn't have write permissions and you're not running ML in Admin Mode.

1 comentario

Also if you are running Windows 7 and your directory is underneath one of the directories that Windows reserves for system use, such as the directory that programs are normally installed in.

La pregunta está cerrada.

Etiquetas

Preguntada:

el 20 de Nov. de 2012

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by