Saving Vector of BufferedImages to binary .mat file
Hi,
I have a matlab file that reads in Binary .mat files. These files are made up of sections of images.
I've used Java to create these sections and therefore need to save the vector of bufferedimages to a .mat binary file.
I've been using the
File file =new File("test.mat");
ObjectOutputStream out =new ObjectOutputStream(new FileOutputStream(file));
out.writeObject(patches);
syntax but when I attempted to read the file into my matlab code I got the following error:
Unable to read MAT-file patches\test.mat: not a binary MAT-file.
Does anyone know how to save as a binary .mat file?
Cheers
N
[799 byte] By [
neosenatea] at [2007-10-2 12:57:53]

Thanks for the quick reply and the link.
I've done that search together with 'Saving .mat binary java' as well.
I still can't find any sources of how to save a .mat binary file in Java, unless I'm something glaringly obvious on the page you posted (quite possible)
Thanks again for the reply
N
> I still can't find any sources of how to save a .mat
> binary file in Java, unless I'm something glaringly
> obvious on the page you posted (quite possible)
>
Most probably you are going to have to write lots of code to take your data and format it according to the 'mat' file specification. You might just be lucky an find code off the peg but I doubt it!
Be prepared for some late nights!