Xtest - Etest=Etest + .5*((dtest(i)-otest(i))^2) ; end...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% test set ytest=zeros(n,1); Etest=0; E for i=1:8*N xtest(i)=(x(i)+x(i+1))/2; dtest(i)=cos(xtest(i))*cos(2*xtest(i)); %Desired outputs end e for i=1:8*N ytest(:,1)=bivariateexp(V*([xtest(i) -1]')); otest(i)=bivariateexp(W*([ytest' -1]'));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Etest=Etest + .5*((dtest(i)-otest(i))^2) ; end plot(d,'r--') hold on plot(otest,'g:') ; title('the plot');legend('test data outputs') EtestAve=Etest/(8*N)...
View Full Document

This note was uploaded on 07/13/2011 for the course ECE 501 taught by Professor Deniz during the Spring '11 term at Istanbul Universitesi.

Ask a homework question - tutors are online