Opened 8 years ago

Closed 8 years ago

#688 closed bug (Fixed)

Bug in utility/rotate_vec.m

Reported by: colucix Owned by: arango
Priority: minor Milestone: Matlab Processing Scripts
Component: Matlab Version: 3.7
Keywords: Cc:

Description (last modified by arango)

At lines 126:127 for 3D vector fields, we should have in rotate_vec.m:

        Vout(i,1:Mm,:)=-UatV(1,2:M ,:).*sin(Vangle(1,1:Mm,:))-        ...
                        Vinp(i,1:Mm,:).*cos(Vangle(1,1:Mm,:));

instead of

        Vout(i,1:Mm)=-UatV(1,2:M ).*sin(Vangle(1,1:Mm))-              ...
                      Vinp(i,1:Mm).*cos(Vangle(1,1:Mm));

This is for the rotation at the edges [1,L] of the vector field. Thank you.

Change History (1)

comment:1 by arango, 8 years ago

Description: modified (diff)
Resolution: Fixed
Status: newclosed

Yes, good catch. Thank you!

Note: See TracTickets for help on using tickets.