I am using the imwrite commant for writing the image but i have an error 'you might not have write permission'…How can i resolve it..i am using the following code.
clear camcam=webcam;for i=1:10 A=snapshot(cam); cam.Resolution='320x240'; imwrite(A,['133MC',num2str(i),'.jpg']);endv=VideoWriter('myVideo.avi');v.FrameRate=2;open(v)for i=1:10 K=imreade(['133MC',num2str(i),'.jpg']); writeVideo(v,K);endclose(v)
Error is:
Error using imwrite (line 467)
Unable to open file "133MC1.jpg" for writing. You might not have write permission.
Error in Lab3 (line 27)
imwrite(A,['133MC',num2str(i),'.jpg']);
Best Answer