How do I use a From Workspace block with table data?
显示 更早的评论
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?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Import from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


