how to export data from matlab into excel on a mac

2 views (last 30 days)
I have downloaded the xlwrite function to print data to excel on a mac.
I keep getting however the following error message, both for the header and the regular numbers:
Undefined function 'WriteXL' for input arguments of type 'java.lang.String'.
Error in xlwrite (line 68) WriteXL(java.lang.String(file),Cell2JavaString(data),m(1),m(2));
My script is attached.
Any suggestions how to solve this error

Answers (1)

Walter Roberson
Walter Roberson on 24 Feb 2014
WriteXL appears to be in Archive/WriteXL.java . Did you "import" from the archive?
  1 Comment
Joachim Seel
Joachim Seel on 25 Feb 2014
Sorry for being an absolute beginner here, but what exactly do you mean by importing it from the archive? I made sure I had the most recent java application on my computer and downloaded the xlwrite function into the default matlab folder of user/documents/matlab. I experimented with also copying the function files to the folder I had set up as my working directory in matlab, but this did not change the error message.
Thank you for your help!

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!