how can i know the value of a sample before and after zero crossing of a sinusiodal signal?

hello, all
if i have discrete voltage sinusoidal signal in simulink , so which blocks may i use to get samples on the negative and positive sides of a positive-going zero-crossing,to calculate this equation:
T =(v1/(v1 v0))Δt +(vm/(vm+1 vm))Δt + (m 1)Δt
where:
(v0) and (v1) are the voltage samples on the negative and positive sides of a positive-going zero-crossing, respectively; (vm) and (vm+1) are the voltage samples on the negative and positive sides of a next successive positive-going zero-crossing, respectively; (m) is the total number of samples in one cycle of the voltage signal and (Δt) is the sampling interval.

Answers (0)

This question is closed.

Tags

Asked:

on 10 Mar 2013

Closed:

on 19 Dec 2022

Community Treasure Hunt

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

Start Hunting!