spunt / bspmview

MATLAB program for viewing 3D fMRI statistical images
http://www.bobspunt.com/software/bspmview
53 stars 25 forks source link

Save Table defaults to xlsx which cannot be opened in Windows #4

Closed jttrs closed 8 years ago

jttrs commented 8 years ago

When saving the result table, it wants to save it as an xlsx file. If you allow it to save with the 'xlsx' extension, Excel gives an error when opening it which states that the file extension does not match the file format.

If instead you manually chance the extension to .csv before saving the file, Excel has no problem opening it.

I'm using Windows, haven't tried on OSX.

spunt commented 8 years ago

Oh, this answers my previous question about .xlsx saving. I haven't tested the functionality of the recent changes to writing tables on Windows just yet. My bad. I think the fix will simply involve writing to xlsx using xlswrite instead of xlwrite when running on Windows.

jttrs commented 8 years ago

I'm guessing you are correct. I have to make the same switch when I code in excel output that is sensitive to the operating system.