Documentation Center

  • Trial Software
  • Product Updates

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 datatip in the MATLAB® debugger.

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

See Also

| | | |

Was this topic helpful?