view dsp/synth/@msine/block_sr.m @ 38:9d24b616bb06

Added function algebra.
author samer
date Tue, 29 Jan 2013 15:59:01 +0000
parents c75bb62b90a9
children
line wrap: on
line source
function [y,phi]=block(o,phi,f)
% block - generate sine wave

u=cumsum([phi,f],2);
y=sin(2*pi*u(:,1:end-1));
phi=mod(u(:,end),1);