uv_rotate.m
来自「一个研究声多普勒计程仪很好的工具箱」· M 代码 · 共 15 行
M
15 行
function [ur,vr] = uv_rotate(u,v,theta)
% uv_rotate: rotates (east, north) current components
%
% (u,v) are (east, north) current components.
% theta is rotation angle in compass degrees.
% ur is the current component in a direction
% theta degrees clockwise from east.
% vr is the current component in a direction
% theta degrees clockwise from north.
[dir,spd] = uv2polar(u,v);
dir = dir - theta;
[ur,vr] = polar2uv(dir,spd);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?