MATLAB: How to use from workspace block

from spreadsheetMATLABsimulinksink block

How do I use the from workspace block to input a range of data for solar irradiance? What format of the excel sheet should I have?

Best Answer

Since R2015b, Simulink supports the From Spreadsheet block.
From Spreadsheet can read Excel files directly and output signals to Simulink.
See the documentation for details. : From Spreadsheet
Sample model is as attached.