Extracting data from simout MATLAB work space
이전 댓글 표시
Hi
I want to extract data based on the time
I have a sumilink Model which will generated the following data table

This will run between 0 min to 500 mins
I want to preform a specific calculation for the data that occur between 0 to 80 min
채택된 답변
추가 답변 (1개)
Chaman Dewangan
2021년 6월 26일
2 개 추천
to workspace block is used to send data from Simulink to workspace. In this block parameters, there is an option save format. (Array, structure with time, and time series).
I am simulating in R2019 a. I get a variable out. I have named the block as simout.
For array format, out.simout is the signal value and out.tout is the time signal.
For structure with time format, out.simout.signals.values is the signal value and out.simout.time is the time signal.
For time series format, out.simout.Data(:,1); is the signal value of 1st column and out.simout.time is the time signal. Similarly, We can do for second column out.simout.Data(:,2).
카테고리
도움말 센터 및 File Exchange에서 Data Types에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!