please help me, i have the result as following , and i want save it in excel file but the code shows error

3 ビュー (過去 30 日間)
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{:})

採用された回答

Mehmed Saad
Mehmed Saad 2020 年 4 月 16 日
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);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by