I want to use the string v in the audiofile name etc in the code below (all the v's). Tried with num2str() but that works probably just for numbers?
vocals=["a"; "e"; "i"; "o"; "u"; "y"; "ae"; "oe"; "aa"];
for i=1:9
v=vocals(i)
[v, Fs] = audioread('v.wav');
v_filter=lpc(v, 9);
end;

 채택된 답변

Stephen23
Stephen23 2020년 11월 2일
편집: Stephen23 2020년 11월 2일

0 개 추천

vocals = ["a"; "e"; "i"; "o"; "u"; "y"; "ae"; "oe"; "aa"];
for k = 1:numel(vocals)
fnm = sprintf('%s.wav',vocals(k));
[v, Fs] = audioread(fnm);
v_filter = lpc(v,9);
end

댓글 수: 3

Wonderful! Thank you!! :)
Stephen23
Stephen23 2020년 11월 4일
@Stina Ravdna Lorås : please accept my answer if it helped you!
I'm sorry, I didnt realize I had to. Now it is accepted :) Thank you again :)
Stina

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by