Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

datatipinfo

Produce short description of input variable

Syntax

datatipinfo(var)

Description

datatipinfo(var) displays a short description of a variable, similar to what is displayed in a data tip when debugging a MATLAB® program. See View Variable Value for an example of a data tip.

Examples

Get datatip information for a 5-by-5 matrix:

A = rand(5);

datatipinfo(A)
A: 5x5 double =
    0.4445    0.3567    0.7458    0.0767    0.4400
    0.7962    0.6575    0.3918    0.8289    0.9746
    0.5641    0.9808    0.0265    0.4838    0.6722
    0.9099    0.9653    0.2508    0.4859    0.4054
    0.2857    0.5198    0.7383    0.9301    0.9604

Get datatip information for a 50-by-50 matrix. For this larger matrix, datatipinfo displays just the size and data type:

A = rand(50);

datatipinfo(A)
A: 50x50 double

Also for multidimensional matrices, datatipinfo displays just the size and data type:

A = rand(5);
A(:,:,2) = A(:,:,1);

datatipinfo(A)
A: 5x5x2 double

Introduced before R2006a

Was this topic helpful?