필터 지우기
필터 지우기

How to put wav file as input argument of a function ?

조회 수: 2 (최근 30일)
Jimmy Wong See Woei
Jimmy Wong See Woei 2014년 8월 26일
답변: W. Owen Brimijoin 2014년 8월 26일
Hi everyone, my problem is how to put wav file as input argument of a function
function[]=down4up4_nofilt(Songbird.wav,Songbird.wav);
There is error in this line of code. The error is happened at the 2 dots in front of wav. And MATLAB error commend is "Possibly, a ) or } or } is missing."
Please help me solve this problem. Thank you,
Jimmy

답변 (1개)

W. Owen Brimijoin
W. Owen Brimijoin 2014년 8월 26일
You need to load the signal that's in the file 'Songbird.wav' into the Matlab workspace first:
stimulus = audioread('Songbird.wav');
output = down4up4_nofilt(stimulus,stimulus);

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by