필터 지우기
필터 지우기

How to generate periodic waveform from amplitude vs time data for a single cycle ?

조회 수: 2 (최근 30일)
I have voltage vs time data for a single cycle of a periodic waveform. The voltage is non linear w.r.t. time. How do i generate periodic waveform from this data ?
I have tried by using curve fitting to obtain a linear equation for the data and used y=a*mod(x,T)+c to obtain a periodic waveform. where, y=a*x+c is the curve fitted equation. The code which i used is as follows
t = 10; % total simulation time
T = 3; % period
x = 0:0.1:t;
% lets say your original function is y=2*x which repeated every T second, then y = 2*(mod(x,T));
plot(x,y)
The code gives the periodic waveform but i need to plot it for available nonlinear voltage.

답변 (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