Search Comments and Ratings


Date File Comment by Comment Rating
06 May 2010 Legend to latex converter This function converts a Matlab legend to a text annotation for latex interpretation. Author: Emile Demarteau Marco

Unfortunately, the function does not work for me on histograms, I assume to all similar functions. Is it possible to extend this? Does this only have to do with the fact that it can not find appropriate line styles/markers in this case?

08 Sep 2009 2D/3D image segmentation toolbox 2D/3D image segmentation using level-set based active contour/surface with AOS scheme Author: Yan Zhang Marco

Hi Yan,

I tried to compile your toolbox on a linux system using gcc and still got some errors. I guess it would help linux people if you changed the following:

1. The comments in zy_binary_boundary_detection.c are not in ANSI C style. I know that double slashes are widely used, but in my case, I had to change all comments to be included in /* */ pairs. To make your code more widely compatible, changing this might help.
2. The error using std::exception is still there, because in BinaryHeap.c, line 56, you still pass an empty string to it. Replacing
throw std::exception("");
throw std::exception();
solved this for me.

After changing these two issues, everything compiled on my debian and R2008b.
Apart from that, thanks for sharing your code.

25 Jun 2009 getfilenames.m Do a recursive search for files. Author: Joseph Burgel Marco

Does not work for linux, because it uses the function "ismac" instead of isunix.
Additionally, I do not see why the wildcard should be set to an empty string on a mac, a '*' would make more sense, right?

Why not use the Matlab-original function 'what'? At least for Matlab-related files, it gives you exactly what you want to do with getfilenames.

31 Mar 2009 PlotPdfTex PDF file exportation with LaTeX text and symbols Author: Emmett L Marco

The file works nicely and based on plotepstex. However, there is a bug in the function:
The function creates an eps file called and deletes this temporary file after the pdf has been created.
While this itself is no problem, the function uses the same base string for the eps as for the pdf. Now, if I created a eps with that name before, e.g., using 'plotepstex', it is deleted by 'plotpdftex'.
To fix this, simply change the function such that it uses a (second) temporary file name instead of the string given by the user. Here's the diff output (diff new old):

< Str = sprintf('eps2eps -dNOCACHE %s3.eps',TempName,TempName);
> Str = sprintf('eps2eps -dNOCACHE %s.eps',TempName,FileName);
< Str = sprintf('epstopdf --outfile=%s.pdf %s3.eps',FileName,TempName);
> Str = sprintf('epstopdf %s.eps',FileName);
< dos(sprintf('rm %s3.eps',TempName));
> dos(sprintf('rm %s.eps',FileName));
< dos(sprintf('del %s3.eps',TempName));
> dos(sprintf('del %s.eps',FileName));
< %dos(sprintf('rm %s.eps',FileName));
> dos(sprintf('rm %s.eps',FileName));
< %dos(sprintf('del %s.eps',FileName));
> dos(sprintf('del %s.eps',FileName));

Emmet, if you could consider this please for an update.

Thanks for the function, works nicely apart from the above mentioned.

Contact us