who ver ---------------------------------------------------------------------------------------------------- MATLAB Version: 9.2.0.556344 (R2017a) MATLAB License Number: 1560 Operating System: Microsoft Windows 7 Enterprise Version 6.1 (Build 7601: Service Pack 1) Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode ---------------------------------------------------------------------------------------------------- MATLAB Version 9.2 (R2017a) Simulink Version 8.9 (R2017a) Bioinformatics Toolbox Version 4.8 (R2017a) Control System Toolbox Version 10.2 (R2017a) Embedded Coder Version 6.12 (R2017a) Financial Toolbox Version 5.9 (R2017a) Fuzzy Logic Toolbox Version 2.2.25 (R2017a) Global Optimization Toolbox Version 3.4.2 (R2017a) Image Processing Toolbox Version 10.0 (R2017a) MATLAB Coder Version 3.3 (R2017a) MATLAB Compiler Version 6.4 (R2017a) NAG Toolbox Version 25 Release 1 (64 bit) Neural Network Toolbox Version 10.0 (R2017a) OPC Toolbox Version 4.0.3 (R2017a) Optimization Toolbox Version 7.6 (R2017a) Parallel Computing Toolbox Version 6.10 (R2017a) Partial Differential Equation Toolbox Version 2.4 (R2017a) Robust Control Toolbox Version 6.3 (R2017a) Signal Processing Toolbox Version 7.4 (R2017a) Simulink 3D Animation Version 7.7 (R2017a) Simulink Coder Version 8.12 (R2017a) Simulink Control Design Version 4.5 (R2017a) Statistics and Machine Learning Toolbox Version 11.1 (R2017a) Symbolic Math Toolbox Version 7.2 (R2017a) System Identification Toolbox Version 9.6 (R2017a) Wavelet Toolbox Version 4.18 (R2017a) help sound sound Play vector as sound. sound(Y,FS) sends the signal in vector Y (with sample frequency FS) out to the speaker on platforms that support sound. Values in Y are assumed to be in the range -1.0 <= y <= 1.0. Values outside that range are clipped. Stereo sounds are played, on platforms that support it, when Y is an N-by-2 matrix. sound(Y) plays the sound at the default sample rate of 8192 Hz. sound(Y,FS,BITS) plays the sound using BITS bits/sample if possible. Most platforms support BITS=8 or 16. Example: load handel sound(y,Fs) You should hear a snippet of Handel's Hallelujah Chorus. See also soundsc, audioplayer. Reference page for sound doc sound doc sound t=0:1/1600:5; y=sin(2*pi*( 200+t.^2)*t); sound(y,16000) {Error using * Inner matrix dimensions must agree. } t=0:1/1600:5; y=sin(2*pi*( 200+t.^2)*t); sound(y,1600) {Error using * Inner matrix dimensions must agree. } t=0:(1/1600):5; y=sin(2*pi*( 200+t.^2).*t); sound(y,1600) t=0:(1/1600):5; y=sin(2*pi*( 200+t.^2).*t); sound(y,1600) t=0:(1/1600):5; y=sin(2*pi*( 200+t.^2).*t); sound(y,1600) t=0:(1/1600):5; y=sin(2*pi*( 200+t.^2).*t); sound(y,1600) t=0:(1/1600):5; y=sin(2*pi*( 200+t.^2).*t); sound(y,1600) t=0:(1/1600):5; y=sin(2*pi*( 200+t.^2).*t); sound(y,1600) plot(t,y) plot(y(1:100) plot(y(1:100)  {Error: Expression or statement is incorrect--possibly unbalanced (, {, or [. } plot(y(1:100)) plot(y(1:800) plot(y(1:800)  {Error: Expression or statement is incorrect--possibly unbalanced (, {, or [. } plot(y(1:800))