Home » excel » excel – Char in a single cell

excel – Char in a single cell

Posted by: admin May 14, 2020 Leave a comment

Questions:
DataSet='HS31';

xlswrite(soluzioni_filename, DataSet,'NumeroTagli',offset_dataset); 

But, when I see the xls generated, I get [H] [S] [3] [1] in different cells instead of HS31 in a single cell, which is what I am looking for.

How to&Answers:

To write to a specific cell in excel file , send off the data as a cell array like this –

xlswrite(soluzioni_filename, {DataSet},'NumeroTagli',offset_dataset);