Rank: 313 based on 231 downloads (last 30 days) and 1 file submitted
photo

Moritz Koehler

E-mail
Company/University
Technical University of Munich

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Moritz
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 May 2004 matrix2latex MATLAB array to LaTeX table converter. Author: Moritz Koehler table, matrix, array, data export, latex, data import 231 18
  • 4.7619
4.8 | 22 ratings
Comments and Ratings on Moritz's Files View all
Updated File Comment by Comments Rating
16 Mar 2012 matrix2latex MATLAB array to LaTeX table converter. Author: Moritz Koehler Stefan

Excellent function, although I seem to have a problem with extra invalid characters that latex complains about in the place of empty cells. Has anybody else seen this?

04 Aug 2011 matrix2latex MATLAB array to LaTeX table converter. Author: Moritz Koehler Farrahi Moghaddam, Reza

I may suggest following changes to add 'p{}' alignment:

Lines 73-87:
                case 3 % alignment
                    alignment = lower(pval);
                    if (strcmpi(alignment, 'right'))
                    alignment = 'r';
                    end
                    if (strcmpi(alignment, 'left'))
                    alignment = 'l';
                    end
                    if (strcmpi(alignment, 'center'))
                    alignment = 'c';
                    end
                    if (strcmpi(alignment, 'l')) && (strcmpi(alignment, 'r')) && (strcmpi(alignment, 'c')) && ~(strfind(alignment, 'p{'))
                    alignment = 'l';
                    warning('matrix2latex: ', 'Unkown alignment. (Set it to \''left\''.)');
                    end

and Line 124:
        fprintf(fid, '%s|', alignment);

03 Aug 2011 matrix2latex MATLAB array to LaTeX table converter. Author: Moritz Koehler Farrahi Moghaddam, Reza
17 Jul 2011 matrix2latex MATLAB array to LaTeX table converter. Author: Moritz Koehler xy

Thanks

25 Sep 2010 matrix2latex MATLAB array to LaTeX table converter. Author: Moritz Koehler Gaitan, Ruben

thanks a lot! makes life easier!!

Top Tags Applied by Moritz
array, data export, data import, latex, matrix
Files Tagged by Moritz
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 May 2004 matrix2latex MATLAB array to LaTeX table converter. Author: Moritz Koehler table, matrix, array, data export, latex, data import 231 18
  • 4.7619
4.8 | 22 ratings

Contact us at files@mathworks.com