Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Orchard 1.6.1
  • Tine 2.0 Kristina 2013....
  • Acorn Media Player 1.8
  • ZenPen
  • Google Language Transla...
  • tTooltip 2.0
  • Obfuscate.js
  • validationJ 1.0.0
  • Starling 1.3
  • Video Sidebar Widgets 5.5
  • Home > Scripts > Scientific/Engineering

    matrix2latex

    Download button


    Downloads: 869  Tell us about an update
    User Rating:
    Rated by:
    Good (3.3/5)
    21 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Moritz Koehler | More scripts
    www.mathworks.com
    Freeware 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    Matlab
    September 26th, 2007, 12:38 GMT
    C: \ Scientific/Engineering

     Read user reviews (0)  Refer to a friend  Subscribe

    matrix2latex description

    matrix2latex - MATLAB array to LaTeX table converter.

    This function converts an MATLAB 2-dimensional array (matrix) which can be numerical or a cell array, into proper formated LaTeX code. The result will be a file that can be included into any LaTeX document, and will display the data through the 'tabular' environment.

    Usage:
    matrix2late(matrix, filename, varargs)
    where
    - matrix is a 2 dimensional numerical or cell array
    - filename is a valid filename, in which the resulting latex code will be stored
    - varargs is one ore more of the following (denominator, value) combinations
    'rowLabels', array -> Can be used to label the rows of the resulting latex table
    'columnLabels', array -> Can be used to label the columns of the resulting latex table
    'alignment', 'value' -> Can be used to specify the alginment of the table within the latex document. Valid arguments are: 'l', 'c', and 'r' for left, center, and right, respectively
    'format', 'value' -> Can be used to format the input data. 'value' has to be a valid format string, similar to the ones used in fprintf('format', value);
    'size', 'value' -> One of latex' recognized font-sizes, e.g. tiny, HUGE, Large, large, LARGE, etc.

    Example input:
    matrix = [1.5 1.764; 3.523 0.2];
    rowLabels = {'row 1', 'row 2'};
    columnLabels = {'col 1', 'col 2'};
    matrix2latex(matrix, 'out.tex', 'rowLabels', rowLabels, 'columnLabels', columnLabels, 'alignment', 'c', 'format', -6.2f', 'size', 'tiny');

    The resulting latex file can be included into any latex document by:
    /input{out.tex}

    Requirements:

    · MATLAB Release: R13



    TAGS:

    matrix latex | scientific engineering | matrix engineering | | |

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM