Antenna surface current distribution
Mostrar comentarios más antiguos
I had an antenna design in CST microwave studio. I want to draw the surface current distribution of the antenna in Matlab. I export the. txt file of the surface current distribution from CST, please see the attached files. Is it possible to draw the surface current distribution of the antenna using the Matlab environment?
5 comentarios
darova
el 8 de Abr. de 2020
You have nodes and some values in them. Do you have an order of how those vertices should be connected?
Face1 = [1 2 3];
Face2 = [6 7 8];

irfan Ullah
el 10 de Abr. de 2020
darova
el 10 de Abr. de 2020
try this
A = xlsread('Surface current.xlsx');
%%
x = A(:,1);
y = A(:,2);
z = A(:,3);
v1 = A(:,4);
xx = linspace(min(x),max(x),30);
yy = linspace(min(y),max(y),30);
zz = linspace(min(z),max(z),30);
[X,Y,Z] = meshgrid(xx,yy,zz);
V = griddata(x,y,z,v1,X,Y,Z);
%%
sx = [min(x)+5 max(x)-5];
sy = [min(y)+5 max(y)-5];
% sz = [min(z)+5 max(z)-5];
sz = linspace(min(z)+5,max(z)-5,5);
p = slice(X,Y,Z,V,sx,sy,sz);
set(p,'edgecolor',[1 1 1]*0.5)
axis equal vis3d
irfan Ullah
el 12 de Abr. de 2020
darova
el 12 de Abr. de 2020
You can try scatter3
ind = (v1-min(v1))/(max(v1)-min(v1))*254+1;
cmap = jet(255);
cmap = cmap(round(ind),:);
scatter3(x,y,z,10,cmap,'fill')
colorbar
It's the best you can do with pointcloud. See also isosurface
You need more information/data to create surface/body
Respuestas (0)
Categorías
Más información sobre Design, Analysis, Benchmarking, and Verification en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!