Friday, July 19, 2013

bst File Which Handles Multiple Authors (reduces it to et al)

This bst file seems to handle the multiple author issue (listing the first three authors and then compacting the rest with et al).

http://www.biology.emory.edu/Antia/pjohnson/bst/mbe.bst

Sunday, June 9, 2013

Matlab Output into latex table (Matlab to Latex Table)

This post comments on turning Matlab output into raw latex for inclusion in a latex table, for using \begin{tabular} \end{tabular}.

My preferred way to do this is to use latex.m to convert a Matlab matrix into latex format that can then be posted into tabular.

This is a common problem in simulation studies, where you use Matlab to summarize the results of a simulation study into a table.

I. Caveats regarding my solution:
1. There are probably fancier ways to do this now. I'm using Matlab2latex technology from about 2002. You can check on the central file exchange
2. Also, there might be a way to do this in base-Matlab. I got some file off of Central file exchange. I will note that sometimes a basic solution is very helpful because there are no extra bells/whistles and it is not hard to figure out the options of simple user supplied functions.

II. Other Posted Solutions:
1. http://pundit.pratt.duke.edu/wiki/MATLAB:LaTeX_Table_Writer
2. You can see more advanced ideas in the CFX
http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=latex+table
3. matrix2latex seems pretty good too.

III. Dependencies (what file exchange .m files am I using)

IV. My solution

1. use latex.m - This file will output a MATLAB numeric matrix in a format suitable to paste into a LaTeX tabular environment. 
http://www.mathworks.com/matlabcentral/fileexchange/2832-latex
2. internal comment. see gmail FBlog with code. Also, see work from Screening paper.