MATLAB: How to store all the values into the spreadsheet.

matlab function

How to store all the values into the spreadsheet. I have thousands of values i need to save in spreadsheet, i used xlswrite function but it saves only the last value. what is the solution? Thank you

Best Answer

Put all of the values into a cell array first, and then xlswrite() the entire cell array.