Element_115
Advanced Member level 2
matlab function daqfcngen
Hi Genz
I was trying to tune my guitar so I wrote a matlab program to
generate a 440Hz tone . (So I thought)
t=1:05:10; % 10 Seconds (time)
y=sin((440*t/(2*pi)); % sin is in rad's
sound;
%%%%%%%END%%%%%%
The tone sounds close to 440Hz but the length
was not 10 second only about 1 or 2.
Can anyone tell me how Matlab handles time.
Or is this a processor based issue, and I should
just do trial and error?
Thanks
Hi Genz
I was trying to tune my guitar so I wrote a matlab program to
generate a 440Hz tone . (So I thought)
t=1:05:10; % 10 Seconds (time)
y=sin((440*t/(2*pi)); % sin is in rad's
sound;
%%%%%%%END%%%%%%
The tone sounds close to 440Hz but the length
was not 10 second only about 1 or 2.
Can anyone tell me how Matlab handles time.
Or is this a processor based issue, and I should
just do trial and error?
Thanks