微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 电磁仿真讨论 > Simulation of Electromagnetics

Simulation of Electromagnetics

时间:03-25 整理:3721RD 点击:
I want to creat a simulation of electric field distribution in matlab from a text file. The result likes the figures bellow. I tried some functions but it not be specified. Can you suggest me how to do?

It is not clear neither the properties of the material, the geometry, and the dynamics of the electromagnetic field that you want to examine. Anyway, you can find several examples at Mathworks website related to this subject.

But i don't know how to creat a simulation like this in matlab. I tried some functions such as imagesc or contour but it not be specified.

Hi,

Do you want to plot the figure from a data file or perform simulation ?
For the plot, you can use the function "contourf".

Example : contourf(your_matrix,100,'linestyle','none')
for a map with 100 color levels

I want to plot the figure from a data file with 3 columns, my data has 3 variables: VarName1, VarName2 & VarName3. My figure must express that VarName3 depends on VarName1 & VarName2. So in this case, what's "your_matrix" of contourf function?

I'll take the example of a radiation pattern of an antenna. So the matrix is 180x360, with theta from 0 to 180 and phi from 0 to 360. I think these are VarName1 and VarName2 ?
So VarName3 is the Gain level of the antenna. The use of the function is the following :

Code:
contourf(0:360,0:180,Gain,100,'linestyle','none');

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top