Skip to content

empty cell not correctly managed #104

@Nelson-numerical-software

Description

Tested with 1.5.13:

A = cell(1); 
save('empty_cell.mat', 'A', '-v7.3')

load with matio:

matvar_t * elementMatVar = Mat_VarGetCell(matVariable, (int)k);

elementMatVar->class_type with k = 0 returns: MAT_C_EMPTY and not MAT_C_DOUBLE (expected)
elementMatVar->data_type MAT_T_UNKNOWN

same code with a value works:

A = {1} // or  A = {[]}
save('cell.mat', 'A', '-v7.3')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions