필터 지우기
필터 지우기

Simulink time series data

조회 수: 1 (최근 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