Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Can some one plssss help me ? I dont know why this code is not running?

조회 수: 2 (최근 30일)
Gaurav Sharma
Gaurav Sharma 2018년 12월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
The code was working properly, but the same code is not running. It cont throwing some errors. PLs help me its my final project.
  댓글 수: 2
Walter Roberson
Walter Roberson 2018년 12월 5일
How about a hint about what kind of program it is and a complete copy of the error message ?
Jan
Jan 2018년 12월 5일
It is unlikely that a code throws "some errors", because Matlab stops after the first error already. As Walter has mentioned already, it would be very useful if you post what the error messages are. It is much easier to solve a problem than to guess, what the problem is.
The readers cannot know, how your code is called, so it is hard to reproduce the problem. But most of all, this is your final project. Therefore I assume you have any experiences with programming and debugging. It is not smart to post the code and some data without narrowing down the problem in any way. The description "code was working, same code is not running" is confusing only. You should be able to find out, what has changed, since the code ran fine.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 12월 5일
After the dir() add
assert(length(files) >= n, 'Not enough wav files in that folder');
and the audioread needs to change to
[y,Fs] = audioread(fullfile(folder,files(i).name)); % reading the .wav files

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by