Name

edf_gender_str2scalar — Converts the gender string into a scalar

Calling Sequence

[gender_scalar]=edf_gender_str2scalar(gender_string);

Description

Converts the gender string into a scalar.

gender_string - a string which contains a gender, which is the output of the function edf_get_gender()

gender_scalar - scalar which contains a gender (0 - male, 1 - female), which can be feeded into the function edf_set_gender() .

Examples

// copy gender from the file "demo.bdf" to the new bdf/gdf-file.
    edf_set_gender(handle, edf_gender_str2scalar(edf_get_gender("demo.bdf")));

Authors

Holger Nahrstaedt