hey assistent how does it…
- User
hey assistent how does it xlswrite(fullfile(nomRepertoire,[nomFile,'',tool{iTool},'.xlsx']),export{1,i},[strrep([data.vehicle(iVehicle).Model],' / ','-') '' char(Mode(l)) '_' num2str(Vh_speed(i)) 'kph'] ); will be with writecell insted
- Assistant
The MATLAB function
xlswritehas been used historically to write data to Excel files, whereaswritecellis a newer function that offers more advanced capabilities, including the support for.xlsxfiles directly and better performance in some cases.To convert an
xlswritefunction call towritecell, you need to do a few adjustments in the format:writecellrequires specifying the filename and sheet name directly.- The data is passed as the first argument in
writecell, while the filename and sheet name come afterwards.
- User
also this xlswrite(fullfile(nomRepertoire,[nomFile,'',tool{iTool},'.xlsx']),... export{1,i},[strrep([data.vehicle(iVehicle).Model(1:19),num2str(iVehicle)],' / ','-') '' modechar(1:3) '_' num2str(Vh_speed(i)) 'kph']);
- Assistant
To convert the given
xlswritecommand intowritecell, you need to follow the steps mentioned earlier, ensuring that you accommodate the changes in arguments positioning and syntax. Here's how you can make this conversion:Original
xlswrite:matlabxlswrite(fullfile(nomRepertoire, [nomFile, '_', tool{iTool}, '.xlsx']), ... export{1,i}, [strrep([data.vehicle(iVehicle).Model(1:19), num2str(iVehicle)], ' / ', '-') '_' modechar(1:3) '_' num2str(Vh_speed(i)) 'kph']);Converted to
writecell:matlab