944,084 Members | Top Members by Rank

Ad:
Jul 13th, 2005
0

Matlab help?

Expand Post »
Hi all,
I'm an experienced programmer in C, C++, and Java, and I'm new to this site. I was wondering if this would be an appropriate place to post a Matlab question. Any Matlab gurus out there? I have a bunch of data files of 10,000 -dimensional vectors that I'm reading in and plotting automatically. Now I would like to write the images produced by the plot command to jgeg files (so I don't have to manually go to File->Save As for each figure), but I don't know how to do it. If there were some way I could pipe the ouput of the plot command into properly-formatted input for the imwrite command (i.e. an MxNx3 color-image array), I'd be set. Any ideas?

Thanks!
Josh
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
boofus is offline Offline
1 posts
since Jul 2005
Aug 1st, 2005
0

Re: Matlab help?

Just a question, what is Matlab used for?
Reputation Points: 404
Solved Threads: 180
Nearly a Posting Virtuoso
bumsfeld is offline Offline
1,422 posts
since Jul 2005
May 18th, 2006
0

Re: Matlab help?

I think you are confused with the matlab commands, "imwrite" function has no relation with the "plot" function. Imwrite writes the data [2D or 3D matrices] into the images, it does not handle the output from the plot function. If you want to save output of "plot' as a images [for many files] you need to run the internal save as command in the loop.

If you need more help on matlab functions, try kluid [ http://www.kluid.com ]

b4 : ]


Quote originally posted by boofus ...
Hi all,
I'm an experienced programmer in C, C++, and Java, and I'm new to this site. I was wondering if this would be an appropriate place to post a Matlab question. Any Matlab gurus out there? I have a bunch of data files of 10,000 -dimensional vectors that I'm reading in and plotting automatically. Now I would like to write the images produced by the plot command to jgeg files (so I don't have to manually go to File->Save As for each figure), but I don't know how to do it. If there were some way I could pipe the ouput of the plot command into properly-formatted input for the imwrite command (i.e. an MxNx3 color-image array), I'd be set. Any ideas?

Thanks!
Josh
Reputation Points: 10
Solved Threads: 1
Light Poster
b4codes is offline Offline
35 posts
since May 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Legacy and Other Languages Forum Timeline: matlab program help
Next Thread in Legacy and Other Languages Forum Timeline: matlab help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC