xlscell

Assigns a value or Excel formula to a specified cell in excel sheet.

You are now following this Submission

xlscell(xcell,value)
xlscell(xcell,value,filename)
xlscell(xcell,value,filename,sheetname)


xcell: cell name (range) (ex. C3 or A2:F19)
value: value(s) to assign to specified cell.
filename: Name of excel file.
sheetname: sheet name.

Examples:

filename = 'file.xls';
value = {'N1','N2','N3','N4'};
xlscell('C4',value);
xlscell('C4',value,filename);
xlscell('C5',rand(10,4),filename);
xlscell('C5',rand(10,4),filename,'Sheet1');

Cite As

Fahad Al Mahmood (2026). xlscell (https://se.mathworks.com/matlabcentral/fileexchange/4548-xlscell), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

More debugging documentation added