perturby - Tp=S(1:100,:); T for i=1:100 r=randperm(100);...

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

View Full Document Right Arrow Icon
%perturb function % function [Tp]=perturby(S,pn) %load ('E:\Program Files\MATLAB\R2006a\work\Neural Network\MiniProject3\nnp1.mat'); p=pn;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Tp=S(1:100,:); T for i=1:100 r=randperm(100); for j=1:p if (S(r(1,j),i)==1) Tp(r(1,j),i)=-1; else Tp(r(1,j),i)=1; end end end e...
View Full Document

Ask a homework question - tutors are online