Search Comments and Ratings

go

   
Date File Comment by Comment Rating
07 Nov 2014 Click3dPoint Select a point from a 3D point cloud by clicking on it. Author: Babak Taati Oliver Woodford

Very useful. Thanks!

05 Nov 2014 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Philipp: There is absolutely no chance without an issue raised on GitHub.

05 Nov 2014 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Valjean, R2D2: For the 100th time (and beginning to wonder what is wrong with people), I do not address issues placed in the comments. If you want me to look at your problem, raise a GitHub issue and we can talk.

04 Nov 2014 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Steven: Sorry I have to repeat myself again. I don't know, and I won't look into it until you raise a GitHub issue. Thanks.

04 Nov 2014 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

R2D2: Unfortunately I can't fix bugs in either Yosemite or Ghostscript. However, if you install Ghostscript 9.10 from here:
http://pages.uoregon.edu/koch/Ghostscript-9.10.pkg
does that fix things for you?

22 Oct 2014 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Michael, Adam: Surely one of you can (a) read and (b) file an issue on the github page, to which I will respond. I can't help you with what you've provided. Thanks.

14 Oct 2014 SC - powerful image rendering Useful tool for rendering and outputting information rich images Author: Oliver Woodford Oliver Woodford

as hz: Absolutely. A = sc(data). Read the help!

09 Oct 2014 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Fabian: R2014b works for me. If you have a reproducible error I suggest you provide me the code in an issue on github.

08 Oct 2014 maximize Platform independent function to maximize a figure window. Author: Oliver Woodford Oliver Woodford

Jeffrey: Are you using an older version? The current version has only 21 lines, and works in R2014b (albeit throwing a warning).

06 Oct 2014 SC - powerful image rendering Useful tool for rendering and outputting information rich images Author: Oliver Woodford Oliver Woodford

Jon: imsc can take the color scale as an input, so you just pass that in with the values you want. E.g.

imsc(mat3, [cmin cmax], 'jet', 'w', isnan(mat3));

05 Sep 2014 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Arnold: Try using imsc from my sc package. It doesn't use patch objects, but can still fill in NaNs with any colour you want.

29 Aug 2014 append_pdfs Append/concatenate multiple PDF files into a single file using Ghostscript. Author: Oliver Woodford Oliver Woodford

Andrea: You can't (unless you edit the code, of course). The solution is to delete the file beforehand if you want to overwrite it.

02 Aug 2014 SC - powerful image rendering Useful tool for rendering and outputting information rich images Author: Oliver Woodford Oliver Woodford

Amirali: Try clicking on the figure to select it, then pressing a key on the keyboard. The surface mesh example is given in the demo. The code is:
surf(Z, sc(Z, 'hicontrast'), 'edgecolor', 'none');
where Z is the heightmap.

28 Apr 2014 SC - powerful image rendering Useful tool for rendering and outputting information rich images Author: Oliver Woodford Oliver Woodford

Claudia: Just click the "Get from GitHub" button.

25 Apr 2014 2048 MATLAB Edition This is a MATLAB implementation of the 2048 game Author: Jiro Doke Oliver Woodford

24 Apr 2014 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

I repeat, please email me bug reports rather than posting them here. Better still, fork the repository, fix the bug, and create a pull request.

Hassan: Your example worked as expected on my system.

Alvaro: Feel free to email me a minimal working example.

04 Apr 2014 Example MATLAB class wrapper for a C++ class An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. Author: Oliver Woodford Oliver Woodford

Joel: It would seem to be valid, but I cannot comment on whether it is safe. I would also imagine the pointer points to a static string, though. Try it.

03 Apr 2014 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Jo: Many thanks for the bug report. However, I do ask (in the description above) that people email me bug reports, rather than post them here.

18 Mar 2014 Example MATLAB class wrapper for a C++ class An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. Author: Oliver Woodford Oliver Woodford

An Tran Lam: The type cast is required because MATLAB arrays can only contain values, not pointers, and pointers can be up to 64 bits long (on current hardware).

