how to export data from matlab into excel on a mac

1 次查看(过去 30 天)
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

回答(1 个)

Walter Roberson
Walter Roberson 2014-2-24
WriteXL appears to be in Archive/WriteXL.java . Did you "import" from the archive?
  1 个评论
Joachim Seel
Joachim Seel 2014-2-25
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!

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by