This video shows the steps to log the simulink scope data to matlab workspace and then export that data to an Excel file using writetable command.
Source Code:
T = table(out.ScopeData.time, out.ScopeData.signals.values)
writetable(T,’myExcelSheet.xls’)
Exported Data Excel .xls File: myExcelSheet