1 Star 0 Fork 0

Briefly/rldemo_paper_code

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
testIntensityDist.m 802 Bytes
一键复制 编辑 原始数据 按行查看 历史
Briefly 提交于 2023-09-10 17:56 . 添加所有文件
yaw = 0:10:360;
pitch = -90:10:90;
waveenv = WaveEnv();
[X,Y ]= meshgrid(yaw,pitch);
Z = zeros(length(pitch),length(yaw));
for p = 1:length(pitch)
for y = 1:length(yaw)
int = waveenv.getIntensityByYP(-0.5,0.5,yaw(y),pitch(p),0);
Z(p,y) = int;
end
end
figure
mesh(X,Y,Z)
xlabel('yaw')
ylabel('ptich')
%每一列的最大值
[val,rows]=max(Z);
[mv,col]=max(val);
[x,y] = find(Z==mv,1);
[yaw(y),pitch(x),mv]
% 220.0000 20.0000 1.5869e-07
% 40.0000 -20.0000
% figure
% y = zeros(length(pitch),1);
% for p = 1:length(pitch)
% int = env.getIntensityByYP(-0.5,0.5,0,pitch(p),0);
% y(p) = int;
% end
% plot(pitch,y)
% figure
% q = zeros(length(yaw),1);
% for y = 1:length(yaw)
% int = env.getIntensityByYP(-0.5,0.5,yaw(y),30,0);
% q(y) = int;
% end
% plot(yaw,q)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/briefly/rldemo_paper_code.git
git@gitee.com:briefly/rldemo_paper_code.git
briefly
rldemo_paper_code
rldemo_paper_code
master

搜索帮助