Clearing the condition signal
이전 댓글 표시
[a,p]=min(Data01022003)
for chek = 1:length(a)
if p(chek-1)+20< p(chek) & g(chek) <p(chek+1) +20
o(chek )=p(chek+1) ;
else
o(chek)=0;
end
end
p is
p(1)=154 p(2)=162 p(3)=1190 p(4)=153 p(5)=144 p(6)=142
o is
o(1)=154;
o(2)=162;
o(3)=0;
o(4)=153;
o(5)=144;
o(6)=142;
I have a signal condition so that p (1) is not more than p (2) by 20 and not more than p (0)
Help me how to do this?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Pulse and Transition Metrics에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!