| Date | File | Comment by | Comment | Rating |
|---|---|---|---|---|
| 23 Nov 2009 | export_fig Exports figures nicely to a number of vector & bitmap formats. | Woodford, Oliver | A useful aspect of export_fig is that it can output the rasterized figure as an image array. For example, you can use this output to save the figure in grayscale, or with a specific resolution (pixels/inch value). |
|
| 20 Nov 2009 | export_fig Exports figures nicely to a number of vector & bitmap formats. | Woodford, Oliver | Bob:
|
|
| 18 Nov 2009 | real2rgb & colormaps Converts intensity matrices into truecolor images. | Woodford, Oliver | Richard: This issue is do do with the way MATLAB deals with the colormap, rather than the colormap itself, which is as it should be. MATLAB can only handle 256 level colormaps for indexed images (on Windows). Pcolor avoids the problem. So does using truecolor (rather than indexed) images. You can use real2rgb to generate a truecolor image from your 1024 level colormap and your indexed image. |
|
| 12 Nov 2009 | export_fig Exports figures nicely to a number of vector & bitmap formats. | Woodford, Oliver | A reminder for everyone: As I say in the description, please do email me (use the "Contact Author link on my author page) when you have a problem, rather than place it here. I'll respond quicker, and also people finding the function won't think it never works! |
|
| 10 Nov 2009 | print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. | Woodford, Oliver | Stefan: For some reason the eps file generated by MATLAB's print function doesn't name the fonts correctly. I suggest you contact TMW's technical support. If and when print generates an eps file correctly but print_pdf/export_fig doesn't then generate the correct pdf, then I will investigate further. |
|
| 08 Nov 2009 | print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. | Woodford, Oliver | Stefan: Two things might help. Firstly, you need to make Ghostscript knows about the fonts you want to include. You can tell it where to look by using the -sFONTPATH="C:\blah\blah" option (obviously using the right path). Secondly, you need to make sure the fonts are in a format that Ghostscript understands. For example, I don't think it understands the OpenType format. |
|
| 05 Nov 2009 | MATLAB Contest - Flooding All the files needed to develop and score an entry for the MATLABĀ® Programming Contest. | Woodford, Oliver | Fun |
|
| 26 Oct 2009 | export_fig Exports figures nicely to a number of vector & bitmap formats. | Woodford, Oliver | Michael: MATLAB's print often does funny things to a plot, such as changing the number of tick marks, when you export it, and I don't know how to avoid it. Export_fig uses print, and therefore unfortunately suffers from the same problem. |
|
| 19 Oct 2009 | Matlab Icon for Linux (with Transparency) A nice icon to use as Matlab start button in Linux. | Woodford, Oliver | The edges still don't appear to be transparent. If you have export_fig (here on the FEX) then the following gives a good result:
|
|
| 16 Oct 2009 | fullpath Generates a full path from a partial or relative path | Woodford, Oliver | Thanks Julian. To be correct, I should say that every directory except the bottom level file or directory must exist. I.e. only the bottom level directory is allowed to be non-existant. |
|
| 29 Sep 2009 | FindJObj - find java handles of Matlab graphic objects Find java objects contained within a specified java container or Matlab GUI handle | Woodford, Oliver | Great function. The interactive display is a brilliant feature. |
|
| 29 Sep 2009 | NVIDIA CUDA-based bilinear (2D) interpolation Incredible speed boost in comparison to the Matlab implementation. (interp2) | Woodford, Oliver | I wrote my own compile script for linux. See:
|
|
| 29 Sep 2009 | CUDA MEX Compile CUDA from within MATLAB! Just write cuda_mex filename.cu and it is ready. | Woodford, Oliver | Thanks, Haim. I've found a solution now. I use nvcc to convert.cu files to .cpp files, then call mex as normal. This avoids copying/changing any of the MATLAB scripts. |
|
| 25 Sep 2009 | CUDA MEX Compile CUDA from within MATLAB! Just write cuda_mex filename.cu and it is ready. | Woodford, Oliver | Sounds good, but currently no use to me - I'm desperate for an equivalent function for a linux system. |
|
| 25 Sep 2009 | NVIDIA CUDA-based bilinear (2D) interpolation Incredible speed boost in comparison to the Matlab implementation. (interp2) | Woodford, Oliver | Is this supposed to compile on linux, or only on Windows? I can't get it to compile on linux. |
|
| 22 Sep 2009 | export_fig Exports figures nicely to a number of vector & bitmap formats. | Woodford, Oliver | m g: The figure you wish to export must be open. You cannot specify it by the filename. The filename is that of the output file, not the input file. Erica: The filename should be a string. Just like any other MATLAB function, you can call export_fig using parentheses around the input arguments, or not, in which case the inputs are interpreted as strings; i.e. if one of the inputs is not a string then you must use parentheses. The outputs are not the same as those used by print. Type
|
|
| 12 Aug 2009 | SC - powerful image rendering Useful tool for rendering and outputting information rich images | Woodford, Oliver | Justin - if you prefer the image displaying properties of imagesc I suggest you use image(sc(X)). However, you then don't get the correct colorbar. If it's just the aspect ratio you don't like then call set(gca, 'DataAspectRatioMode', 'auto') after sc. |
|
| 09 May 2009 | Remosaic of RGB image array Converts a MxNx3 color image array into a 2Mx2N intensity mosaic. | Woodford, Oliver | This function neither inverts the demosaicing process (which doesn't halve the image size), nor generates an intensity image (each pixel is the intensity of one of the R, G, or B channels). |
|
| 25 Apr 2009 | print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. | Woodford, Oliver | David Meller: remove the last two input arguments ('start', 'end') from regexp on line 128. Please email me (use the contact author link on my author page) if you get any more errors. |
|
| 19 Apr 2009 | export_fig Exports figures nicely to a number of vector & bitmap formats. | Woodford, Oliver | Dan: Currently the only way to change the exported figure size is to change the Matlab figure size before exporting. To get round this, set the paper size options manually within export_fig. Matt C: Thanks for the great suggestion. Shameem/Mohammed: I wanted to keep the interface simple, so unfortunately there is no formal way to control file size. Jpeg file size can be changed by varying the quality setting within export_fig. For more options regarding quality/compression, see savefig (also on the FEX). |
|
| 10 Apr 2009 | Fix dashed and dotted lines in EPS export EPS of dashed and dotted lines export badly. This modifies the EPS file to fix them. | Woodford, Oliver | See fix_lines (http://www.mathworks.com/matlabcentral/fileexchange/23604) for an equivalent function which automatically changes dash length according to line width. |
|
| 09 Apr 2009 | print_eps Save figures to high quality eps files with cropped borders and embedded fonts. | Woodford, Oliver | Apparently a system restart can fix some ghostscript problems. (Thanks, Kelley). |
|
| 08 Apr 2009 | LINEAGE v1.1 LINEAGE helps visualize the evolution of the code throughout the Peg Solitaire contest | Woodford, Oliver | Ken: Could the images not appearing in the online html be due the difference in case of the image file extensions? The zip file images are .PNG while the html is looking for .png. I look forward to seeing them! |
|
| 30 Mar 2009 | Hungarian Algorithm for Linear Assignment Problems (V2.1) An extremely fast implementation of the Hungarian algorithm on a native Matlab code. | Woodford, Oliver | Excellent |
|
| 20 Mar 2009 | imdisp Display multiple images as a montage of subplots | Woodford, Oliver | Displaying more than one image will clear the figure. Displaying a single figure will put it in the current axes. The idea of having the filenames as captions is excellent, but there are a couple of issues that I can see which would significantly increase the complexity of the code, not least how and where to render the text so it is clearly visible, so I'm afraid I won't be doing it. I recommend someone giving it a try though. Figure size is chosen to maximize image size of large images, or give integer magnification for small images (thus avoiding nearest-neighbour resizing artefacts). Layout is chosen to allow the largest image size possible. Note that this will not necessarily minimize the number of blank spaces. Both figure size and layout are based on the size of the first image. If you have an example of it doing a bad job please email me the images and test script. |
|
| 17 Mar 2009 | SC - powerful image rendering Useful tool for rendering and outputting information rich images | Woodford, Oliver | The problem with not displaying titles and axis labels has now been fixed, thanks to C. Chaya's suggestion. |
|
| 17 Mar 2009 | SC - powerful image rendering Useful tool for rendering and outputting information rich images | Woodford, Oliver | Removing the axes is a "feature" of the display side of this code. Unfortunately it does mean subplot titles and axes labels are hidden. This is something I've tried hard to avoid, but haven't found a way yet. You can use IMSHOW instead, but still get the benefits of SC, thus:
|
|
| 19 Feb 2009 | print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. | Woodford, Oliver | You can generate a pdf with a transparent (or other colored) background using the following command prior to calling print_pdf:
|
|
| 11 Feb 2009 | KalmanFilter Simple Kalman Filter implementation | Woodford, Oliver | That's poor form. |
|
| 11 Feb 2009 | avi2gif Converts avi video files to gif animations | Woodford, Oliver | MATLAB does support color gif files. All gif files are 8-bit, so just supply indexed images with a 256 color colormap. Use rgb2ind to convert color images. |
|
| 11 Feb 2009 | Video: GUIDE Basics Tutorial Five minute video about building GUIs in MATLAB. | Woodford, Oliver | It's an informative video, but it would be better if we could stream the 7MB video from somewhere, rather than download and unzip a 12MB file. |
|
| 10 Feb 2009 | vol3d.m, vol3dtool.m 3-D Volume (Voxel) Rendering. | Woodford, Oliver | If you want a truecolor volume and/or user-defined alphamatte you can now get them at:
|
|
| 09 Feb 2009 | print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. | Woodford, Oliver | The bug reported in the last two comments has been fixed. |
|
| 05 Feb 2009 | Consolidator Consolidates common elements in x (may be n-dimensional), aggregating corresponding y. | Woodford, Oliver | This isn't entirely an ACCUMARRAYN (which I agree there definitely needs to be) because the aggregator function must (I believe) return a single value per column of the input matrix. However, ACCUMARRAY has the wonderful property of being able to return a cell array:
|
|
| 28 Jan 2009 | print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. | Woodford, Oliver | PDFs can be used in Latex to produce PDF files using pdflatex, but not PS files using latex & dvips. See:
|
|
| 27 Jan 2009 | print_eps Save figures to high quality eps files with cropped borders and embedded fonts. | Woodford, Oliver | MATLAB's print can't handle some accents. Using the latex interpreter is a more reliable method for including them, e.g.
|
|
| 19 Jan 2009 | print_eps Save figures to high quality eps files with cropped borders and embedded fonts. | Woodford, Oliver | All the path issues mentioned have been fixed. The bbox error with gsview has been fixed. The function uses the output of MATLAB's print, which automatically sets the background to white and italic Greek letters to non-italic (see http://www.mathworks.com/support/bugreports/details.html?rp=365825 for the latter). |
|
| 23 Dec 2008 | colorGray Creates full spectrum, blue-green-orange-salmon, colormap that maps to linear grayscale. | Woodford, Oliver | I wrote something like this (independently) myself. However, it is full greyscale (i.e. black to white) and has a wider gamut of colours. It is available as the 'contrast' colourmap of the SC package (id 16233), which also has other "colour to gray" colourmaps too: 'earth', 'pinker', 'pastel'. |
|
| 17 Dec 2008 | print_eps Save figures to high quality eps files with cropped borders and embedded fonts. | Woodford, Oliver | For Windows, download gs###w32.exe (where ### is a number, e.g. 863) from Sourceforge (follow the link at ghostscript.com), and extract it to the default location. Download the zip file named Xpdf-#.##pl2-win32.zip from http://www.foolabs.com/xpdf/download.html and extract the files in it to the folder
|
|
| 15 Dec 2008 | print_eps Save figures to high quality eps files with cropped borders and embedded fonts. | Woodford, Oliver | The function is written to work on all systems. I have used it on a Windows Vista system without any trouble. |
|
| 12 Dec 2008 | FIXPSLINESTYLE Fixes line styles in postscript files created from MATLAB (PRINT command) | Woodford, Oliver | This is a great idea, and one that inspired me to improve my own pdf rendering function, print_pdf. I've managed to get dash lengths to vary with line widths too, and make grid lines dotted rather than dashed. Thanks for the inspiration, Jiro! |
|
| 12 Dec 2008 | Fix dashed and dotted lines in EPS export EPS of dashed and dotted lines export badly. This modifies the EPS file to fix them. | Woodford, Oliver | This is a great idea. I haven't downloaded the file because I found the functionality first in fixPSlinestyle. However, you gave me the idea of automatically changing dash length with line width. This functionality is now available in my print_pdf and print_eps functions, so manual tinkering on a figure by figure basis is no longer needed. |
|
| 12 Dec 2008 | print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. | Woodford, Oliver | Apologies for the recent flurry of updates to this file. I was too quick to upload functionality that turned out to be buggy and incomplete. The latest version is now stable, and also enables dash lengths to change with line width - super! |
|
| 01 Dec 2008 | print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. | Woodford, Oliver | I wondered if that would cause problems. Duly fixed. Thanks, Cris. |
|
| 26 Nov 2008 | print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. | Woodford, Oliver | The latest version now finds Ghostscript automatically on Windows, if it was installed in the default location. |
|
| 26 Nov 2008 | print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. | Woodford, Oliver | Alternatively you can set the path in print_pdf.m by changing the line
|
|
| 26 Nov 2008 | print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. | Woodford, Oliver | You should edit the Path in the User Environment Variables. The way to do this varies between versions of windows. I suggest you search for the relevant instructions in google using:
|
|
| 25 Nov 2008 | distance.m A fully vectorized function that computes the Euclidean distance matrix between two sets of vectors. | Woodford, Oliver | Could be faster still by using bsxfun:
|
|
| 14 Nov 2008 | Myaa - My Anti-Alias for Matlab Better looking Matlab figures with anti-aliasing! | Woodford, Oliver | A nice idea that has greatly improved some figures I'm publishing. I would have liked the function to simply save the anti-aliased output to file (png). I've now written something similar which does just that. |
|
| 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. |
|
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