Method to manipulate data

조회 수: 2 (최근 30일)
Shaun Lim
Shaun Lim 2018년 7월 27일
답변: Aquatris 2018년 8월 1일
Is there any model in simulink that can block the data input in a specific time to create a fault condition. For example, I need to block 30 seconds of data in a 10 minutes dataset to creata a fault condition
  댓글 수: 1
Christopher Wallace
Christopher Wallace 2018년 8월 1일
When you say "block the data" what do you mean? Should the data change to 0's or NaN's?

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

답변 (1개)

Aquatris
Aquatris 2018년 8월 1일
You can use "Switch" blocks change your signal from whatever it is to a constant 0 using the time as a determining factor.
Alternatively you can use "Matlab Function" block where inputs would be time and the signal and output will be determined with an if statement with in;
function y = blockSignal(t,x)
if t > 10 && t < 20
y = 0;
else
y = x;
end
end

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by