gpt-4o-2024-08-06· OpenAI
WildChat-4.8M (AI2)
hey assistent change this to writecell xlswrite(fichierExcelExportNom,…
- User
hey assistent change this to writecell xlswrite(fichierExcelExportNom, toCopy,'Décollage','B10');
- Assistant
As of my latest update, the function
xlswriteis deprecated in MATLAB and has been replaced bywritecell,writematrix, orwritetabledepending on the type of data you are working with. Here's how you can convert yourxlswriteline to usewritecell. Assuming thattoCopyis a cell array since you're usingwritecell:matlabwritecell(toCopy, fichierExcelExportNom, 'Sheet', 'Décollage', 'Range', 'B10');This line uses
writecellto write the cell arraytoCopyto an Excel file with the namefichierExcelExportNom, to the sheet 'Décollage', starting at cell 'B10'. Make sure thattoCopyis indeed a cell array; otherwise, you should usewritematrixorwritetabledepending on the actual data type.