| Date | File | Comment by | Comment | Rating |
|---|---|---|---|---|
| 19 Nov 2009 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Hastiepen | After spending all day on the forums trying to figure out how to read a text file into a cell array and then convert it into a matrix, I found this which did everything I needed it to in one go - Excellent piece of work, thank you very much! |
|
| 03 Jul 2009 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Debela | excellent code but very slow on reading large datas |
|
| 17 Apr 2009 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Dylan | I'm using this script to export figures to pdf. The figures have an image background, with vector elements (dots) overlaid. Sometimes the vector elements are kept as vectors, sometimes they are merged with the image... and I can't work out why, or how to force vector elements to be retained. It may have to do with the complexity of the figure. Any suggestions would be appreciated. Otherwise, great script! |
|
| 16 Apr 2009 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Weinstock, B. Andre | Excellent solution for when xlsread cannot be called (no Microsoft Excel around) and csvread cannot differentiate between delimiting commas and commas in double quoted text. |
|
| 04 Mar 2009 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | k, m4lte | ||
| 22 Jan 2009 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Pilchak, Adam | amazing function. |
|
| 09 Nov 2008 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Salman | just great |
|
| 24 Oct 2008 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Woodford, Oliver | With the ability to change compression quality for bitmaps in pdfs, this is now perfect. Highly recommended alternative to Matlab's PRINT. |
|
| 18 Oct 2008 | cauchy Cauchy cdf, pdf, inverse cdf, parameter fit, and random generator. | Kim, Jae Hyung | ||
| 17 Oct 2008 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | djr, djr | ||
| 09 Oct 2008 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Labrie, Jacques | This the kind of features that matlab could be supposed to do right away. Thanks! Mathworks should pay you and put this in the next release! Valuable for students who wish to work/learn with matlab. |
|
| 06 Oct 2008 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Ruhl, Cathy | This has been a great help! I was wondering if there is a way to identify a number of headerlines to skip? |
|
| 29 Sep 2008 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Muir, A | Great little script. The real question is why the built in Matlab graphic export is so incredibly bad in the first place. thankyou for correcting their mistakes |
|
| 16 Sep 2008 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Aftanas, Michal | Simply great, exactly what I was looking for a long time. Good job |
|
| 22 Aug 2008 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Maenka, Frank | I was struggling with a .csv file with mixed text/numbers as well as a varying number of delimiters per line - and this worked perfectly - thanks! |
|
| 17 Jul 2008 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Margoton, Gregoire | Very useful to get numbers which are always at the same place. You obtain first the matrix with all numeric data of the file and then you take your value in the matrix!
|
|
| 09 Jul 2008 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Woodford, Oliver | I should clarify that my previous comment was specific to saving images overlaid with vector graphics to pdf, which is probably quite a niche requirement. |
|
| 02 Jul 2008 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | ., DS | Functional and very handy code. There appear to be some issues with regard to proper cropping of figures, however. Possibly a ghostscript issue, but when saving as a .tif image the procedure produces uneven padded borders. Saving and 1024x512 pixel .tif at 150dpi gives me border padding of 1,7,7, and 2 pixels, respectively (using GPL Ghostscript 8.62). |
|
| 26 Jun 2008 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Schwalm, C | Very slick. |
|
| 05 Jun 2008 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Piciarelli, Claudio | simply great, it's exactly what I was searching for and it works fine :) |
|
| 30 May 2008 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Woodford, Oliver | Very nice, but could do with having more options for compression when converting to pdf (and also jpeg, I guess) - e.g. lossless, high, medium, low - as the default setting is pretty low quality/high compression. For my purposes I needed higher quality output though. I figured out how to do this myself, so if you want the gs incantations for this I can send them to you. |
|
| 16 May 2008 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | S, Ben | This program does exactly what Matlab should do with graphic exports. Why does Matlab decide to completely chew up graphs when exported directly to .pdf? And if you export through .eps and use epstopdf you get an idiotic bounding box. Matlab has the ability to set up page size and attributes in the page setup menu, but not in the export setup menu. And they don't seem to be in any way related with regards to pdf's. Pretty poor. Anyway, this program fixes all that. But, I had a problem whereby it didn't recognise my gs file location so I had to copy gswin32c.exe into my working Matlab folder. Fine now. |
|
| 05 May 2008 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | maclane, john | yippikaeyeah m***f***ckr!!! |
|
| 30 Apr 2008 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Rdn, Tom | Thank you, this works fine!
|
|
| 24 Apr 2008 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Bhan, Ashish | worked like a charm |
|
| 25 Mar 2008 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | a, a | Good - could do with a 'headerlines' option though |
|
| 16 Feb 2008 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | O'Connor, Derek | I forgot to add this in my previous post. For Windows Vista 64 : after line 93, add a copy of line 93 with 'PCWIN' changed to 'PCWIN64' |
|
| 16 Feb 2008 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | O'Connor, Derek | This is top class. Tight bounding box and small file size (eps). QUESTION : Why doesn't Matlab get it right? |
|
| 21 Jan 2008 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Mefford, Greg | I spent a good while trying to find something like this. It's crazy how many of them just don't seem to work. |
|
| 29 Oct 2007 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | D, Tom | Great stuff! This functionality really ought to be included in MATLAB. By default, savefig interpolates images, which can be undesirable when plotting discrete data like 2-D histograms. A quick fix is to delete -dDOINTERPOLATE from line 98. I have sent Peter an email requesting him to make this behavior be controlled by a switch |
|
| 26 Oct 2007 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Hemberg, Martin | Great. Does what it says without any problems |
|
| 15 Oct 2007 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | WANG, P | Tried readcsv does not work, and yours works right out of the box, and example works great for frist time try. Appreciate your work. |
|
| 15 Oct 2007 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Wang, Percy | ||
| 19 Sep 2007 | writeexcel Writes data to an Excel xml file on any system (NO Excel or ActiveX required!). | Beewahn, Albercht | Forgot rating! |
|
| 19 Sep 2007 | writeexcel Writes data to an Excel xml file on any system (NO Excel or ActiveX required!). | Beewahn, Albercht | Perfect! Simple and quick. No Windows dependencies! Cheers! |
|
| 17 Sep 2007 | argcheck Sets missing input args to the defaults, does argument checking, and handles property id/value lists | Cotton, Peter | Thanks a lot Peder. Very useful. You might be interested in another tool for parameter passing error avoidance at http://www.financialmathematics.com/wiki/Code:fun_util |
|
| 16 Sep 2007 | writeexcel Writes data to an Excel xml file on any system (NO Excel or ActiveX required!). | Axensten, Peder | I don't much understand govind rajan's review, but I welcome all suggestions on improvement. |
|
| 11 Sep 2007 | writeexcel Writes data to an Excel xml file on any system (NO Excel or ActiveX required!). | rajan, govind | It is nice but there is an Improvement in this will full fill the all the need that we need thank u buddy |
|
| 14 Aug 2007 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Hutchison, Bill | 90% of my programming time has been consumed by the struggle with text strings in Matlab. Data import formats are never consistent. Even if they claim to be "comma-delimited", dates and other elements may not be well-formed. This function has solved my problem, and I can dispense with my bizarre collection of fixes. Many thanks. |
|
| 15 Jul 2007 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | ducthinh, thinh | ||
| 21 Jun 2007 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Hebeler, Felix | Forgot to rate last time. Nice script. Would be good if one could specify fontsize. I use a workaround atm, opening the export figure dialog and selecting (and applying) font size there, then use savefig |
|
| 03 May 2007 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Wolff, Nicholas | Great routine...thanks for saving me so much time. Mathworks: include this in next release please! |
|
| 15 Apr 2007 | cauchy Cauchy cdf, pdf, inverse cdf, parameter fit, and random generator. | tu, zhenguo | pretty useful toolbox, albeit short..... |
|
| 26 Mar 2007 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Rubens, Michael | Thank you so much. I agree that this should be standard in the matlab function library, it is in mine. Cheers! |
|
| 26 Mar 2007 | cauchy Cauchy cdf, pdf, inverse cdf, parameter fit, and random generator. | Park, Il | Just what I needed. MLE parameter estimater. |
|
| 22 Mar 2007 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Hemberger, Dan | This is a great file. It is exactly what I was looking for. I wanted to use PDF files from Matlab with pdflatex, but I was encountering bounding box issues. A note, however: I had to include the path to Ghostscript .exe in the script. |
|
| 31 Jan 2007 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Hebeler, Felix | Great, I wish I had looked earlier... finally 4 figures do have the same extent, colorbarbwidth and readable font. If only grayscale would work for eps and pdfs... |
|
| 29 Jan 2007 | argcheck Sets missing input args to the defaults, does argument checking, and handles property id/value lists | Wang, Chengzhou | a very useful and handy script!Save me a lot of time and efforts! |
|
| 16 Jan 2007 | savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. | Hochgreb, Simone | Brilliant. I wish I hadn't spent so much time trying to fix matlab bugs. Thank you. |
|
| 10 Jan 2007 | readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. | Mannar, Kamal | Great routine, saved me lot of time reading data files containing both numeric and text data |
|
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.
Contact us at files@mathworks.com