Skip to content

Too many outputs requested. #4

@GillesC

Description

@GillesC

I get the following error when calling data = readNPY('../recordings/iq_time_samples_13_57_53.npy');

Too many outputs requested.  Most likely cause is missing [] around left hand side that has a comma separated list expansion.

Error in readNPYheader (line 54)
    dataType = dtypesMatlab{strcmp(dtNPY(2:3), dtypesNPY)};

Error in readNPY (line 10)
[shape, dataType, fortranOrder, littleEndian, totalHeaderLength, ~] = readNPYheader(filename);

Error in main (line 90)
    data = readNPY('../recordings/iq_time_samples_13_57_53.npy');

More information:

K>> dtNPY(2:3)

ans =

    'c1'

K>> dtypesNPY

dtypesNPY =

  1×11 cell array

    {'u1'}    {'u2'}    {'u4'}    {'u8'}    {'i1'}    {'i2'}    {'i4'}    {'i8'}    {'f4'}    {'f8'}    {'b1'}

K>> strcmp(dtNPY(2:3), dtypesNPY)

ans =

  1×11 logical array

   0   0   0   0   0   0   0   0   0   0   0

K>> dtypesMatlab

dtypesMatlab =

  1×11 cell array

  Columns 1 through 9

    {'uint8'}    {'uint16'}    {'uint32'}    {'uint64'}    {'int8'}    {'int16'}    {'int32'}    {'int64'}    {'single'}

  Columns 10 through 11

    {'double'}    {'logical'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions