dash.dataSource.hdf.setVariable

Ensure variable exists in HDF file


Syntax



Description

obj = obj.setVariable(var, fileVars)

Checks that a variable being loaded is in the list of variables in a HDF file. If not, throws an error. If so, saves the variable name.


Input Arguments

var

string scalar
Name of the variable to load from the file

fileVars

string vector
List of variables in the file

Output Arguments

obj

scalar dash.*dataSource*.*hdf* object
The object with an updated variable name