Description: 四个特征信号矩阵合成一个矩阵
data(1:500,:)=c1(1:500,:)
data(501:1000,:)=c2(1:500,:)
data(1001:1500,:)=c3(1:500,:)
data(1501:2000,:)=c4(1:500,:)
从1到2000间随机排序
k=rand(1,2000)
[m,n]=sort(k)
输入输出数据
input=data(:,2:25)
output1 =data(:,1)
把输出从1维变成4维
for i=1:2000
switch output1(i)
case 1
output(i,:)=[1 0 0 0]
case 2
output(i,:)=[0 1 0 0]
case 3
output(i,:)=[0 0 1 0]
case 4
output(i,:)=[0 0 0 1]
end
end
To Search:
File list (Check if you may need any files):
案例1 BP神经网络的数据分类-语音特征信号分类1\BP.m
............................................\BPDLX.asv
............................................\BPDLX.m
............................................\data1.mat
............................................\data2.mat
............................................\data3.mat
............................................\data4.mat
案例1 BP神经网络的数据分类-语音特征信号分类1