📄 polar2uv.m
字号:
function [u,v] = polar2uv(dir,spd)
% polar2uv: (east, north) currents of direction and speed
%
% u is eastward current component
% v is northward current component
% dir is compass direction of current
% (90 for eastward flow, 270 for westward)
% spd is magnitude of current
%
% Fran Hotchkiss, February 20, 1998.
dir = dir .* pi ./180.;
[v,u] = pol2cart(dir,spd);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -