Skip to content

about atand #1

@bpodq

Description

@bpodq

The code:
for i=1:nr
for j=1:nc
Theta(i,j) = atand(G_Y(i,j) ./ G_X(i,j));
if Theta(i,j) < 0
Theta(i,j) = 360 + Theta(i,j);
end
end
end

the value of atand is between -90 and 90, and the code above should be replaced by
Theta = atan2d(G_Y, G_X);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions