Hi Peng
you can use read_wfile to read it into matlab, then save_mgh or MRIwrite to save them in .mgz format. Note that you will need to make sure that the vector you are writing is the correct length. The w-files can be sparse (that is, every vertex doesn't have to have a value), but the .mgz files cannot be, so you'll need to create a vector that is nvertices in length (the number of vertices in the surface you are using), then set the entries in the vertices given to you by read_wfile to the values it gives you
cheers Bruce
On Tue, 29 Dec 2015, peng wrote:
Hi Freesurfers, I tried to overlay .w file onto a surface, and failed. I dug the previous posts and know this file format is obsolete now. However I wish to know in which version of freeview can I still use this file format, if possible. It will be great if you can provide the link for it. If this is not possible, is there a matlab tool similar to 'write_file.m' so I can output my data in matlab to the newer format (substitution of w-file)? Thanks in advance.
best Peng