我自己按照论文给的公式仿真了一下激光测距方程,但是始终得不到有效的结果,求教大家哪里出了问题?
采用的方程如下:
采用的代码如下:
-------------------------------------------------------------------------------------------------------------------------
%清零
clc;clear;
%数据设置
%大气单程透过率
T=1;
%发射系统透过率
taot=1;
%接收系统透过率
taor=1;
%目标系统面积,单位为平方米
At=10;
%接收系统面积,单位为平方米
As=0.25;
%目标漫反射率
rou=0.4;
%发射激光的峰值功率,单位为J
Pt=0.25;
%激光束散角,单位为rad
theta=0.00015;
%设置距离区间
R=0.1:0.01:1;
%预备计算
F1=taor .* taot .* As .* At .* rou .* cos(theta);
F2=power(pi,2) .* power(R,4) .* power(theta,2);
%计算接收处,接收到的功率
% Pr=2 .* power(T,2) .* Pt .* (( taor .* taot .* As .* At .* rou .* cos(theta) ) ./ ( power( pi,2) .* power(R,4) .* power(theta,2) ) );
Pr=2 .* power(T,2) .* Pt .* F1 ./ F2;
%绘制图像
subplot(211);
plot(R,Pr);
title('接收功率随测距距离变化曲线');
grid on;
xlabel('测量距离R/m');
ylabel('接收功率/J');
subplot(212);
plot(R,Pr./Pt);
xlabel('测量距离R/m');
ylabel('收发比');
----------------------------------------------------------------------------------------------------------------------------------------
求教是哪里出了问题?