Reputation: 1100
Is it possible to read .mat file in android ? how should I convert .mat file to java readable format to use that in android ?
Upvotes: 0
Views: 1505
Reputation: 4398
Ideally, you don't want to use a .mat file. You can save data in ASCII format with:
save output.txt -ascii
but I'm not sure that there's an easy way to work out which variable is which when you read this data back in. I assume variables are saved alphabetically, but you will still need to know their size in order to parse them. Or you could save each variable in a different file, if that works for your application.
There is some information on working with .mat files in java here. If you're feeling brave, you could try looking at the specification and processing the binary file in java.
Upvotes: 2