Skip to content

Encoding scalar values into array unnecessarily #70

Closed
@wrgrant

Description

Last one (for now) 😉

I notice that in this line you are packing scalar values into an array.
But only for floats. Integers don't do this.

Is this a bug or is this expected behavior?

With the current behavior, I end up with interesting data results such as this attached image (after pulling into JavaScript). Note, the single integer is placed directly as a scalar, while the single float value is packed into a single element array.

2020-10-01_17h06_01

I found that changing the float encoding line to:
txt=D_(mat,varargin{:});
yielded what I expect to be correct results.

But I'm curious if there is some other design decision that this change would break?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions