필터 지우기
필터 지우기

Question regarding Simulink - how to collect samples of a discrete signal on some interval

조회 수: 3 (최근 30일)
I am generating a discrete sine wave with many samples (let say 1000 or 10000 per period). Now I would like to collect only 100 of them for further processing. But those points should be collected on exact same time interval. Then I would process them as if they are stored in an array. Is this even possible?
Thank you in advance.

답변 (1개)

Sebastian Castro
Sebastian Castro 2015년 8월 31일
I would log the signal and then configure the "Output options" as shown in this documentation link.
You can set the option to "Produce specified output only" and enter the output times as something like tStart:dt:tEnd. For example 10:0.001:100 will collect data between 10 and 100 seconds of simulation at an interval of 1 ms.
- Sebastian
  댓글 수: 1
matico
matico 2015년 8월 31일
Thanks.
So, if I understand, this would export sampled data to Matlab Workspace. But, is it possible to process this sampled data back in Simulink?

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

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by