Skip to content

Some confusion in gsw_resize.m #20

@xiehanzhou

Description

@xiehanzhou

Hi, I think the following approach doesn't seem to meet the requirements of the function itself.

data = data(ones(1,sz_SA(2)), :);

It should be
data = data(:,ones(1,sz_SA(2)));
The following all have similar issues
data = data(:,ones(1,sz_SA(1)));

data = data(ones(1,sz_SA(2)),:);

data = data(:,ones(1,sz_SA(1)));

If I have any misunderstandings about functions, please point them out. Thanks

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