How do I use a From Workspace block with table data?
Show older comments
I have an Excel file that contains timestamps in the first column and different measurements in the other columns:

Because it contains date timestamps, the file is not compatible with the "From Spreadsheet" block:
Error encountered in block mdl/From Spreadsheet
Caused by:
First column (time column) must contain numeric values.
After importing the file into my MATLAB base workspace with "readtimetable", and trying to use this variable with a "From Workspace" block, I get:
Invalid variable 'TT' specified as input in 'mdl/From Workspace'. Time must be a Duration vector.
How can I use my spreadsheet as Simulink simulation input?
Accepted Answer
More Answers (0)
Categories
Find more on Data Import from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