05 Feb 2014 SC - powerful image rendering Useful tool for rendering and outputting information rich images Author: Oliver Woodford Oliver Woodford

Javier: Both the help text and the demo provide the answer -
>> help sc
>> sc
This is what you want to use -
>> sc(cat(3, likelihood_img, img), 'prob')

15 Jan 2014 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Jonne: There is no known issue with thick lines. For example,
>> plot(rand(3), 'LineWidth', 4);
>> export_fig test -png -pdf
works as expected on my PC.

10 Jan 2014 Example MATLAB class wrapper for a C++ class An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. Author: Oliver Woodford Oliver Woodford

Shawn: There's nothing special about that number. But, no, you don't need a different signature per class, as the code also records the name of the class (a second signature, if you like), and checks this against the expected name when casting back to a pointer. This means it would throw an error if you tried to cast a pointer of one class to a pointer of another.

09 Jan 2014 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Edison: Set the figure width to 17.3cm, and set the output dpi using the -r300 option in the call to export_fig. If that figure is still too large for your screen, then halve the figure size and double the resolution. If you want the tiff width to say 17.3cm in this case then output the bitmap as an argument from export_fig, and save it yourself using imwrite (setting the 'Resolution' option to 300).

06 Jan 2014 Example MATLAB class wrapper for a C++ class An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. Author: Oliver Woodford Oliver Woodford

Shawn: The code is as intended. I wrote it that way with the intention that people would change the lower bound on number of inputs to suit their needs. You could have an upper bound too, but it's not vital, whereas a lower bound is.

04 Jan 2014 Example MATLAB class wrapper for a C++ class An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. Author: Oliver Woodford Oliver Woodford

Greg: Thanks for your input. Yes, the locking mechanism causes problems if you free an instance in a different mex file from that in which it was allocated. You can certainly remove the locking. However, as I stated in the associated newsgroup thread, I found that MATLAB crashes when I call "clear functions" if I don't use the file lock. As such, my advice is to keep the lock where possible, and design your software such that each instance is freed in the same mex file it is allocated in.

10 Dec 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Jaap: sounds like you're shadowing MATLAB's print() with another function of the same name.

02 Dec 2013 real2rgb & colormaps Converts intensity matrices into truecolor images. Author: Oliver Woodford Oliver Woodford

Georgia: As I stated to Bui Yuki below, the rescale function comes in the zip file of this submission, in the subdirectory called "private". You need to put the folder containing the files on your MATLAB path or else cd to that directory (as with any function).

25 Oct 2013 genpath_exclude Executes like genpath, but can ignore specified directories. Author: Jesse Hopkins Oliver Woodford

Works a treat.

03 Oct 2013 append_pdfs Append/concatenate multiple PDF files into a single file using Ghostscript. Author: Oliver Woodford Oliver Woodford

Christa: To save to a particular folder, just specify the full or relative path in the output filename. I haven't seen the blank first page, so can't help there.

Corey: I haven't seen the 128 character limit problem, so can't really help. However, are you using the functional form of the command? E.g.:
output = 'test.pdf';
inputs = {'long_name1.pdf', 'long_name2.pdf'};
append_pdfs(output, inputs{:});

27 Sep 2013 Example MATLAB class wrapper for a C++ class An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. Author: Oliver Woodford Oliver Woodford

Bin: Those members provide a means of checking that you are not casting a random memory address to a pointer to an instance of the base class. Doing that could lead to some bad things happening, so it is a protection against that.

17 Sep 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Sanka: I suspect this has nothing to do with export_fig and everything to do with the software you're using to view the eps file.

Lennart: You can set the default background color for MATLAB figures, outside of export_fig. There is no 'transparent' option, but the help text does mention a '-transparent' option.

09 Sep 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

