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

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

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