how to make mat file of a wave file

I am havig a wave file. I want to store the contents of wave file into mat file
i am doing y=wavread('alpha.wav') now y is having all elements
how can i make its mat file

回答 (3 件)

Walter Roberson
Walter Roberson 2011 年 11 月 2 日

1 投票

save('alpha.mat', 'y')

1 件のコメント

Jan
Jan 2011 年 11 月 2 日
Speechless.

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

moonman
moonman 2011 年 11 月 2 日

0 投票

with save('alpha.mat', y) i am getting error Bye

5 件のコメント

Walter Roberson
Walter Roberson 2011 年 11 月 2 日
Corrected version is above.
Fangjun Jiang
Fangjun Jiang 2011 年 11 月 2 日
MATLAB has great documentation with plenty examples to show how to use its functions. Can't you use a little reading and problem-solving skill to solve this problem? It is going to cause an error. help save will show you how to solve it.
Jan
Jan 2011 年 11 月 2 日
@Fangjun: I'm speechless again. One crack suggests SAVE for saving, the next one recommends HELP for helping. That's Matlab zen.
Moonman had asked 45 questions and he prefers answers by Wayne King.
moonman
moonman 2011 年 11 月 3 日
Jan i welcome ansers from all but King always explains the things well thats why i accept his answers
i have also accepted answers from others
u all people are great
Jan
Jan 2011 年 11 月 3 日
@Moonman: Do not get me wrong, I do appreciate Wayne's answers also. And some of my questions could be answered by Walter using just a few words also. Without all questions concerning Matlab are welcome in this forum.
"Use save to save" and "use help for help" reminds me to "D for drive" in Night on Earth.

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

moonman
moonman 2011 年 11 月 3 日

0 投票

I consulted the book and got answer
y=wavread('alpha.wav');
save alpha.mat y;

カテゴリ

ヘルプ センター および File ExchangeEnvironment and Settings についてさらに検索

タグ

質問済み:

2011 年 11 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by