xlswriter writes data to excel [success,message] = xlswriter(data,range,sheet) xlswriter(porar,'B') xlswriter(porar,'B10') xlswriter(porar) % depends on the cursor position in Excel xlswriter(porar,'C2','Reza') xlswriter(porar,'C2','Sheet2') xlswriter deletes Excel COM from workspace, if NARGIN < 1 XLSWRITE Stores numeric array or cell array in Excel workbook. for il=1:length(porar),labl{il}=['tstep ' num2str(il)];end xlswriter(labl,'B1');xlswriter(porar,'B2');xlswriter(timefunc,'A2') Rezaul, 2004