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?

답변 (2개)

Steven Lord
Steven Lord 2021년 12월 16일

0 개 추천

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 2021년 12월 16일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

릴리스

R2021a

태그

질문:

2021년 12월 16일

답변:

2021년 12월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by