필터 지우기
필터 지우기

I want to read a data from the sinusoidal signal at a certain time t

조회 수: 1 (최근 30일)
Shivakumar
Shivakumar 2014년 3월 7일
댓글: Shivakumar 2014년 3월 10일
I want to read data from the sinusoidal signal for a certain time. I need the same kind of code for the distorted signal too. Sinusoidal signal is generated by an alpha-beta transformation block and it is seen in scope. Those sine wave signals are sent to workspace. The format is Structure with Time.I've included the model. The output ofthose two simouts is needed. This may be one of the basic questions. But I need help.

채택된 답변

Anuj
Anuj 2014년 3월 7일
Hi Shiva, first you need to change sample time from 4.85 to -1 again in your simout (To workspace block). Now see, your simout time is 100001*1 array and you are simulating for 5 sec, this means 4.85 sec is (100000/5)*4.85 = 97000+1=97001th value in the array, So you can simply do
val=simout.signals.values(97001)
this will give you the value of signal at exact 4.85 s.
Regards

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Import and Export에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by