samer@34: function [y,phi]=block(o,phi,f) samer@34: % block - generate sine wave samer@34: samer@34: u=cumsum([phi,f],2); samer@34: y=sin(2*pi*u(:,1:end-1)); samer@34: phi=mod(u(:,end),1); samer@34: