필터 지우기
필터 지우기

How to get zero crossing for a vector and the values of each crossing?

조회 수: 1 (최근 30일)
Jayanta Deb
Jayanta Deb 2017년 3월 3일
답변: Jayanta Deb 2017년 3월 6일
I have a signal generator and it displays square wave , now there are 4 channels and for each channel i need to plot the zero-crossings of the waves. I need a function/code to plot the data on the figure and need to get the data also as when the wave crossed zero point during its sampling. How to do that? For instance i have chA vector for channel A and it contains upto 1 million of samples. I need the values of the black marked places through out the sample. I am new to matlab, help will be appreciated.
thanks in advance.

답변 (1개)

Jayanta Deb
Jayanta Deb 2017년 3월 6일
Now i have attached the matlab file you can find everything there. i need to have the zero crossign indexes and the values for those indexes. see what i am getting now after i plot your piece of code. none of the points are zero though they are closer to zero. please also refer the screenshot i gave you above.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by