polar2uv.m
来自「一个研究声多普勒计程仪很好的工具箱」· M 代码 · 共 14 行
M
14 行
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 + =
减小字号Ctrl + -
显示快捷键?