highpoint.m
来自「MATLAB无线网络的各种例子,相当全面」· M 代码 · 共 24 行
M
24 行
function [Pr]=highpoint(z)
%------------------------------------------------------------------------
% Highpoint is a m file that calculates the highest points in a ground
% profile for microwave communications
%
% [Pr]=highpoint(z)
%
% Developed by: Hanna Aboukheir, Hanna2k2@hotmail.com
%----------------------------------------------------------------------
n=length(z)-1
% Specifies the matrix to explore
for i=0:n
H(i+1)=z(i+1)
Pr(i+1)=max(H)
end
% Plotting Results
figure(1)
plot(z)
title('Graphical Plot of Profile')
figure(2)
plot(Pr)
title('Highest Points on Profile')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?