please help me, i have the result as following , and i want save it in excel file but the code shows error
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
mohammed elmenshawy
il 16 Apr 2020
Commentato: Mehmed Saad
il 16 Apr 2020
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/284951/image.jpeg)
i used the command
fileName='result.xlsx';
writetable(fhsmooth,fileName);
winopen(fileName)
but the code shows
Undefined function 'write' for input arguments of type 'double'.
Error in writetable (line 117)
write(a,filename,varargin{:})
0 Commenti
Risposta accettata
Mehmed Saad
il 16 Apr 2020
You are using command writetable and you are writing a double array
either change the command from writetable to writematrix
fileName='result.xlsx';
writematrix(fhsmooth,fileName);
or convert fhsmooth to table
fileName='result.xlsx';
writetable(array2table(fhsmooth),fileName);
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Spreadsheets in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!