Why do I get error when I tried to export data out of MATLAB to excel file (EEM components)
2 次查看(过去 30 天)
显示 更早的评论
I tried to export the data to excel file but it has error. I tried to change to xlsx but it still has the same error. I do not know why and how to solve this problem ?
Please let me know if you understand this situation. Thank you so much !
[FMax,B,C]=ModelOut(AnalysisData,3,'C:\MyParafacResults.xlsx')
Error using xlswrite (line 224)
Invoke Error, Dispatch Exception:
Source: Microsoft Excel
Description: ƒtƒ@ƒCƒ‹ 'C:\4A584310' ‚ɃAƒNƒZƒX‚Å‚«‚Ü‚¹‚ñBŽŸ‚Ì‚¢‚¸‚ê‚©‚Ì——R‚ªl‚¦‚ç‚ê‚Ü‚·B
? ƒtƒ@ƒCƒ‹–¼‚Ü‚½‚̓pƒX‚ª‘¶Ý‚µ‚Ü‚¹‚ñB
? ƒtƒ@ƒCƒ‹‚ª‘¼‚̃vƒƒOƒ‰ƒ€‚É‚æ‚Á‚ÄŽg—p‚³‚ê‚Ä‚¢‚Ü‚·B
? •Û‘¶‚µ‚悤‚Æ‚µ‚Ä‚¢‚éƒuƒbƒN‚Æ“¯‚¶–¼‘O‚̃uƒbƒN‚ªŒ»ÝŠJ‚©‚ê‚Ä‚¢‚Ü‚·B
Help File: xlmain11.chm
Help Context ID: 0
Error in ModelOut (line 38)
xlswrite(excelname,FMax,'FMax')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/285724/image.png)
5 个评论
Thiago Henrique Gomes Lobato
2020-4-19
I can't find ModelOut as a native matlab function nor in file exchange, which probably means it is from an external toolbox or a private function from some collegue of yours. You showed only the description, so it is nor possible to know what exactly it does. I belive the problem is likely there, you can test if you can write in excel with a native function with:
xlswrite('C:\MyParafacResults.xls',{AnalysisData})
If this works than the problem is indeed in the ModelOut function.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!