Function es::getVariable

Function Documentation

matvar_t *es::getVariable(mat_t *matfp, const std::string var_name, bool print_var = true, int max_rank = 2)

Get pointer to a variable and check validity. Optionally print variable and check rank.

Return
Parameters
  • matfp:
  • var_name:
  • print_var:
  • max_rank: The maximum rank of the variable. Default 2 as everything is an array in MATLAB.