psg sounds mat to wav

hi all,
ı got psg(polysomnography) records from phsyio.net. They have a tool for extracting rec(record) to mat file. And i used it then i tried to save files as wav file. Their sampling frequencies 128hz i used wavwrite for this by Fs=128 but i couldn't listen it by matlab, goldwave or etc. goldwave has an error it can't accept a sampling rate above 1000hz so ı resampled it to 1280hz and 1000hz by matlab resample function but still same problem.
Could anyone suggest me about saving mat file as wav.

2 件のコメント

Image Analyst
Image Analyst 2013 年 10 月 29 日
Attach your mat file if you want anyone to try to convert it to a wav file for you. Also give your code where you tried to convert it to a wav file.
geem
geem 2013 年 10 月 30 日
Sure thanks ..
first of all ı downloaded psg files the webpage below
then my codes are
y=sound;
filename='ucddb020';
Fs=128;
wavwrite(y,Fs,filename);

サインインしてコメントする。

回答 (2 件)

Walter Roberson
Walter Roberson 2013 年 10 月 30 日

0 投票

Is "sound" the file you loaded in? "sound" is the name of a MATLAB library call to play sounds, so you should avoid using it as the name of a variable.
Ensure that your "y" variable has one column per channel. Your psg data might be row-oriented instead of column-oriented.
geem
geem 2013 年 10 月 30 日

0 投票

I changed my data name and change it as column vector then it seems like snore sound now but still i can't hear snores. And i guess it can be about sampling rate problem. Thanks for reply

カテゴリ

ヘルプ センター および File ExchangeAudio I/O and Waveform Generation についてさらに検索

タグ

質問済み:

2013 年 10 月 29 日

回答済み:

2013 年 10 月 30 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by