convert 1x1 double time series data of simout in matlab to 1441 x 1 double

조회 수: 206 (최근 30일)
NN
NN 2021년 9월 10일
댓글: Paul 2021년 9월 10일
I have used simout in matlab and it gives 1x1 double time series
convert 1x1 double time series data of simout in matlab to 1441 x 1 double which has time and doube data for 86400 sec.I would like to convert it to 1441 x 1 double data to use it back to simulink model through a look up table.
How can i convert it in simulink or in workspace ?

답변 (1개)

Paul
Paul 2021년 9월 10일
You can convert the timeseries to ordinary Matlab variables
time = simout.Time;
data = simout.Data;
  댓글 수: 2
NN
NN 2021년 9월 10일
thank you very much .But when the simulation is running , how do i seperate it and use it in simulation
Paul
Paul 2021년 9월 10일
I assume the workflow here is:
a. Run the simulation
b. When the simulatoin is complete, form the variables "time" and "data" in the base workspace
c. Run a simulatoin using time and data as parameters for this simulation.
if this is the workflow, then the answer to your question depends on how you need to use time and data in step c.

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

카테고리

Help CenterFile Exchange에서 Predictive Maintenance Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by