Unexpected MatLab expression when reading audio file

I'm trying to perform some analysis on audio files, but whenever I try to use audioread to read the files I get this.
[y, Fs] = audioread(/Users/kcrawfor/Documents/Rasmussen-Audio/audioCx05a.mp3);
[y, Fs] = audioread(/Users/kcrawfor/Documents/Rasmussen-Audio/audioCx05a.mp3);
Error: | Unexpected MATLAB operator.
I understand this is a syntax error but I'm new to MatLab and it could take hours of tutorials before I figure out whats wrong. Can anyone help me out?

 채택된 답변

Walter Roberson
Walter Roberson 2016년 6월 7일
[y, Fs] = audioread('/Users/kcrawfor/Documents/Rasmussen-Audio/audioCx05a.mp3');
Filenames have to be strings.

댓글 수: 1

Thanks! that was a silly mistake thanks for catching it though

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Audio 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