how to export the impedance matrix from Feko into Matlab

조회 수: 9 (최근 30일)
Ano
Ano 2016년 11월 7일
댓글: 宇轩 2024년 3월 12일
Hello, I would like to export the impedance matrix from FEKO into matlab but Matlab says that the .mat file is corrupted, any help in this issue?! Thank you in advance
  댓글 수: 6
Ano
Ano 2018년 2월 24일
Hello! in order to be able to plot that graph the eigenvalues matrix should be of size (339x22) which means that you get the eigenvalues for each frequency sample.
宇轩
宇轩 2024년 3월 12일
Excuse me, I am also exporting the impedance matrix from feko, but now I have encountered some problems. The dimension of the impedance matrix I exported from editfeko is 22265x22265, but my antenna array only has 10 units, so it should be 10x10 dimension. Do you know the reason for this? Thank you.

댓글을 달려면 로그인하십시오.

답변 (2개)

Ano
Ano 2018년 11월 2일
the process of exporting the impedance matrix from Feko into Matlab will be illustrated. To begin with, the antenna design is build and meshed in CADFEKO without specifying any feeding structure. Then, under the rubric solve/run the EDITFEKO option is activated. EDITFEKO is a script file where the meshed geometry is imported, and the solution configurations are established using the control cards. The foremost cards to be edited are EG card used to set the solution accuracy to double precision, and FR card that serves for setting the simulation frequency (single frequency option is used). After that the PS card is edited, and the option allowing to save the impedance matrix elements to *.mat file is chosen. No further settings are required for FEKO files, and the project is saved. All the remaining manipulations will be managed using Matlab environment. In the other side, in order to generate an impedance matrix for each frequency step, two scripts are used where the same project name is used as in FEKO. The role of each script will be illustrated for a project name ’metalplate’. MultiFrqFeko.m : this script generates the *.pre files for each single frequency step. The content of ’metalplate.pre’ is copied into a temporary file ’metalplate.tmp’, where the line containing ’#this frq =’ , is modified to get the numerical value of the corresponding frequency step. Then, a new file is created having the name of the project followed by the number of the corresponding frequency step (i.e. metalplate1.pre). Finally, the ’dos’ function is called to perform the execution of FEKO files from Matlab.an example of the command execution can be stated as dos(’prefeko metalplate1.pre’) dos(’runfeko metalplate1.pre’) getZFeko.m : this function is used to convert the obtained impedance matrices from mat extension of FEKO into ASCII format using the mat2ascii application, and following command line system(’mat2ascii metalplate1.mat > metalplateASCII1.txt’) application can be Now the resulting impedance matrices can be easily manipulated using Matlab.
  댓글 수: 12
abdellah touhami
abdellah touhami 2020년 11월 24일
Dear Mr. Ano,
I want to extract the impedance matrix from feko as you explained, but unfortunately dosen't work, matlab show me an error"matlab could not open the file .mat "
if you please have you an idea.
Best regards
Ano
Ano 2020년 11월 24일
Hello Mr. Abdllah touhami,
If you are trying to open the matrix directly in matlab without using the scripts given in this web page or any other scipts it will not work. Note that both Matlab and Feko have the '.mat' files but it does not have the same meaning. it would be very nice if you could give more details. Good luck and best regards.

댓글을 달려면 로그인하십시오.


Ano
Ano 2017년 10월 21일
Thank you very much for your answer! I just wanted to tell that the real part is ill conditioned that is why you get negative values , you might solve this just by make the negative value = 0. Best regards!

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by