wavdist2.m
来自「一个计算海天背景的工程模型。由matlab编写」· M 代码 · 共 36 行
M
36 行
function y=wavdist2(za)
% WAVDIST2: plots wave distortion effects on wind at za.
% WAVDIST2(za) plots the effects of wave distortion on the
% wind Ua measured at height za for the following significant
% wave heights Hw=[0:2:8] in m.
%
% INPUT: za - wind measurement height [m]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 5/5/97: version 1.0
% 4/10/98: version 1.1
% 8/5/99: version 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Hw=[0:2:8];
Ua=[0.01:.01:20]';
N=length(Hw);
M=length(Ua);
Ut=zeros(M,N);
clg
hold on
for n=1:N
Ut=wavdist1(Ua,za,Hw(n));
plot(Ua,Ut)
end
title(['Predicted effects of wave distortion on wind speed at height ',num2str(za),' m'])
xlabel('Measured wind speed Ua (m/s)')
ylabel('Predicted wind speed Ut (m/s)')
text(10,2,'Wave height increment = 2 m')
grid
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?