Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • $\begingroup$ Playing the sound wasn't the issue...how would I create the 2D array for the left and right channel? $\endgroup$ Commented May 14, 2014 at 13:43
  • $\begingroup$ @Asau7610, sorry! I've just edited the answer. $\endgroup$ Commented May 14, 2014 at 13:54
  • $\begingroup$ I keep getting an error saying " attempt to execute script sound as a function...error in Soundcreate (line 14) sound(array(:,1,Fs); $\endgroup$ Commented May 14, 2014 at 15:25
  • $\begingroup$ Also @lucasn what does the N = 4000 stand for. And the 20hz is being played so that just outsid human hearing but a recorder object can still record and read the sound. $\endgroup$ Commented May 14, 2014 at 15:41
  • $\begingroup$ N is the sample size. The vector t contains N time samples acquired at 44100 Hz. Then we use it to obtain the sinusoids samples. $\endgroup$ Commented May 14, 2014 at 15:47