We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I think the following approach doesn't seem to meet the requirements of the function itself.
GSW-Matlab/Toolbox/library/gsw_resize.m
Line 53 in 7709377
data = data(:,ones(1,sz_SA(2)));
Line 55 in 7709377
Line 58 in 7709377
Line 61 in 7709377
The text was updated successfully, but these errors were encountered:
Using gsw_resize function yields this result
>> data = 1:10; n = [10,10]; data1 = gsw_resize(data,n) data1 = 1 1 1 1 1 1 1 1 1 1
It uses data = data(:,ones(1,sz_SA(1))) I think it should be
data = data(:,ones(1,sz_SA(1)))
>> data2 = data(ones(1,n(1)),:) data2 = 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10
Sorry, something went wrong.
No branches or pull requests
Hi, I think the following approach doesn't seem to meet the requirements of the function itself.
GSW-Matlab/Toolbox/library/gsw_resize.m
Line 53 in 7709377
It should be
data = data(:,ones(1,sz_SA(2)));
The following all have similar issues
GSW-Matlab/Toolbox/library/gsw_resize.m
Line 55 in 7709377
GSW-Matlab/Toolbox/library/gsw_resize.m
Line 58 in 7709377
GSW-Matlab/Toolbox/library/gsw_resize.m
Line 61 in 7709377
If I have any misunderstandings about functions, please point them out. Thanks
The text was updated successfully, but these errors were encountered: