From workspace block error: Time values must be a real vector.
显示 更早的评论
I have no idea what this error means and I've made sure the time series are in an ascending order. How can I fix this problem?
回答(1 个)
Fangjun Jiang
2021-4-30
If you are using timeseries, make sure its time data is valid. For example
Var=timeseries;
Var.Time=[0;1];
Var.Data=[1;100]
and specify "Var" to the FromWorkspace block.
What is your Var.Time?
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!