problem with imwrite in matlab. No write permission.

6 views (last 30 days)
I'm trying to resize my image using matlab to 240*320 dimensions using the following code
ans = imread('11_1.jpg');
imresize(ans,[240,320]);
imwrite(ans,'11_2.jpg','jpg');
  1 Comment
Lokesh Ravindranathan
Lokesh Ravindranathan on 15 Jul 2013
Can you be more specific with the error message? Are you using linux or windows? Do you have write permissions in that directory?

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 15 Jul 2013
What is your current folder? Windows 7 won't let you write to folders under Program Files, and many other folders either.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!