Is it possible to read .mat file in android ? how should I convert .mat file to java readable format to use that in android ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ideally, you don’t want to use a .mat file. You can save data in ASCII format with:
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.