필터 지우기
필터 지우기

Info

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

to know the error in this program

조회 수: 1 (최근 30일)
sasmita mohapatra
sasmita mohapatra 2012년 4월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
[x,fs]=wavread('E:\COLLEGE PROJECT WORKS\task\sound.wav');
ms1=100/10; % maximum speech Fs at 1000Hz
ms2=100/50; % minimum speech Fs at 50Hz
t=(0:length(x)-1)/fs; % times of sampling instants
subplot(1,1,1);
plot(t,x);
xlabel('Time (s)');
ylabel('Amplitude');
title('[a]');
plot('waveform[a]');
legend('waveform');

답변 (1개)

Thomas
Thomas 2012년 4월 17일
What are you trying to achieve with the following error line?
Error in line
plot('waveform[a]');
the data arguments for plot are wrong.. If you comment out the line the code works without any errors..
doc plot
Also make sure the 'E:\COLLEGE PROJECT WORKS\task\sound.wav' exists..
also you are defining ms1 and ms2 but not using it.. so I guess there is more to this..

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

Community Treasure Hunt

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

Start Hunting!

Translated by