Simulink time series data

2 次查看(过去 30 天)
Cenk M. Yetis
Cenk M. Yetis 2022-9-15
评论: Rohit 2022-10-3
Hi,
I have two "time series data" (1) and I want to "neatly" concatenate them in Simulink (not in Matlab).
  • When I use any Simulink concatenate block, due to time stamps in the two input data, the output matrix has zeros in it.
  • To avoid extra zeroes, I cannot just extract the data column from the input data, so that I can concatenate only the data columns.
Does any one have an idea how to do this only in Simulink (without help of Matlab commands)?
(1) In time series data, in the first column, there are stamps. In the second column, there are data.
  1 个评论
Rohit
Rohit 2022-10-3
Hi,
In order to understand the query better, please provide the following information,
  • A sample data for the two timeseries?
  • The details about which Simulink concatenate block you are using (preferable with a sample model itself)?
  • What is meant by “neatly” in your question?
  • Is the data an object of timeseries class or is it just a matrix with first column as datetime and the second column containing data?
You can try using MATLAB function block inside the Simulink if it fits your use case and inside that, add the commands to append the two datasets.
If using a timeseries object, consider using timetables instead.
You can refer to the following documentation on timeseries, timetables and MATLAB function block for more information on them

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by