Printmat no longer works

19 views (last 30 days)
Dalia Elshiaty
Dalia Elshiaty on 16 Dec 2021
Answered: Walter Roberson on 16 Dec 2021
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?

Answers (2)

Steven Lord
Steven Lord on 16 Dec 2021
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 on 16 Dec 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.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!