필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

please help

조회 수: 1 (최근 30일)
saima
saima 2012년 3월 30일
마감: MATLAB Answer Bot 2021년 8월 20일
how can I extract a sample value from a signal in simulink? for example the last sample of a sine function block. can it be done using selector block?

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 3월 30일
If the signal is a vector, then yes, you can use the Select block to pick any element of that vector.
  댓글 수: 3
K E
K E 2012년 3월 30일
편집: K E 2012년 8월 14일
You might try Guy Rouleau's debugging suggestion in this answer
Kaustubha Govind
Kaustubha Govind 2012년 3월 30일
saima: Like I said, your signal needs to be a vector to be able to use a Selector block. It's acts as if you are indexing into it. For example:
a = [1 2 3];
b = a(3); %This is the type of operation that Selector does
It looks like what you trying to do is get just the sample at t=FinalSimulationTime. Is that correct? Could you explain what you plan to do with this value - will it be used in MATLAB or somewhere else in the model?

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by