Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] How to read the data file '.*mat' file generated from FEKO

Status
Not open for further replies.

yikai

Newbie level 4
Newbie level 4
Joined
Dec 15, 2008
Messages
6
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,324
Hello, every, can you help me on the following questions?
a) How to export the [Z] matrix from FEKO, and then read the matrix elements by our own developed code, such as matlab and Fortran. Or, how can we open and look the data saved in the *.mat file generated by FEKO? Because I found the *.mat file was a binary compressed file, whenI opened it, it is nongthing but messy code.
b) How to get the far-field radiation patterns and surface current distributions over an antenna if the coefficients for the basis functions are available from our own developed code, and how can we display these results by POSTFEKO?

Could you give me some help on these issues?
Thanks a lot!
 

on how to read a .mat file onto matlab,you need to import it from matlab workspace and assign it to a variable.i have not used FEKO so can't help on the other issues.
 

on how to read a .mat file onto matlab,you need to import it from matlab workspace and assign it to a variable.i have not used FEKO so can't help on the other issues.

:p

Hi, Kaushik1411,

Thanks very much for your help. Actually, the .*mat file is not the one means by matlab, I have tried to read the data saved in my .*mat file using matlab, but it fails.

thanks again for your help!
 

Attachments

  • Example8.rar
    6 KB · Views: 178

I'll try.
a) What platform coding do you have?
Is your FEKO 32 or 64 bit ?

b) If you use the same base functions as FEKO you can create your own .str file and run FEKO.
Approach is similar to www.feko.info/support/helpcenter/how-to/how-to-visualise-characteristic-modes-in-feko

You can calculate far-field by your own software but it's unclear how to visualise them in POSTFEKO.
Becouse POSTFEKO use .bof files . .bof is binary file with unknown internal structure.
 

I'll try.
a) What platform coding do you have?
Is your FEKO 32 or 64 bit ?

b) If you use the same base functions as FEKO you can create your own .str file and run FEKO.
Approach is similar to www.feko.info/support/helpcenter/how-to/how-to-visualise-characteristic-modes-in-feko

You can calculate far-field by your own software but it's unclear how to visualise them in POSTFEKO.
Becouse POSTFEKO use .bof files . .bof is binary file with unknown internal structure.

Hi, iiMkl,

My FEKO is 64 bit,
My problem is that I cannot read the data from the *.mat file, also, I don't how to creat my own .str file. All these problem due to the fact that th .mat file, .str file in FEKO are binary file, and we don't know the internal saving format of these file. So that neither can we read the data from these file, nor can we write the files.

If possible, could you give me some help, thanks a lot!

A Merry Christmas to You!
 

Hi, yikai,
You should use mat2ascii to convert binary .mat file to textual representation.
You should use str2ascii to convert binary .str file to textual representation.
You can download them from www.feko.info/support/helpcenter/how-to/how-to-read-the-.mat-.lud-.rhs-files-and-.str-files/ or from **broken link removed** (downloaded from feko.info for convenience)
Result of applying mat2ascii to your example (Example8.mat) is **broken link removed** .

Good luck!
 
Hi, yikai,
You should use mat2ascii to convert binary .mat file to textual representation.
You should use str2ascii to convert binary .str file to textual representation.
You can download them from www.feko.info/support/helpcenter/how-to/how-to-read-the-.mat-.lud-.rhs-files-and-.str-files/ or from **broken link removed** (downloaded from feko.info for convenience)
Result of applying mat2ascii to your example (Example8.mat) is **broken link removed** .

Good luck!

Hello,

I am indeed very appreciate your kind help, and I am happy with the news that you have successfully read the data from my file.

There is still a small problem, since I cannot extract the files from the .rar files I downloaded from your links. It indicates that the files are destroyed. So could you please send the original files to me by email? Thanks a lot!
My Eamil address is 2533056260@qq.com
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top