Main Content


List variables that are in connected data source

Since R2024a



    list = who(connectionObj) returns a list of the variables that are in the connected data source.

    If the data connection can see multiple definitions of the same variable (for example, in a data dictionary and in a referenced dictionary), the function lists each instance of the variable.


    collapse all

    dd ='myNewDictionary.sldd');
    dd.a = 7;
    dd.f = 10;
    2x1 cell array

    Input Arguments

    collapse all

    Connection to data source, specified as a object.

    Output Arguments

    collapse all

    List of variables that are in the connected data source, returned as a single-column cell array of character vectors.

    Version History

    Introduced in R2024a