Deletes an attribute from an existing dataset.
Syntax |
Description |
---|---|
R.deleteattribute("a_name"); |
Deletes the attribute "a_name" from the dataset R. The attribute can be a scalar attribute, a vector attribute or an unstructured attribute. See Dataset introduction for details about the required dimensions of attribute data. |
Examples
This example uses a matrix dataset to store cross-section (sigma) data as a function of frequency. In this case, the cross-section data sigma is the attribute, and frequency is the parameter. Then the attribute sigma is deleted from the dataset sigma.
sigma = matrixdataset("cross_section"); sigma.addparameter("lambda",c/f,"f",f); # add parameter f and lambda sigma.addattribute("sigma",CS); # add attribute CS visualize(sigma); # visualize this dataset in the Visualizer
sigma.deleteattribute("sigma");
visualize(sigma);
See Also
rectilineardataset , addattribute , addparameter , visualize , datasets , getparameter , getattribute , matrixdataset