Mercurial > hg > ishara
view dsp/synth/@sine/block.m @ 38:9d24b616bb06
Added function algebra.
author | samer |
---|---|
date | Tue, 29 Jan 2013 15:59:01 +0000 |
parents | c75bb62b90a9 |
children | ae596261e75f |
line wrap: on
line source
function [y,phi]=block(o,phi,n,f) % block - generate sine wave w=2*pi*f; y=sin(2*pi*phi + w*(0:n-1)); phi=mod(phi+f*n,1);