syn_sin - for k=1:length(Xk) tt=tstart:1/fs:dur; xa(k,:) =

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function [xx,tt] = syn_sin(fk, Xk, fs, dur, tstart) if nargin<5, tstart=0; end if length(fk)~=length(Xk), error('The length of fk and Xk are unequal'); end xx = (1:(dur-tstart)*fs+1)*0;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for k=1:length(Xk) tt=tstart:1/fs:dur; xa(k,:) = Xk(k)*exp(1i*2*pi*fk(k)*tt); xx=xx+xa(k,:); end plot(tt,xx),grid; soundsc(xx,fs)...
View Full Document

This note was uploaded on 04/15/2010 for the course ECTE 906 taught by Professor Pd during the Three '10 term at University of Wollongong, Australia.

Ask a homework question - tutors are online