السلام عليكم ورحمة الله وبركاتة
أخي الكريم أود أن أوضح لك نقطه بسيطه, أن الـ help بتاع المتلاب أحسن من أي كتاب أو شرح أو منتدي. فلازم تحاول فيه وتتدرب علي إستخراج المعلومه منه.
-----
بالنسبه لـ wavread
تستخدم كالأتي:
كود:
y = wavread('filename')
حيث أنها تقرأ ملفات ال.wav الخاصه بالويندوز وتخزن في المتغير Y الsamples الموجوده في الملف الي أنت إختارته, يعني بكل بساطه بتخزن الصوت الموجود في الملف في المتغير Y.
filename: هتحط بداله مسار الملف.
-------------
بالنسبه لـ wavewrite
عكسها بالظبط وهي كالأتي :
كود:
wavwrite(y,'filename')
بكل بساطه أنت عندك صوت موجود في الـ Y وتريد أن تحفظه في علي صوره ملف .wav
طبعاً لازم تكون البيانات (الصوت) الموجود في Y من نفس نوع .wav ,
------------------
بالنسبه لأخر داله waveplay
سهله جداً ووظيفتها أن تقوم بتشغيل الصوت الموجود في المتغير y وأنا هنسخلك وصفها في الhelp بتاع المتلاب ولما تقرأه هتلاقيه سهل جداً
wavplay
Play recorded sound on a PC-based audio output device Syntaxwavplay(y,Fs)
wavplay(...,'mode')
Description
wavplay(y,Fs) plays the audio signal stored in the vector y on a PC-based audio output device. You specify the audio signal sampling rate with the integer Fs in samples per second. The default value for Fs is 11025 Hz (samples per second). wavplay supports only 1- or 2-channel (mono or stereo) audio signals. wavplay(...,'mode') specifies how wavplay interacts with the command line, according to the string 'mode'. The string 'mode' can be 'async' (default value): You have immediate access to the command line as soon as the sound begins to play on the audio output device (a nonblocking device call). 'sync': You don't have access to the command line until the sound has finished playing (a blocking device call). The audio signal y can be one of four data types. The number of bits used to quantize and play back each sample depends on the data type.