It is seems that "printmat" is now obsolete with the current version of Matlab. Any alternatives that does the job and possibly have a similar syntax to printmat?

Réponses (2)

Steven Lord
Steven Lord le 16 Déc 2021

0 votes

Probably the simplest close replacement would be to turn your matrix into a table using array2table (specifying both RowNames and VariableNames) then displaying that table.
Walter Roberson
Walter Roberson le 16 Déc 2021
printmat() stil exists in the Control System Toolbox . It is not indexed in the MATLAB documentation because it is considered obsolete.
help printmat
PRINTMAT Print matrix with labels. PRINTMAT(A,NAME,RLAB,CLAB) prints the matrix A with the row labels RLAB and column labels CLAB. NAME is a string used to name the matrix. RLAB and CLAB are string variables that contain the row and column labels delimited by spaces. For example, the string RLAB = 'alpha beta gamma'; defines 'alpha' as the label for the first row, 'beta' for the second row and 'gamma' for the third row. RLAB and CLAB must contain the same number of space delimited labels as there are rows and columns respectively. PRINTMAT(A,NAME) prints the matrix A with numerical row and column labels. PRINTMAT(A) prints the matrix A without a name. See also: PRINTSYS.

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Produits

Version

R2021a

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by