%the ratio of a to b creates your chord function out = part3(f,ratA,ratB,bits) x=cos((1:4096)*pi*64*f*ratA/(4096)); x = x + cos((1:4096)*pi*64*f*ratB/(4096)); simplecodecW(x,bits,0); %zero says that this is a cos generated tone
Error using part3 (line 4) Not enough input arguments.