% "arect" displays a 3-D plot of a pattern.
function arect(pat, uvw, fig)
% pat: [m, n] array of pattern values
% uvw: [3, m, n] corresponding direction vectors
% where m and n are the
height
% and width of the array of
% pattern values. Each
column
% is a triple of coordinates
% [u,v,w].
% fig (optional): figure number
if nargin < 3
fig = 1;
end
s = size(uvw); s = s([2 3]);
figure(fig);
u = reshape(uvw(1,:), s);
v = reshape(uvw(2,:), s);
surfl(u, v, max(-10, 10*log10(max(pat,realmin))));
zl = [-10, 5*ceil(2*log10(max(max(pat))))];
set(gca, 'Zlim', zl);
shading('interp');
colormap(gray(64));
//////////////////////////////////////////////////////////////////////////
% "makepattern" computes values of an array pattern; cover function for
% apattern
function pat = makepattern(x, on, ph, i, uvw)
% x [<number of elements>, 3]: element locations (units of
% lambda)
% on [<number of elements>, npop]: "on" values (boolean) for
% population (return from
% athin)
% ph [<number of elements>, npop]: phase values for population
% (return from athin)
% i: index of individual
% uvw [3, <number of directions>]: points on unit sphere
(direction
% vectors) at which to sample
% pattern
% Returns
% pat [1, <number of directions>]:
% array of pattern values
% Alternatively, <number of directions> may be replaced with a list
% of two (or more) dimension, which then become the shape of the
% result.
pat = apattern([x(on(:,i),:), ph(on(:,i),i)], uvw);
arect..rar_3d plot_方向图_方向图 3d_方向图3D_方向图函数
版权申诉
160 浏览量
2022-09-23
07:50:43
上传
评论
收藏 1KB RAR 举报
我虽横行却不霸道
- 粉丝: 72
- 资源: 1万+
最新资源
- 上市公司-股票性质数据-工具变量(民企、国企、央企)2003-2022年.dta
- 上市公司-股票性质数据-工具变量(民企、国企、央企)2003-2022年.xlsx
- Reeds+Shepp曲线算法讲解和实现.pdf
- 毕业设计基于SpringBoot+MyBatisPlus+MySQL+Vue的外卖配送信息系统源代码+数据库
- 词向量(Word Embeddings)是自然语言处理(NLP)领域的一种重要技术.txt
- Surfer,线性函数
- MyBatis 的动态 SQL 是其核心特性之一.txt
- 时代的sdddsddsddsd
- 基于哈希链表的简单人员信息管理系统
- 其他类别JdonFramework开源框架 v5.1 Build20071025-jdonframework-5.1.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论0