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

New to MATLAB?

Thread Subject:
Problem,Store colored image in a text file

Subject: Problem,Store colored image in a text file

From: luma

Date: 26 Nov, 2012 21:42:09

Message: 1 of 1

Hello ,

 I used this code to store image in text file but it not work good .

for i=1:3
dlmwrite('M.txt', d(:,:,i),'-append');

the result of run this code in a text file is 240*960.R G B

Please, I need another code to store colored image in file ,So that the image stored red, green and blue.I mean if image 240*320 to each color when stored in file
store 240*320 to red then green and finally blue.(the matrix in file will be 720*320).

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us