필터 지우기
필터 지우기

does anyone have the matlab code for removing the negative half of an sinosudal wave

조회 수: 1 (최근 30일)
i guess there would be an function but i dont know what it is...can anyone help

채택된 답변

the cyclist
the cyclist 2013년 2월 27일
편집: the cyclist 2013년 2월 27일
If you just have values in a vector, then
s(s<0) = [];
will remove them (leaving you with a vector of shorter length), or
s(s<0) = 0;
will set the negative values to zero, or
s(s<0) = NaN;
will set them to NaN.
If you mean something else, please provide more detail.
  댓글 수: 1
Helphelpelectronic
Helphelpelectronic 2020년 11월 8일
Can you just say signal<0 for getting it negative values? Because I had an error for doing that while writing a condition for if statement

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by