Query the value of an attribute for a matrix variable. The full list of available attributes can be found in the Attributes section.
AttributeError if the requested attribute doesn't
exist or can't be queried.
The result is returned in a NumPy ndarray with the same shape as the
attrname: The attribute being queried.
Current values for the requested attribute.