CODES / common / disp_matrix

Display matrix with labels

Contents

Syntax

Usage

xlab must be empty ([]) or a cell array such that length(xlab)=size(A,1). ylab must be empty ([]) or a cell array such that length(ylab)=size(A,2).

Example

Display magic matrix:

CODES.common.disp_matrix(magic(3),{'X1','X2','X3'},{'Y1','Y2','Y3'})
    Y1  Y2  Y3
X1   8   1   6
X2   3   5   7
X3   4   9   2

See also

disp_box time

Copyright © 2015 Computational Optimal Design of Engineering Systems (CODES) Laboratory. University of Arizona.

Computational Optimal Design of
Engineering Systems