注册 登录
编程论坛 Matlab

关于预测的MATLAB编程

liduchina 发布于 2006-09-01 21:30, 1329 次点击

clear
clc
close
t=[0:0.025:20.025];
Y=sin(t)*100+12.5+20*rand(size(t));Y=Y'
plot(Y)
figure
n=length(Y);
n1=500;
y=Y./max(Y);
(导入数据就是附件)
//get the trainning and testing data
train_data as inout for training the NN
train_target as output for training the NN
test_data as inout for testing the NN
test_target as output for testing the NN

m=20;//define a moving window e.g. 20
which is also the input number of nodes for the NN
it is also used to generate the train and the test date
load exdata
//How can you use the moving window concept to form these training the test data sets?

2 回复
#2
hitzhang2006-09-24 19:49
请用汉语交流,拜托 。 如果想预测请尝试用线性神经网络
#3
bjsszjr2006-09-24 23:00
我要用MATLAB进行BP神经网络的设计,采用的是一个三层网络,f(x)=1/(1+e^-x)
那位好心人帮我写一下程序设计呀,我以前没接触过,现在是一头雾水,看了几天书还是没有头绪,在这先谢谢了
1