Main Content


Get property values of data dictionary and data dictionary finder result objects

Since R2022a



    propVals = getPropertyValues(resultObject,propNames) returns the values of the properties specified in propNames in a cell array. propNames must have the names of the properties of the finder result object or the data dictionary represented by the finder result object.


    collapse all

    Find the data dictionary property values in the slrgex_fuelsys model.

    Import the required namespaces to avoid using long, fully qualified class names.

    import slreportgen.finder.*

    Load the model and search for the data dictionary objects in the model. For each result object, print the NumberOfEntries property.

    f = slreportgen.finder.DataDictionaryFinder();
    f.Name = "slrgex_fuelsys*";
    while hasNext(f)
        result = next(f);
    ans = 1x1 cell array
    ans = 1x1 cell array

    Input Arguments

    collapse all

    Finder result object, specified as an slreportgen.finder.DataDictionaryResult object.

    List of property values to access, specified as a string array or cell array of characters.

    Supported propNames elements are:

    If propNames contains invalid properties, the corresponding cell array value is N/A.

    Output Arguments

    collapse all

    Values of the accessed properties, returned as a cell array.

    Version History

    Introduced in R2022a