David: The grid lines are the width specified (by setting the axes line width), but the segments are shorter (there's no option to change this). Try using thicker grid lines.

15 Aug 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Tim: You're missing the -nocrop option.

08 Jul 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Igor: You cannot specify the screen resolution in a call to export_fig. However, you can specify your figure size in units that are independent of pixel pitch, such as 'cm'. I suggest you try that.

14 Jun 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Nicky: That's difficult to fix in export_fig. However, a workaround is to draw the grid lines or the axis bounding box manually to be able to get the desired ordering.

13 Jun 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

m_user: You can export a particular axes in a figure just by passing in a handle, but there is no support for rendering just part of an axes - I do not intend to implement this either. I suggest you use the newsgroup or Answers to find out the many other ways in which you might achieve what you want.

07 Jun 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Derek: The current version fixes this.

Anthi: In the example export_fig('C:/Users/Me/Documents/figures/myfig'), "myfig" IS the name.

28 May 2013 SC - powerful image rendering Useful tool for rendering and outputting information rich images Author: Oliver Woodford Oliver Woodford

Abbas: The comments box is not the place for questions. Note that sc() and imsc() can take multiple masks, e.g.:
>> Z = peaks(256);
>> imsc(Z, 'jet', [0 0 0.5], Z>0&Z<0.2, [0 0 0.7], Z<-0.1&Z>-0.3);

11 May 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

arnold: I didn't. Please don't take my suggestion the wrong way :). Try ConvertPlot4Publication.

10 May 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

arnold: The goal of export_fig is to export what is on screen. By all means write a script that makes your figure the right size, have the correct line widths, fonts, etc., then calls export_fig with the correct resolution. Or use one of the several submissions that already do this.

23 Apr 2013 ScreenCapture - get a screen-capture of a figure frame or component ScreenCapture gets a screen-capture of any Matlab GUI handle, or specified screen area rectangle Author: Yair Altman Oliver Woodford

Great tool. Worked when getframe() didn't.

17 Apr 2013 Performance in object-oriented matlab code A very simple example to demonstrate an observation of mine regarding the use of classes in matlab. Author: Dimitrios Korkinof Oliver Woodford

Interesting. It would be useful to see how a handle class performs in comparison.

17 Apr 2013 IM2GIF Converts a multiframe image to an animated GIF. Author: Oliver Woodford Oliver Woodford

Shaun: As the error suggests, you are trying to concatenate images of different sizes. I don't get this error. Make sure your figure is not changing size between calls to export_fig() for some reason.

10 Apr 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Oliver Woodford

Michael: Note that export_fig does not transparency in patch objects in vector formats. Only a transparent background is supported.

03 Apr 2013 vol3d v2 3-d volume (voxel) rendering Author: Oliver Woodford Oliver Woodford

Naomi - The help text clearly states:
vol3d(...,'XData',x) 1x2 x-axis bounds. Default: [0 size(data, 2)].
vol3d(...,'YData',y) 1x2 y-axis bounds. Default: [0 size(data, 1)].
vol3d(...,'ZData',z) 1x2 z-axis bounds. Default: [0 size(data, 3)].
I have nothing more to add.

10 Mar 2013 Example MATLAB class wrapper for a C++ class An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. Author: Oliver Woodford Oliver Woodford

Szigeti: your compile error is not related to this submission.

Fernando: the error you get seems self explanatory. You need to make sure class_handle.hpp, which comes with this submission, is in the same folder as the cpp file being compiled.

10 Jan 2013 Figure Rotator Allows a user to easily navigate around a target point in a 3D figure using a mouse. Author: Tucker McClure Oliver Woodford

I like that it uses the scroll wheel.
Here's yet another:
http://www.mathworks.co.uk/matlabcentral/fileexchange/38019-figure-control-widget

10 Jan 2013 clearnot CLEARNOT clears all variables except the input variables Author: Andrew Bliss Oliver Woodford

Have you seen the submissions keep, keep2, keep3, keep4, keep5? They all do the same thing as this. In what way is this submission an improvement?

18 Dec 2012 Example MATLAB class wrapper for a C++ class An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. Author: Oliver Woodford Oliver Woodford

Artem: If you want to put this in a class directory then the mex file needs to go in a subdirectory of that folder called private.

17 Dec 2012 Example MATLAB class wrapper for a C++ class An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. Author: Oliver Woodford Oliver Woodford

Artem: Did you mex the file, as explained in the file description?

Contact us