- Arrange your data as an N-by-2 matrix: first column is time, second is temperature.
- For example: temp_data = [time_vector, temperature_vector];
- In Simulink, add a "From Workspace" block, set its Data parameter to your matrix (e.g., temp_data), and connect it to your State-Space block.
- The block will output your temperature values at the correct simulation times, interpolating as needed.
- Use your time as breakpoints and temperature as table data.
- Feed simulation time (from a "Clock" block) into the lookup table, and connect the output to your State-Space block.
- This way, you have more control over interpolation/extrapolation if needed.