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
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?

댓글 수: 1

I'm feeding the timeseries to a extended kalman filter block and it says datatype "single" is desired. The sample time is about 0.05s and the time looks like this.
i.Time =[28.187887;28.190485;28.193756;28.197304;28.201515;...]
I used the function single to transform the datatype from double to single. Is this what caused the problem?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

제품

릴리스

R2020a

태그

질문:

2021년 4월 30일

댓글:

2021년 5월 1일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by