이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
how to export the impedance matrix from Feko into Matlab
조회 수: 9 (최근 30일)
이전 댓글 표시
Ano
2016년 11월 7일
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
sumithra Panneer Selvam
2018년 2월 22일
Dear experts, I could export the impedance matrix from feko, impedance matrix contained (NX1) real and NX1 imag parts. I would like to extract Eigen value and Eigen vector from thesereal and imag vectors.eig command needs square matrix of impedance - pl help to extract Eigen value and Eigen vector.
Ano
2018년 2월 22일
Hello! you have just to reshape them in order to get a square matrix, then you can apply eig .
sumithra Panneer Selvam
2018년 2월 24일
Dear experts, I need to plot eigen value graph for characteristic modes with eigen value (339X1) and frequency (22X1) in the range of 1.35ghz to 1.5ghz. I have attached .mat file of eigen value(num.mat) and frequency(frequency.mat). Plz help.
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
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
Sumithra Panner selvam
2018년 11월 3일
Dear Ano, Thank you for the answer. I wish to extract the impedance matrices for set of frequencies say (1GHz to 2GHz) from FEKO. Please tell me how to get these impedance matrices.
Ano
2018년 11월 3일
hello! please use the code attached with the answer it will generate all impedance matrices over the desired frequency band. you should call the function getZfeko.m only. Good luck!
Woobin Kim
2018년 11월 20일
'ERROR: Could not open the file (FekoFile) .mat' warning appears. How should I solve it?
Ano
2018년 11월 20일
hello! please make sure to have the application mat2ascii at the same directory as the Matlab scripts. i hope that will be of any help, good luck!
Ano
2018년 11월 21일
then i would probably check the edit feko file configuration , as i remember at that time i used jacob adam's dissertation (see p.101 you can find it easily). note please make sure to have the feko files with the matlab scripts at the same directory. Good luck!
Sumithra Panneer Selvam
2019년 5월 30일
Dear Mr.Ano,
I followed the steps given for "exporting the impedance matrix from Feko into Matlab".
i have the following doubts request you to clarify them,
- I received the below message after running the MultiFrqFeko.m
'runfeko' is not recognized as an internal or external command, operable program or batch file.
'prefeko' is not recognized as an internal or external command, operable program or batch file.
kindly refer the attached screenshot and Suggest me steps to rectify the issue.
2. In the m file getZfeko.m. What should be the structname. Here i have 10 feko files generated like excitation1.pre, excitation2.pre etc.
Sorry for my low matlab skills.
Kindly help me. 

Ano
2019년 5월 30일
Hello!
Please find below my suggestions
1- you need to add feko to the path see this it may help
2- the structname = 'excitation' only without any extension.
Hope it helped!
Best regards!
Sumithra Panneer Selvam
2019년 5월 31일
Dear Mr.Ano,
Thanks for the suggestion. It worked and the feko file are executing. However there is an error (Error using reshape Size arguments must be real integers). as depicted in the figure. It outputs an ascii file that is empty. What can i do about this. kindly help me.

Ano
2019년 5월 31일
Hello!
Yes, I do remember Having this issue but I believe I solved just by checking all the concerned files. First, check the value of rowsM and start from there it wasn't that hard to solve as far as I remember.
Please post the solution so others and I included could prevent this issue if it happens.
good luck and best regards!
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
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
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 Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
아시아 태평양
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)
