c = getmswtfea​t(double(y​),Fs/2,Fs/​8,Fs); Undefined function or variable

Hello! I am a beginner of using MATLAB. I make my thesis on signal processing to Heart Diseases Diagnosis Using Intelligent
Algorithm Based on PCG Signal Analysis . But when Feature Extraction...
c = getmswtfeat(double(y),Fs/2,Fs/8,Fs); undefine function % undefine function.
c2 = melcepst(y, 8000 , 16, 24, (0.03 * Fs));%undefine function
cdwt = getmswtfeat(double(y),Fs/2,Fs/8,Fs); % Undefine function
% feat = getmswtfeat(x,winsize,wininc,SF)
cmfc = melcepst(y, Fs*6 , 16, 16, (0.03 * Fs));%
input pascal data file face problem to Feature Extraction . Do I need to Feature Extraction input pascal pcg database data set .wav file ? If so could you tell me please how to do Feature Extraction ?
clc
clear all
DBFolder=dir('G:\jamir\Atraining_murmur\');
DBSize=length(DBFolder);
Features=zeros(1,308);
k=1;
lables={};
for i=3:DBSize
SFolder=dir(strcat('G:\jamir\Atraining_murmur\',DBFolder(i).name,'\*.wav'));
addpath(strcat('G:\jamir\Atraining_murmur\',DBFolder(i).name));
SFSize=length(SFolder);
for j=1:SFSize
filename = SFolder(j).name; % file name to be loaded
[y, Fs] = audioread(filename, 'native'); % signal bieng loaded having data in variable y and frequency Fs
c = getmswtfeat(double(y),Fs/2,Fs/8,Fs);
[rr,cc]=size(c);
for m=1:7:rr-mod(rr,7)
Features(k,:)=reshape(c(m:m+6,:),[1 308]);
lables{k}=DBFolder(i).name;
k=k+1;
end
end
end
%converting to table
FeaturesX=array2table(Features);
lablesY=cell2table(lables');
TrainingData=[FeaturesX lablesY];

Answers (0)

Categories

Find more on Just for fun in Help Center and File Exchange

Asked:

on 25 Apr 2019

Commented:

on 25 Apr 2019

Community Treasure Hunt

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

Start Hunting!