how to export the impedance matrix from Feko into Matlab
47 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ano
am 7 Nov. 2016
Kommentiert: 宇轩
am 12 Mär. 2024
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 Kommentare
宇轩
am 12 Mär. 2024
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.
Akzeptierte Antwort
Klearchos Samaras
am 14 Mär. 2017
Bearbeitet: Klearchos Samaras
am 15 Mär. 2017
First of all, this *.mat file is not a typical *.mat file. It has a FORTRAN block structure. You can find some useful information here: http://www.feko.info/support/helpcenter/how-to/how-to-read-the-.mat-.lud-.rhs-files-and-.str-files .
I am a FEKO user too. Well, the mat2ascii.exe utility can be used via Command Prompt and the data can be stored in a *.txt file, however the generated file will only contain the rows, columns, real part and imaginary part of the impedance matrix FOR THE FIRST FREQUENCY OF THE SIMULATION. In other words, if you want to simulate at a frequency range (multiple frequencies) the generated *.mat file contains the data of every impedance matrix, however the mat2ascii.exe utility converts only the data of the first impedance matrix of the simulation to *.txt file. Maybe the *.mat file can be easily read in a FORTRAN environment but I don't know that. I have tried to use the f2matlab routine created by Prof. Ben Barrowes, but it failed. I am no expert in programming, though.
*IMPORTANT: There might be a mistake in the *.txt file generated by mat2ascii.exe. It contains some explanatory text in the beginning and then it contains 4 columns with the data of the first frequency impedance matrix. The first column has the numbers of rows, the second has the numbers of columns, the third has the elements of R matrix (real part) and the fourth has the numbers of X matrix (imaginary part). I believe that the third column should be labeled as imaginary and the fourth as real, because the very first element of the R matrix should always be a positive number (it belongs to the main diagonal and R is positive definite), but in my case it is negative.
0 Kommentare
Weitere Antworten (2)
Ano
am 2 Nov. 2018
12 Kommentare
abdellah touhami
am 24 Nov. 2020
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
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!