Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How to convert images into text file
Replies: 2   Last Post: Nov 17, 2012 5:47 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 11
Registered: 11/17/12
Re: How to convert images into text file
Posted: Nov 17, 2012 5:47 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Nasser M. Abbasi" <nma@12000.org> wrote in message <k89129$95g$1@speranza.aioe.org>...
> On 11/17/2012 3:51 PM, luma wrote:
> > Hello,
> > Please, I want to store 20 images its size 240*320 in the text file .
> > I run this code,but only one image stored in test file
> >
> > path ='E:\Matlab\bin\seq1\seq';
> > for i=100:120
> > a = imread([path,int2str(i),'.jpg']);
> > dlmwrite('test.txt', a, 'delimiter', ',');
> > end
> > How I can modify this code to store more than one image in test file?
> >

> To add stuff to a file, simply use the append flag/option.
> Looking at dlmwrite(), I see the '-append' option there,
> so try that.
> --Nasser

Thanks sooo much , it's work good now
jazak allah kheer

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.