Hi @Carlos
To make Simulink use the exact sample times from your data with the "From Workspace" block:
1. Format your data as a two-column matrix:The first column is time, the second is your signal.
codedata = [time_vector, signal_vector];
2. Set the From Workspace block’s "Sample time" to -1:This tells Simulink to use the time values from your data instead of a fixed sample time.
3. Set the simulation Start and Stop times to match the range of your time data (e.g., Start time = time_vector(1), Stop time = time_vector(end)).
This way, Simulink will use all your data points at the exact times you have in your file.
Hope this helps!