MATLAB: How to clear the contents of Excel by sheet

activexexcelsheet

I have an Excel file with 5 sheets. I need to clear the contents of the sheets 2, 3, 4 and 5.
I tried it with an empty cell array but I get error.
Any ideas?

Best Answer

Would it meet your need to write an array of empty strings ("") instead?