フィルターのクリア

create data set signal

2 ビュー (過去 30 日間)
sam aldoss
sam aldoss 2018 年 10 月 3 日
回答済み: Walter Roberson 2018 年 10 月 4 日
hi
I use this code to read the wav one by one and save as csv, is there any way to make matlab do it for all file
% get a section of the sound file
[x, fs] = audioread('a(550).wav'); % load an audio file
N = length(x); % signal length
t = (0:N-1)/fs; % time vector
save a(550).csv x -ascii -double

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 10 月 4 日
Note: you will want to use the function form of save
save(filename, 'x', '-ascii', '-double')
However, note that the save command cannot do comma delimiter such as you would expect for csv files.
dlmwrite(filename, x, 'precision', 15) %defaults to comma delimiter

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by