필터 지우기
필터 지우기

How to create a buffer FIFO, filter and then save in an array values that are between an specific range of values?

조회 수: 4 (최근 30일)
I have a sine wave as input signal at a sampling rate of 0.02. I want to process the first 1000 sampling points = 20 sec in a FIFO buffer
Signal ---> buffer size (1000) ---> full --> save in an array only values that are negative. --> next 20 seconds.
This is the simulink implementation that I have so far. My idea is to have two signals the real one an the delayed one. Save in a buffer the data from the delayed signal. Lets say that the delayed signal has a delay of 20 seconds, from this one I buffer the first 20 seconds and apply my filter of negative values and save them in an array. That means that when I buffer the next 20 are ready to be buffered, processed and filter.
Hope we can discuss some good ideas!
  댓글 수: 5
Mariana
Mariana 2020년 2월 16일
Thanks! I also started to use the buffer box. Why the unbuffered box is also added?

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

채택된 답변

stozaki
stozaki 2020년 2월 16일
I attached modified model you made.
unbuffer is just for the description of the block. It is arranged to explain the difference from Buffer. There is no more meaning.
  댓글 수: 7
Mariana
Mariana 2020년 2월 17일
How can I delete the data from previous steps. I dont want accumulate all values in the matrix. I just want to have a fixed number of 1000 values inside this matrix.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by