Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Topic: Matlab
Replies: 11   Last Post: Dec 13, 2012 12:12 AM

 Messages: [ Previous | Next ]
 bartekltg Posts: 42 Registered: 12/11/12
Re: Matlab
Posted: Dec 12, 2012 9:43 PM

W dniu 2012-12-13 03:22, Tanner Handa pisze:
> bartekltg <bartekltg@gmail.com> wrote in message
> <kabas4\$jv1\$1@node1.news.atman.pl>...

>> W dniu 2012-12-13 01:56, Tanner Handa pisze:
>> > I am working on a Matlab project and trying to shorten the sound of
>> this
>> > frequency. Can you please further explain how to make the sound about
>> >
>> > This is what I am working with.
>> >
>> > freqsamp = 10000;
>> >
>> > t = linspace(0,1,freqsamp);

>>
>> t = linspace(0, 0.5, freqsamp);
>>

>> >
>> >
>> >
>> > a = (sin(1.5*pi*220*t) + sin(1.5*pi*440*t));
>> > sound(a, freqsamp)

>>
>>

> thanks i have already tried that and it only makes the sound deeper

oh, sorry.

t = linspace(0, 0.5, 0.5 * freqsamp);

If we have one seconds, we need freqsamp samples.
But, if we have 0.5s, we need only half.

bartekltg

Date Subject Author
12/12/12 Tanner Handa
12/12/12 bartekltg
12/12/12 Tanner Handa
12/12/12 bartekltg
12/12/12 Tanner Handa
12/12/12 bartekltg
12/12/12 Tanner Handa
12/12/12 Tanner Handa
12/12/12 bartekltg
12/12/12 Tanner Handa
12/13/12 bartekltg
12/13/12 Tanner Handa