highpoint.m
上传用户:asli888
上传日期:2013-05-03
资源大小:7045k
文件大小:1k
- 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')