Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

imwrite() function for save images

Asked by live to l e a r n **MATLAB** on 8 Dec 2012

how will use imwrite() function to save 10 images in different different folder at same or diffident directory

1 Comment

same directory different folder; now am just need to save an image into some folder in same directory which i was created already

live to l e a r n  **MATLAB**

Tags

Products

No products are associated with this question.

1 Answer

Answer by Azzi Abdelmalek on 8 Dec 2012
Edited by Azzi Abdelmalek on 8 Dec 2012
 Im1=rand(100,100,3)  % example of image
 imwrite(Im1,'yourfolder/Image1.jpg')

4 Comments

Azzi Abdelmalek on 8 Dec 2012

Post your code

Walter Roberson on 8 Dec 2012

Azzi, your sample code uses 5 as the number of color panes. You need to use 3 for RGB images.

Azzi Abdelmalek on 8 Dec 2012

Yes walter, it's a typing error

 Im1=rand(100,100,3)  % example of image
 imwrite(Im1,'yourfolder/Image1.jpg')
Azzi Abdelmalek

Contact us